
Real-Time Clock
Élan™SC520 Microcontroller User’s Manual
20-11
3. Initialize the ten time, calendar, and alarm registers in either binary or BCD data format.
4. Specify the format in the data mode via the DATE_MODE bit in the RTC Control B
(RTCCTLB) register. All ten time, calendar, and alarm registers must use the same data
mode, either binary or BCD.
5. Enable updates via the SET bit in RTC Control B (RTCCTLB) register.
6. Enable the divider chain by programming 010b in the OSC_CTL field. Time and update
cycles will begin 500 ms after this write.
Steps 2 and 6 are necessary only if precision setting is required. Otherwise, the OSC_CTL
field can be written to 010b in step 2, and step 6 can be skipped. The first update cycle,
however, will occur at an undetermined time after updates are enabled.
When initialized, the RTC makes all updates in whatever data mode has been programmed.
To change the data mode, the ten data bytes must be re-initialized.
20.6.1
RTC Reset
The RTC is not automatically reset by a system reset. There are three conditions that trigger
an RTC reset:
■
BBATSEN drops below 2.0 V (sampled when PWRGOOD asserts)—During operation
from the main power supply, the backup battery voltage might drop below the trip voltage
(2.0 V). The RTC is not reset until a PWRGOOD assertion occurs.
■
Power is applied to VCC_RTC (at backup battery installation)—When the backup battery
is plugged in, the RTC is immediately reset.
■
No battery during power-up (sampled after PWRGOOD asserts)—If the system does
not contain a backup battery and the BBATSEN line potential is below 2.0 V, the RTC
is reset when PWRGOOD asserts.
Note that this RTC reset may or may not occur when a master power-on reset occurs,
depending on the state of BBATSEN.
If the BBATSEN signal drops below the 2.0-V reference and PWRGOOD is Low, an internal
RTC reset signal is generated to notify the user via the RTC_VRT bit (RTC index 0Dh) that
the RTC contents are no longer valid.
Summary of Contents for Elan SC520
Page 1: ...lan SC520 Microcontroller User s Manual Order 22004A...
Page 4: ...iv lan SC520 Microcontroller User s Manual...
Page 28: ...Introduction xxviii lan SC520 Microcontroller User s Manual...
Page 42: ...Architectural Overview 1 14 lan SC520 Microcontroller User s Manual...
Page 78: ...System Initialization 3 22 lan SC520 Microcontroller User s Manual...
Page 108: ...Clock Generation and Control 5 10 lan SC520 Microcontroller User s Manual...
Page 118: ...Reset Generation 6 10 lan SC520 Microcontroller User s Manual...
Page 148: ...System Arbitration 8 24 lan SC520 Microcontroller User s Manual...
Page 214: ...SDRAM Controller 10 36 lan SC520 Microcontroller User s Manual...
Page 230: ...Write Buffer and Read Buffer 11 16 lan SC520 Microcontroller User s Manual...
Page 288: ...GP Bus DMA Controller 14 22 lan SC520 Microcontroller User s Manual...
Page 316: ...Programmable Interval Timer 16 8 lan SC520 Microcontroller User s Manual...
Page 328: ...Software Timer 18 4 lan SC520 Microcontroller User s Manual...
Page 346: ...Real Time Clock 20 12 lan SC520 Microcontroller User s Manual...
Page 360: ...UART Serial Ports 21 14 lan SC520 Microcontroller User s Manual...
Page 414: ...AMDebug Technology 26 8 lan SC520 Microcontroller User s Manual...