Chapter 18 Real-Time Counter With Calendar (RTCV2)
S12ZVHY/S12ZVHL Family Reference Manual Rev. 1.05
642
Freescale Semiconductor
18.3.3 IRCCLK
The IRCCLK is 1MHz CPMU output.
18.3.4 RTCCLK
The RTCCLK can run from OSCCLK or OSCCLK_32K. It depends on the CLKSRC setting . If derived
from OSCCLK, it depends on the RTCPS settting also. User need to set the correct RTCPS in order to get
the right RTCCLK generated. This clock will be used as LCD clock input source also.
18.3.5 CALCLK
The CALCLK is calibration clock output. It is internal routed to the timer channel for the on chip
calibration. Refer the PIM section for detailed information. And it is also routed to the pin, refer to the
device specification for avaiablity and connectivity of signal.
18.4
Register Definition
The RTC includes status and control registers, a 16-bit counter register, and a 16-bit modulo register,
calendar function counter registers. Except the RTCCTL3, RTCCTL4, RTCS1 registers which are normal
reset, all the other RTC registers are POR reset only.
is a summary of RTC registers.
Table 18-2. RTC Register Summary
Name
7
6
5
4
3
2
1
0
0x0000
RTCCTL1
R
RTCEN
0
0
0
0
0
COMPE
0
W
0x0001
RTCCTL2
R
CLKS-
RC1
CLKS-
RC0
0
0
RTCPS3 RTCPS2 RTCPS1 RTCPS0
W
0x0002
RTCCTL3
R
0
0
FRZ
0
CALS
0
W
RTCWE1
RT-
CWE0
0x0003
RTCCTL4
R
0
0
HRIE
MINIE
SECIE
COMPIE
0
TB0IE
W
0x0004
RTCS1
R
CDLC
0
HRF
MINF
SECF
COMPF
0
TB0F
W
0x0005
RTCCCR
R
CCS
Q
W
0x0006
RTCMODH
R
RTCMODH
W