??? 01/21/08 04:52 Read: times |
#149791 - Stopwatch == Learn to use timers Responding to: ???'s previous message |
Hi there.
I looked into Your code and the first thought was: "Why doesn't he use timers?" And when You're on it - You could write an interrupt code that takes care of incrementing Yer counter. Then You can use the main code to do the display and other housekeeping without affecting the counter run. This would be an excellent project for learning to use interrupts ! Fiddling with delays on main code (for measuring time) is doomed to fail. |
Topic | Author | Date |
stopwatch | 01/01/70 00:00 | |
Stopwatch == Learn to use timers | 01/01/70 00:00 | |
re Learn to use timers | 01/01/70 00:00 | |
delay routine![]() | 01/01/70 00:00 |