Hi,
My RTCC module is using the LF-INTOSC of the PIC18F65K22. When the CPU is running, the RTCC is working correctly. i.e. the time calculation is accurate. However, when the PIC enters the SLEEP mode, it goes slow. The real time 1 sec = 2 second of the RTCC module.
For my application time accuracy is not significantly important and I am using RTCC only to wake up the CPU from sleep mode at various stages of my application.
To find out more, I have output the RTCC clock on the RTCC pin of the micro. I noticed when the CPU is running, it gives Appx 33KHz output but when it is in sleep mode it gives Appx 14KHz output, which explains why is it running slow.
Can anyone help me what settings determine the RTCC clock frequency in sleep mode?
Regards