ST10F269-T3
16.1 - RTC registers
16.1.1 - RTCCON: RTC Control Register
The functions of the RTC are controlled by the RTCCON control register. If the RTOFF bit is set, the RTC
dividers and counters clock is disabled and registers can be written, when the ST10 chip enters power
down mode the clock oscillator will be switch off. The RTC has 2 interrupt sources, one is triggered every
basic clock period, the other one is the alarm.
RTCCON includes an interrupt request flag and an interrupt enable bit for each of them. This register is
read and written via the XBUS.
RTCCON (EC00h)
15
-
14
-
13
-
12
-
11
-
10
-
9
-
8
-
7
RTCOFF
RW
XBUS
6
-
5
-
4
-
3
2
Reset Value: --00h
1
0
RTCAEN RTCAIR RTCSEN RTCSIR
RW
RW
RW
RW
RTCOFF
2
RTC Switch Off Bit
鈥?鈥? clock oscillator and RTC keep on running even if ST10 in power down mode
鈥?鈥? clock oscillator is switch off if ST10 enters power down mode, RTC dividers and
counters are stopped and registers can be written
RTC Alarm Interrupt ENable
鈥?鈥? RTCAI is disabled
鈥?鈥? RTCAI is enabled, it is generated every n seconds
RTC Alarm Interrupt Request flag (when the alarm is triggered)
鈥?鈥? the bit was reseted less than a n seconds ago
鈥?鈥? the interrupt was triggered
RTC Second interrupt ENable
鈥?鈥? RTCSI is disabled
鈥?鈥? RTCSI is enabled, it is generated every second
RTC Second Interrupt Request flag (every second)
鈥?鈥? the bit was reseted less than a second ago
鈥?鈥? the interrupt was triggered
RTCAEN
2
RTCAIR
1
RTCSEN
2
RTCSIR
1
Notes: 1. As RTCCON register is not bit-addressable, the value of these bits must be read by checking their associated CCxIC register.
The 2 RTC interrupt signals are connected to Port2 in order to trigger an external interrupt that wake up the chip when in power down
mode.
2. All the bit of RTCCON are active high.
100/160