/* * Header file for the Microchip * PIC 16c54 chip * PIC 16cr54A chip * PIC 16c56 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 PORTA @ 0x05; static unsigned char PORTB @ 0x06; static unsigned char control OPTION @ 0x00; static unsigned char control TRISA @ 0x05; static unsigned char control TRISB @ 0x06; /* STATUS bits */ static bit TO @ (unsigned)&STATUS*8+4; static bit PD @ (unsigned)&STATUS*8+3; /* OPTION bits */ #define T0CS (1<<5) #define T0SE (1<<4) #define PSA (1<<3) #define PS2 (1<<2) #define PS1 (1<<1) #define PS0 (1<<0) #define CONFIG_ADDR 0xFFF #define FOSC0 0x01 #define FOSC1 0x02 #define WDTE 0x04 #define CP 0x08