English
Language : 

XC161 Datasheet, PDF (70/419 Pages) Infineon Technologies AG – 16-Bit Single-Chip Microcontroller with C166SV2 Core Volume 2 (of 2): Peripheral Units
XC161 Derivatives
Peripheral Units (Vol. 2 of 2)
Real Time Clock
15
Real Time Clock
The Real Time Clock (RTC) module of the XC161 basically consists of a chain of
prescalers and timers. Its count clock is derived from the auxiliary oscillator or from the
prescaled main oscillator. The RTC serves various purposes:
• 48-bit timer for long term measurements
• System clock to determine the current time and date
(the RTC’s structure supports the direct representation of time and date)
• Cyclic time based interrupt (can be generated by any timer of the chain)
A number of programming options as well as interrupt request signals adjust the
operation of the RTC to the application’s requirements. The RTC can continue its
operation while the XC161 is in a power-saving mode, such that real time date and time
information is provided.
Control Registers
Data Registers
Counter Registers
Interrupt Control
RTC_CON E
SYSCON0 E
SYSCON3 E
RTC_T14REL E
RTC_RELH E
RTC_RELL E
RTC_T14
E
RTC_RTCH E
RTC_RTCL E
RTC_ISNC E
R T C _ IC
E
RTC_CON
SYSCON0
SYSCON3
R T C _ IS N C
R T C _ IC
Real Tim e Clock Control Register RTC_T14
Tim er T14 Count Register
G eneral System Control Register RTC_T14REL Tim er T14 Reload Register
Power M anagem ent Control Reg. RTC_RTCH/L RTC Count Registers, High/Low
Interrupt Subnode Control Register RTC_RELH/L RTC Reload Reg., High/Low
RTC Interrupt Control Register
m c a04463_x c.vsd
Figure 15-1 SFRs Associated with the RTC Module
The RTC module consists of a chain of 3 divider blocks:
• a selectable 8:1 divider (on - off)
• the reloadable 16-bit timer T14
• the 32-bit RTC timer block (accessible via RTC_RTCH and RTC_RTCL), made of:
– the reloadable 10-bit timer CNT0
– the reloadable 6-bit timer CNT1
– the reloadable 6-bit timer CNT2
– the reloadable 10-bit timer CNT3
All timers count upwards. Each of the five timers can generate an interrupt request. All
requests are combined to a common node request.
Note: The RTC registers are not affected by a system reset in order to maintain the
correct system time even when intermediate resets are executed.
User’s Manual
RTC_X8, V2.1
15-1
V2.2, 2004-01