
182 Chapter 11
Program 110: Short Time III
Program 109 has been fixed. Now the delay is closer to what we expect. Not
exactly what we expect, but close. What’s happening now?
1 /************************************************
2 * bit_delay -- Delay one bit time for *
3 * serial output. *
4* *
5 * Note: This function is highly system *
6 * dependent. If you change the *
7 * processor or clock it will go bad. *
8 ************************************************/
9 void bit_delay(void)
10 {
11 int i; // Loop counter
12 volatile int result;// Result of the multiply
13
14 // Factors for multiplication
15 int factor1 = 12;
16 int factor2 = 34;
17
18 // We know that ...