Datasheet

16 - REAL TIME CLOCK ST10F269
108/184
16.1.2 - RTCPH & RTCPL: RTC PRESCALER
Registers
The 20-bit programmable prescaler divider is
loaded with 2 registers.
The 4 most significant bit are stored into RTCPH
and the 16 Less significant bit are stored in
RTCPL. In order to keep the system clock, those
registers are not reset.
They are write protected by bit RTOFF of
RTCCON register, write operation is allowed if
RTOFF is set.
RTCPL (EC06h) XBUS Reset Value: XXXXh
RTCPH (EC08h) XBUS Reset Value: ---Xh
The value stored into RTCPH, RTCPL is called RTCP (coded on 20-bit). The dividing ratio of the
Prescaler divider is: ratio = 64 x (RTCP)
16.1.3 - RTCDH & RTCDL: RTC DIVIDER Counters
Every basic reference clock the DIVIDER counters are reloaded with the value stored RTCPH and
RTCPL registers. To get an accurate time measurement it is possible to read the value of the DIVIDER,
reading the RTCDH, RTCDL. Those counters are read only. After any bit changed in the programmable
PRESCALER register, the new value is loaded in the DIVIDER.
RTCDL (EC0Ah) XBUS Reset Value: XXXXh
RTCDH (EC0Ch) XBUS Reset Value: ---Xh
Note: Those registers are not reset, and are read only.
1514131211109876543210
RTCPL
RW
1514131211109876543210
RESERVED RTCPH
RW
Figure 52 : PRESCALER Register
1514131211109876543210
RTCDL
R
1514131211109876543210
RESERVED RTCDH
R
3 2 1 07 6 5 411 10 9 815 14 13 123 2 1 0
RTCPH
RTCPL
3 2 1 07 6 5 411 10 9 815 14 13 1219 18 17 16
20 bit word counter