Chapter 18 Real-Time Counter With Calendar (RTCV2)
S12ZVHY/S12ZVHL Family Reference Manual Rev. 1.05
648
Freescale Semiconductor
18.4.8 RTC Modulo Register (RTCMOD)
RTCMOD is the 16-bit modulo value.
18.4.9 RTC Second Register (RTCSECR)
This read/write register contains the current value of the second counter. This register can be read at any
time without affecting the counter count. Writing to this register loads the value to the second counter and
the counter continues to count from this new value.Writing values other than 0 to 59 to this register has
no effect. This register is write-protected, writing this register should follow write-protect mechanism
section.
7
6
5
4
3
2
1
0
R
RTCCNTL
W
POR:
0
0
0
0
0
0
0
0
Figure 18-8. RTC Counter Register (RTCCNT)
Table 18-9. RTCCNT Field Description
Field
Description
15:0
RTCCNT
RTC Count
— These sixteen read-only bits contain the current value of the 16-bit counter. Writes have no effect
to this register. Reset will clear the count to 0x0000. Note, the RTCCNT is not synced, so user need to read register
two times to justify if value is correct, two read data same means the correct read data.
15
14
13
12
11
10
9
8
R
RTCMODH
W
POR:
0
0
0
0
0
0
0
0
7
6
5
4
3
2
1
0
R
RTCMODL
W
POR:
0
0
0
0
0
0
0
0
Figure 18-9. RTC Modulo Register (RTCMOD)
Table 18-10. RTCMOD Field Descriptions
Field
Description
15:0
RTCMOD
RTC Modulo
— These sixteen read/write bits contain the modulo value used to reset the RTCCNT count to
0x0000. Reset sets the modulo to 0x0000.