/* * Header file for the Microchip * PIC 12c508 chip * PIC 12c509 chip * Baseline Microcontrollers */ static unsigned char RTCC @ 0x01; static unsigned char TMR0 @ 0x01; static unsigned char PCL @ 0x02; static unsigned char STATUS @ 0x03; static unsigned char FSR @ 0x04; static unsigned char OSCCAL @ 0x05; static unsigned char GPIO @ 0x06; static unsigned char control OPTION @ 0x00; static unsigned char control TRIS @ 0x06; /* STATUS bits */ static bit GPWUF @ (unsigned)&STATUS*8+7; static bit TO @ (unsigned)&STATUS*8+4; static bit PD @ (unsigned)&STATUS*8+3; /* OPTION bits */ static bit GPWU @ (unsigned)&OPTION*8+7; static bit GPPU @ (unsigned)&OPTION*8+6; static bit TOCS @ (unsigned)&OPTION*8+5; static bit T0SE @ (unsigned)&OPTION*8+4; static bit PSA @ (unsigned)&OPTION*8+3; static bit PS2 @ (unsigned)&OPTION*8+2; static bit PS1 @ (unsigned)&OPTION*8+1; static bit PS0 @ (unsigned)&OPTION*8+0; #define CONFIG_ADDR 0xFFF #define FOSC0 0x01 #define FOSC1 0x02 #define WDTE 0x04 #define CP 0x08 #define MCLRE 0x0F