??? 04/11/09 09:09 Read: times |
#164530 - ISR code Responding to: ???'s previous message |
I am not sure is the delay is long or not.. Below is the part of the code for ISR:
void Timer2 (void) interrupt 5 using 1 { Tick --; if (Tick == 0) { if (DIR2 == STRAIGHT) { switch (STATE2) { case 0: P27 = 1; P15 = 1; P0 = 0x09; P1 = 0x29; Tick = 30; STATE2 = 1; break; case 1: P0 = 0x0A; P1 = 0x2A; Tick = 30; STATE2 = 2; break; . . . . . |