EZ80F91MCU ZILOG [Zilog, Inc.], EZ80F91MCU Datasheet - Page 200

no-image

EZ80F91MCU

Manufacturer Part Number
EZ80F91MCU
Description
eZ80Acclaim-TM Flash Microcontrollers
Manufacturer
ZILOG [Zilog, Inc.]
Datasheet
PS019209-0504
Real-Time Clock Control Register
This register contains control and status bits for the Real-Time Clock. Some bits in
the RTC_CTRL register are cleared by a RESET. The ALARM bit flag and associ-
ated interrupt (if INT_EN is enabled) are cleared by reading this register. The
ALARM bit flag is updated by clearing (locking) the RTC_UNLOCK bit or by an
increment of the RTC count. Writing to the RTC_CTRL register also resets the
RTC count prescaler allowing the RTC to be synchronized to another time source.
SLP_WAKE indicates if an RTC alarm condition initiated the CPU recovery from
SLEEP mode. This bit can be checked after RESET to determine if a sleep-mode
recovery is caused by the RTC. SLP_WAKE is cleared by a Read of the
RTC_CTRL register.
Setting the BCD_EN bit causes the RTC to use BCD counting in all registers
including the alarm set points.
The CLK_SEL and FREQ_SEL bits select the RTC clock source. If the 32 KHz
crystal option is selected the oscillator is enabled and the internal prescaler is set
to divide by 32768. If the power-line frequency option is selected, the prescale
value is set by the FREQ_SEL bit, and the 32 Khz oscillator is disabled. See Table
93.
Table 93. Real-Time Clock Control Register
(RTC_CTRL = 00EDh)
Bit
Reset
CPU Access
Note: X = Unchanged by RESET; R = Read Only; R/W = Read/Write.
Bit
Position
7
ALARM
6
INT_EN
5
BCD_EN
Value Description
0
1
0
1
0
1
Alarm interrupt is inactive.
Alarm interrupt is active.
Interrupt on alarm condition is disabled.
Interrupt on alarm condition is enabled.
RTC count and alarm value registers are binary.
RTC count and alarm value registers are binary-coded
decimal (BCD).
P R E L I M I N A R Y
X
R
7
R/W
6
0
R/W
X
5
R/W
X
4
R/W
X
3
Product Specification
R/W
X
2
eZ80F91 MCU
Real-Time Clock
0/1
R
1
R/W
0
0
181

Related parts for EZ80F91MCU