Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
68hc11
:
test.c
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
243 HTTP/1.1 200 OK Date: Sat, 18 Jun 2005 20:14:55 GMT Server: Apache/1.3.26 (Unix) Debian GNU/Linux mod_perl/1.26 mod_ssl/2.8.9 OpenSSL/0.9.6g PHP/4.1.2 Last-Modified: Wed, 08 Jan 2003 19:45:14 GMT ETag: "11778d5-243-3e1c7fca" Accept-Ranges: bytes Content-Length: 579 Keep-Alive: timeout=15, max=99 Connection: Keep-Alive Content-Type: text/x-csrc /* filename Test.C Jonathan W. Valvano, PortT bit 6 is output, PortJ bit 0 is input */ #include "HC12.h" int function(int a, int b, int c, int d){ int e; e = a+b; return e; } int f; void main(void){ 0 COPCTL = 0x00; // disable COP f = function(1,2,3,4); DDRT = 0xFF; // PortT is output DDRJ = 0x00; // PortJ is input while(1){ if(PORTJ&0x01){ PORTT=0xFF; } else{ PORTT=0x00; } } } extern void _start(); #pragma abs_address:0xfffe void (*reset_vector[])() = { _start }; #pragma end_abs_address