EasyManuals Logo

Maxim Integrated MAX32665 User Manual

Maxim Integrated MAX32665
457 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #370 background imageLoading...
Page #370 background image
MAX32665-MAX32668 User Guide
Maxim Integrated Page 370 of 457
18.2 Instances
One instance of the RTC peripheral is provided.
The RTC counter and alarm registers are shown in Table 18-1. MAX32665MAX32668 RTC Counter and Alarm Registers.
Table 18-1. MAX32665MAX32668 RTC Counter and Alarm Registers
Field
Length
Counter Increment
Minimum
Maximum
Description
RTC_SEC
32
1s
1s
136 yrs
Seconds Counter Register
RTC_SSEC
12
244µs (1/4kHz)
244µs
1s
Sub-Seconds Counter Register
RTC_TODA
20
1s
1s
12 days
Time-of-Day Alarm Register
RTC_SSECA
32
244 µs (1/4kHz)
244 µs
1s
Sub-Second Alarm Register
18.3 Register Access Control
Access protection mechanisms prevent software from accessing critical registers and fields while RTC while hardware is
updating them. Monitoring the RTC_CTRL.busy and RTC_CTRL.ready fields allows software to determine when it is safe to
write to registers and when registers will return valid results.
Table 18-2. RTC Register Access
Register
Field
Read Access
Write Access
Busy = 1
during
write
Description
RTC_SEC
All
RTC_CTRL.busy = 0
RTC_CTRL.ready = 1
RTC_CTRL.busy = 0
RTC_CTRL.ready = 1
Y
Seconds Counter Register
RTC_SSEC
.ssec
RTC_CTRL.busy = 0
RTC_CTRL.ready = 1
RTC_CTRL.busy = 0
RTC_CTRL.ready = 1
Y
Sub-Seconds Counter
Register
RTC_TODA
All
Always
RTC_CTRL.busy = 0
RTC_CTRL.tod_alarm_en = 0
Y
Time-of-Day Alarm Register
RTC_SSECA
All
Always
RTC_CTRL.busy = 0
RTC_CTRL.ssec_alarm_en = 0
Y
Sub-Second Alarm Register
RTC_TRIM
All
Always
RTC_CTRL.busy = 0
RTC_CTRL.write_en = 1
Y
Trim Register
RTC_OSCCTRL
All
Always
RTC_CTRL.busy = 0
RTC_CTRL.write_en = 1
Y
Oscillator Control Register
RTC_CTRL
enable
Always
RTC_CTRL.busy = 0
RTC_CTRL.write_en = 1
Y
RTC Enable field
tod_alarm_en
Always
RTC_CTRL.busy = 0
Y
Time-of-Day Alarm enable
field
ssec_alarm_en
Always
RTC_CTRL.busy = 0
Y
Sub-Second Alarm enable
field
All other bits
Always
RTC_CTRL.busy = 0
Y
18.3.1 RTC_SEC and RTC_SSEC Read Access Control
Software reads of the RTC_SEC and RTC_SSEC registers will return invalid results if the read operation occurs on the same
cycle that the register is being updated by hardware. To avoid this, hardware clears RTC_CTRL.ready to 0 during the update
cycle and sets RTC_CTRL.ready to 1 again when the cycle is complete. The period of the RTC_CTRL.ready bit set/clear
activity provides a large window during which the count registers are readable.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Maxim Integrated MAX32665 and is the answer not in the manual?

Maxim Integrated MAX32665 Specifications

General IconGeneral
BrandMaxim Integrated
ModelMAX32665
CategoryMotherboard
LanguageEnglish