Tool/software:
Hello,
The hibernate trim is applied for each 60 seconds, but when exactly does it execute? Does it do it according RTCs beginning of minute each time a minute begins?
Best Regards,
-C
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
Hello,
The hibernate trim is applied for each 60 seconds, but when exactly does it execute? Does it do it according RTCs beginning of minute each time a minute begins?
Best Regards,
-C
Hi Can,
I think the datasheet has a good illustration in Figure 7-5 and 7.-6. In Figure 7-5, the clock source is a bit faster by the amount of 3 sub-seconds compared to the ideal 32.768Khz. The trim value forces the sub-second counter to count additional cycles before it increments the seconds counter. The trim is only applied every 64 seconds, not every second or every 60 cycles.
7.3.5.3 RTC Trim
The RTC counting rate can be adjusted to compensate for inaccuracies in the clock source by using
the predivider trim register, HIBRTCT. This register has a nominal value of 0x7FFF, and is used for
one second out of every 64 seconds in RTC counter mode, when bits [5:0] in the HIBRTCC register
change from 0x00 to 0x01, to divide the input clock.