urakhai911
Newbie level 6
Hi Forum,
I am working on a project where I need an accurate real time clock. At the moment, I have my PIC24f's RTCC configured to cause an alarm at one second intervals and display the time on my computer screen through UART. It is using the internal Low Power RC Oscillator to work.
The alarm generates an interrupt every second and displays the time on the monitor as it should. However, the values which the RTCC displays jumps by a value of seven. For example, every time it reaches the 9th second of a minute, it jumps to the 16th second. When it reaches 57, it jumps to 64. It then goes all the way to 90 seconds and then overflows and increments the minute count. This happens consistently.
Has anyone else had this weird problem and does anyone know a solution? (other than using a secondary oscillator instead of the internal one, I can't do that at the moment)
-Urakhai
I am working on a project where I need an accurate real time clock. At the moment, I have my PIC24f's RTCC configured to cause an alarm at one second intervals and display the time on my computer screen through UART. It is using the internal Low Power RC Oscillator to work.
The alarm generates an interrupt every second and displays the time on the monitor as it should. However, the values which the RTCC displays jumps by a value of seven. For example, every time it reaches the 9th second of a minute, it jumps to the 16th second. When it reaches 57, it jumps to 64. It then goes all the way to 90 seconds and then overflows and increments the minute count. This happens consistently.
Has anyone else had this weird problem and does anyone know a solution? (other than using a secondary oscillator instead of the internal one, I can't do that at the moment)
-Urakhai