#include /* common defines and macros */ #include /* derivative information */ void Timer_Init(void) { TSCR1 = 0x80; TSCR2 = 0x04; } void Timer_Wait(unsigned short cycles) { unsigned short startTime = TCNT; while((TCNT-startTime) <= cycles) { } } void Timer_Wait10ms(unsigned short delay){ unsigned short i; for(i=0;i