EE 308
Homework #5
Due Feb. 14, 1996
#define D_10MS 667 void delay_10ms(void) { int i; i = 0; while (i < D_10MS) { i = i + 1; } }
Write a function called "delay(n)" which will call "delay_10ms()" n times. For example, to create a 1 second delay, do the following:
delay(100);
PC 7 | PC 5 | Port B Function |
---|---|---|
0 | 0 | Up Counter |
0 | 1 | Down Counter |
1 | 0 | Flasher |
1 | 1 | Turn Signal |