EasyManua.ls Logo

Cmsemicon CMS32L051 - Chapter 7 Real-Time Clock; 7.1 Function of real-time clock; 7.2 Structure of real-time clock

Default Icon
703 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
V1.2.2
CMS32L051 User Manual |Chapter 7 Real-Time Clock
www.mcu.com.cn 220 / 703
Chapter 7 Real-Time Clock
7.1 Function of real-time clock
The real-time clock has the following functions.
 Hold counters for years, months, weeks, days, hours, minutes, and seconds, up to 99 years.
 Fixed cycle interrupt function (period: 0.5 seconds, 1 second, 1 minute, 1 hour, 1 day, 1 month).
 Alarm interrupt function (alarm: week, hour, minute).
 1Hz pin output function
7.2 Structure of real-time clock
The real-time clock consists of the following hardware.
Table 7-1 Structure of real-time clock
project
structure
counter
Internal counter (16-bit).
Control registers
Peripheral enable register 0 (PER0.bit7).
Real-time clock selection register (RTCCL).
Real-time clock control register 0 (RTCC0).
Real-time clock control register 1 (RTCC1).
Second Count Register (SEC).
Minute count register (MIN).
The hour count register (HOUR).
Day Count Register (DAY).
Week count register (WEEK).
Month count register (MONTH).
Year Count Register (YEAR).
Clock error correction register (SUBCUD).
Alarm clock minute register (ALARMWM).
Alarm clock hour register (ALARMWH).
Alarm clock week register (ALARMWW).
Note: The reset of the above RTC control registers is only controlled by POR reset.

Table of Contents

Related product manuals