1 // INCLUDES & DEFINES ===============================================
2 // here are some definition about the CPU type
4 #ifndef __FILE_HARDWARE_DESCRIBTION_H
5 #define __FILE_HARDWARE_DESCRIBTION_H
9 #include "..\inc\c515a.h" // Definitions of registers, SFRs and Bits
19 // First some useful definitions
23 // here is a definition of a single nop command as it has to be declared under keil-C and sdcc
25 #define NOP _asm nop _endasm
26 //#define UBYTE unsigned char
27 //#define UINT unsigned int
28 //#define BOOL unsigned char
34 // now we specify at what crystal speed the cpu runs (unit is Hz !!)
35 //#define CPUCLKHZ 11059200
36 #define CPUCLKHZ 24000000
38 // We use the internal UART, so we have to set the desired BAUDRATE
39 //#define BAUDRATE 9600
40 //#define BAUDRATE 19200
41 #define BAUDRATE 57600
43 // For serial com. we use the internal UART and data exchange is done by interrupt and not via polling
44 #define SERIAL_VIA_INTERRUPT
45 // Achtung maximal 127Bytes ! Puffer
46 #define SERIAL_VIA_INTERRUPT_XBUFLEN 100
47 #define SERIAL_VIA_INTERRUPT_RBUFLEN 100
48 // disable the above three lines and enable the next one if polling method is used
49 //#define SERIAL_VIA_POLLING
51 // to measure time and delays we include a 1msec timer
52 #define USE_SYSTEM_TIMER
57 #define EXTWATCHDOG P3_5
59 #include "..\inc\cpu_c515a.h"