Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
68hc11
:
example.c
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
209 HTTP/1.1 200 OK Date: Sat, 18 Jun 2005 20:18:09 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:36:14 GMT ETag: "95c9ad-209-3e1c7dae" Accept-Ranges: bytes Content-Length: 521 Keep-Alive: timeout=15, max=99 Connection: Keep-Alive Content-Type: text/x-csrc /* *********Example.C********************* Simple Example */ #include "HC12.H" int function(int a, int b, int c, int d){ int e; e=a+b; return e; } in 0 t f; void main(void){ COPCTL = 0; // disable COP f = function(1,2,3,4); DDRJ = 0x00; // PortJ is input DDRH = 0xFF; // PortH is output while(1){ PORTH = function(PORTJ,2,3,4); // PortH=PortJ+2 } } extern void _start(); #pragma abs_address:0xfffe void (*reset_vector[])() = { _start }; #pragma end_abs_address