GD32F10x User Manual
259
14.
Real-time Clock (RTC)
14.1.
Overview
The RTC is usually used as a clock-calendar. The RTC circuits are located in two power
supply domains. The ones in the Backup Domain consist of a 32-bit up-counter, an alarm, a
prescaler, a divider and the RTC clock configuration register. That means the RTC settings
and time are kept when the device resets or wakes up from Standby mode. While the circuits
in the VDD domain only include the APB interface and a control register. In the following
sections, the details of the RTC function will be described.
14.2.
Characteristics
32-bit programmable counter for counting elapsed time
–
Programmable prescaler: Max division factor is up to 2
20
Separate clock domains
:
–
PCLK1 clock domain
–
RTC clock domain (this clock must be at least 4 times slower than the PCLK1 clock)
RTC clock source
:
–
HXTAL clock divided by 128
–
LXTAL oscillator clock
–
IRC40K oscillator clock
Maskable interrupt source:
–
Alarm interrupt
–
Second interrupt
–
Overflow interrupt
14.3.
Function overview
The RTC circuits consist of two major units: APB interface located in PCLK1 clock domain
and RTC core located in RTC clock domain.
APB Interface is connected with the APB1 bus. It includes a set of registers, can be accessed
by APB1 bus. RTC core includes two major blocks. One is the RTC prescaler block, which
generates the RTC time base clock SC_CLK. RTC prescaler block includes a 20-bit
programmable divider (RTC prescaler) which can make SC_CLK is divided from RTC source
clock. If second interrupt is enabled in the RTC_INTEN register, the RTC will generate an
interrupt at every SC_CLK rising edge. Another block is a 32-bit programmable counter, which
can be initialized with the value of current system time. If alarm interrupt is enabled in the
Содержание GD32F10 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F10x Arm Cortex M3 32 bit MCU User Manual Revision 2 6 Jun 2022 ...
Страница 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Страница 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Страница 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Страница 427: ...GD32F10x User Manual 427 value ...
Страница 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...