
M451
May. 4, 2018
Page
560
of
1006
Rev.2.08
M4
51
S
E
RI
E
S
T
E
CH
NICA
L RE
F
E
R
E
NC
E
M
A
NU
A
L
32776
1111
32768
0111
32775
1110
32767
0110
32774
1101
32766
0101
32773
1100
32765
0100
32772
1011
32764
0011
32771
1010
32763
0010
32770
1001
32762
0001
32769
1000
32761
0000
Following are the compensation examples for the real RTC source clock is higher or lower than
32768 Hz.
Example 1: (RTC Source Clock > 32768 Hz)
RTC Source Clock Measured: 32773.65 Hz ( > 32768 Hz)Integer Part: 32773 => 0x8005
If Integer Part Of Detected Value Is 32768, RTC_FREQADJ[11:8] Is Assigned To Be 0111b.
Now That Integer Part Of Detected Value Is 32773, The Corresponding RTC_FREQADJ[11:8] Can Be Calculated By:
0111 (RTC_FREQADJ[11:8] For 32768, Binary) + 5 (32773
– 32768, Decimal) = 0xC (Hexadecimal).
Fraction Part: 0.65
FRACTION (RTC_FREQADJ [5:0] Fraction Part) = 0.65 X 60 = 39 = 0x27
RTC_FREQADJ Register Should Be As 0xC27
Example 2: (RTC source clock
≦
32768 Hz)
RTC source clock measured: 32765.27 Hz (
≦
32768 Hz)
Integer part: 32765 => 0x7FFD
If integer part of detected value is 32768, RTC_FREQADJ[11:8] is assigned to be 0111b.
Now that integer part of detected value is 32765, the corresponding RTC_FREQADJ[11:8] can be calculated by:
0111 (RTC_FREQADJ[11:8] for 32768, binary) + (-3) (32765
– 32768, decimal) = 0x4 (hexadecimal).
Fraction part: 0.27
FRACTION (RTC_FREQADJ [5:0] Fraction Part) = 0.27 x 60 = 16.2 = 0x10
RTC_FREQADJ register should be as 0x410
Time and Calendar counter
6.12.5.5
RTC_TIME and RTC_CAL are used to load the real time and calendar. RTC_TALM and
RTC_CALM are used for setup alarm time and calendar.
12/24 hour Time Scale Selection
6.12.5.6
The 12/24 hour time scale selection depends on 24HEN (RTC_CLKFMT[0]).
When RTC runs as 12-hour time scale mode, RTC_TIME[21] (the high bit of TENHR[1:0]) means
AM/PM indication. (If RTC_TIME[21] is 1, it indicates PM time message.)
Note: The Hour Value Write Into RTC_TIME[21:16], Messages Are Expressed In BCD Format.
24-Hour Time Scale
(24HEN = 1)
24-Hour Time Scale
(24HEN = 1)
12-Hour Time Scale
(24HEN = 0)
12-Hour Time Scale
(24HEN = 0) (PM Time + 20)
0x00
0x12
0x12 (AM12)
0x32 (PM12)
Содержание ARM Cortex NuMicro M451 Series
Страница 301: ...M451 May 4 2018 Page 301 of 1006 Rev 2 08 M451 SERIES TECHNICAL REFERENCE MANUAL...
Страница 324: ...M451 May 4 2018 Page 324 of 1006 Rev 2 08 M451 SERIES TECHNICAL REFERENCE MANUAL Figure 6 4 18 Checksum Calculation Flow...
Страница 355: ...M451 May 4 2018 Page 355 of 1006 Rev 2 08 M451 SERIES TECHNICAL REFERENCE MANUAL 2 0 Reserved Reserved...
Страница 625: ...M451 May 4 2018 Page 625 of 1006 Rev 2 08 M451 SERIES TECHNICAL REFERENCE MANUAL 00 5 bits 01 6 bits 10 7 bits 11 8 bits...
Страница 721: ...M451 May 4 2018 Page 721 of 1006 Rev 2 08 M451 SERIES TECHNICAL REFERENCE MANUAL the SCL line 1 0 Reserved Reserved...
Страница 1001: ...M451 May 4 2018 Page 1001 of 1006 Rev 2 08 M451 SERIES TECHNICAL REFERENCE MANUAL LQFP 64L 10x10x1 4 mm footprint 2 0 mm 9 2...
Страница 1002: ...M451 May 4 2018 Page 1002 of 1006 Rev 2 08 M451 SERIES TECHNICAL REFERENCE MANUAL LQFP 64L 7x7x1 4 mm footprint 2 0 mm 9 3...
Страница 1003: ...M451 May 4 2018 Page 1003 of 1006 Rev 2 08 M451 SERIES TECHNICAL REFERENCE MANUAL LQFP 48L 7x7x1 4mm footprint 2 0mm 9 4...