??? 02/04/09 14:36 Read: times |
#162051 - You should use an auto-reload timer Responding to: ???'s previous message |
Timer2 on a 8052 will have a 16bit auto-reload. Then all your ISR has to do is reset the TF2 flag, and handle any minutes, hours etc processing.
Your version is taking a finite time to re-load the Timer. David. p.s. please post your code by using the <Insert Program Code> button. |
Topic | Author | Date |
Software Clock is 3 Sec Slow per minute | 01/01/70 00:00 | |
How long does your ISR take? | 01/01/70 00:00 | |
Software clock is 3 sec slow | 01/01/70 00:00 | |
Don't assume - calculate! | 01/01/70 00:00 | |
You should use an auto-reload timer | 01/01/70 00:00 | |
Incorrect ISR - 21 ticks/second | 01/01/70 00:00 | |
Thank you ! Problem Solved | 01/01/70 00:00 | |
Solved? Check closely![]() | 01/01/70 00:00 |