/* port B definitions */
#define PORTB (*((volatile unsigned char*)(0x0001)))
#define DDRB (*((volatile unsigned char*)(0x0003)))
/* Timer TCNT definitions */
#define TSCR1 (*((volatile unsigned char*)(0x0046)))
#define TSCR2 (*((volatile unsigned char*)(0x004D)))
#define TFLG2 (*((volatile unsigned char*)(0x004F)))
#define TCNT (*((volatile unsigned short*)(0x0044)))
[此贴子已经被作者于2005-3-22 0:13:12编辑过] |