| ??? 04/25/02 18:21 Read: times |
#22159 - RE: Delays in C |
Good enough delays can be made in C,
You can look at the SRC and calculate the exact time constant required. Or you can scope it. The 4ms is not critical. unsigned int delay; delay = 4000 * SOMEFACTOR; while (delay!=0) delay--; of course, you make that a function for clarity, since you do it several times. |



