7FFA
7FFB
7FFC
7FFD
7FFE
7FFF
0000
0001
7FFA
7FFB
7FFC
7FFD
7FFE
7FFF
0002
0003
7FFA
7FFB
7FFC
7FFD
7FFE
7FFF
7FFE
7FFF
0000
No compensation
Negative compensation: comp_reg = +2
Positive compensation: comp_reg = –2 (0xFFFE)
2 cycles are
removed from
next second
2 cycles are added
to current second
Clk 32 kHz
Timer counter
Second update
Clk 32 kHz
Timer counter
Second update
Clk 32 kHz
Timer counter
Second update
Preliminary
Architecture
www.ti.com
The RTC_DISABLE bit of the CTRL register must only be used to completely disable the RTC function.
When this bit is set, the 32 kHz clock is gated, and the RTC is frozen. From this point, resetting this bit
to zero can lead to unexpected behavior. In order to save power, this bit should only be used if the RTC
function is unwanted in the application.
15.2.4.6 Crystal Compensation
To compensate for any inaccuracy of the 32 kHz oscillator, the ARM can perform a calibration of the
oscillator frequency, calculate the drift compensation versus one-hour period, and load the
compensation registers with the drift compensation value. Auto compensation is enabled by
AUTO_COMP_EN bit in the RTC_CTRL register. If the COMP_REG value is positive, compensation
occurs after the second change event. COMP_REG cycles are removed from the next second. If the
COMP_REG value is negative, compensation occurs before the second change event. COMP_REG
cycles are added to the current second. This enables compensation with a 1 32-kHz period accuracy
each hour. The waveform below summarizes positive and negative compensation effect.
Access to the COMP_MSB_REG and COMP_LSB_REG registers must respect the available access
period. These registers should not be updated during compensation (first second of each hour), but it is
alright to update them during the second preceding a compensation event. For example, the ARM could
load the compensation value into these registers after each hour event, during an available access
period.
Figure 15-5. Compensation Illustration
1542
Real-Time Clock (RTC)
SPRUGX9 – 15 April 2011
© 2011, Texas Instruments Incorporated
Содержание TMS320C6A816 Series
Страница 2: ...Preliminary 2 SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 92: ...92 Read This First SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 1122: ...1122 Multichannel Audio Serial Port McASP SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 1562: ...1562 Real Time Clock RTC SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 1658: ...1658 Timers SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 1750: ...1750 UART IrDA CIR Module SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 1984: ...1984 Universal Serial Bus USB SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...