??? 03/03/10 23:26 Read: times |
#173803 - non-functional code Responding to: ???'s previous message |
alarm = T2L + ticks;
while (T2L != alarm) ; non-functional code, what if an interrupt happens. If so, T2L can be == alarm many times before you detect it. DO NOT respond with "disable interrupts" that would be an even greater disaster Erik |
Topic | Author | Date |
fixed length delays in C | 01/01/70 00:00 | |
Can't do it without assembly. | 01/01/70 00:00 | |
HLL gives no guarantees | 01/01/70 00:00 | |
Using a timer in C | 01/01/70 00:00 | |
overheads | 01/01/70 00:00 | |
Use a dedicated timer | 01/01/70 00:00 | |
non-functional code | 01/01/70 00:00 | |
Interrupts aren't the biggest problem ... | 01/01/70 00:00 | |
break apart![]() | 01/01/70 00:00 |