.module _HC12Setup.c .area text 0000 __HC12Setup:: 0000 ; // _HC12Setup.c 0000 ; 0000 ; #include <912d60.h> 0000 ; #include "kernel.h" 0000 ; 0000 ; 0000 ; 0000 ; void _HC12Setup(void) { 0000 ; 0000 ; // set the register base to 0x800 0000 ; //*(volatile unsigned char *)0x0011 = 0x08; 0000 ; 0000 ; // set up the COP WATCHDOG clock monitor for 524.288 ms 0000 ; COPCTL = 0xC5; // COP on 0000 C6C5 ldab #197 0002 7B0016 stab 0x16 0005 ; //COPCTL = 0x00; // COP off 0005 ; 0005 ; 0005 ; // set up the RTI INTERRUPT 0005 ; RTICTL = 0x86; // enable RTI at 65.536 msec. 0005 C686 ldab #134 0007 7B0014 stab 0x14 000A ; RTIFLG = 0x80; // clear real time interrupt flag 000A C680 ldab #128 000C 7B0015 stab 0x15 000F ; INTR_OFF(); // disable/mask all maskable interrupts 000F 1410 sei 0011 0011 ; 0011 ; } 0011 L3: 0011 .dbline 0 ; func end 0011 3D rts