#include #include #include #include #define APROCFREQ 20000000 #define BITSIZE 14 #define BOOTADDRESS 0 #define FIRSTRAM 0x20 #define LASTRAM 0x1FF #define HASOSCCAL 0 #define nPAGESRAM 4 #define nPAGESROM 2 // // Header file - should be included in all C files used within the program // This file is created automatically and should not be changed // // // Functions // void UserInitialise(); // Your initialisation code void UserInterrupt(); // Your interrupt code void UserLoop(); // your Main loop code #define PortOutnCopy 1 // ********** // // WatchDog // // ********** #define WatchDogUsed 1 #pragma asmline _WatchDogUsed=1 #define WDUsePS 0 #pragma asmline _WDUsePS=0 #define WDPSD 1 #pragma asmline _WDPSD=1 // ********** // // Interrupt Driven Serial Interface (62x) // // ********** #define SerInt62xUsed 1 #pragma asmline _SerInt62xUsed=1 #pragma asmline _RxByteUsed=1 #pragma asmline _RxByteFlag=Flag1 #pragma asmline _RxByteFlagBit=0 #define RxByteUsed 1 #define RxByteFlag Flag1 #define RxByteFlagBit 0 void RS232_RX(); #define SERINTRATE 9600 #pragma asmline _SERINTRATE=9600 #define USEXON 0 #pragma asmline _USEXON=0 #define RXBUFSZ 32 #pragma asmline _RXBUFSZ=32 #define TXBUFSZ 16 #pragma asmline _TXBUFSZ=16 #define RxPort PORTB #define RxBit 1 #pragma asmline _RxPort=PORTB #pragma asmline _RxBit=1 #define TxPort PORTB #define TxBit 2 #pragma asmline _TxPort=PORTB #pragma asmline _TxBit=2 // ********** // // Port Driver // // ********** #define PortOutUsed 1 #define PortOut0Used 1 #define InitialValue0 1 #define Out0Port PORTA #define Out0Bit 0 // ********** // // Application Designer Variables // // ********** extern unsigned char register Flag1; // Defines specified by 1 or more elements