Preliminary
Architecture
www.ti.com
15.2.3 Interrupt Support
15.2.3.1 CPU Interrupts
The RTC generates two interrupt outputs:
•
timer_intr is a timer interrupt.
•
alarm_intr is an alarm interrupt.
NOTE:
Both interrupt outputs support high-level and high-pulse.
15.2.3.2 Interrupt Description
15.2.3.2.1 Timer Interrupt (timer_intr)
The timer interrupt can be generated periodically: every second, every minute, every hour, or every day
(see INTERRUPTS_REG[1:0] for a description of how to set this up). The IT_TIMER bit of the interrupt
register enables this interrupt. The timer interrupt is active-low.
The RTC_STATUS_REG[5:2] are only updated at each new interrupt and occur according to
. For example, bit 2 (SEC) will always be set when one second has passed. It will also be set
when one minute has passed since the completion of one minute also marks the completion of one
second (from 59 seconds to 60 seconds). The same holds true for hours and days: each of them will
also correspond to the passing of a second.
Conversely, bit 5 (DAY) will always be set when a day has passed. It might also be set when an hour,
minute, or second has passed. However, this only occurs when the elapsed hour, minute, or second
corresponds to the start of a new day.
Table 15-2. Interrupt Trigger Events
One day has passed
One hour has passed
One minute has passed
One second has passed
STATUS_REG[5] (DAY)
1
0/1
(1)
0/1
(1)
0/1
(1)
STATUS_REG[4]
1
1
0/1
(1)
0/1
(1)
(HOUR)
STATUS_REG[3] (MIN)
1
1
1
0/1
(1)
STATUS_REG[2] (SEC)
1
1
1
1
(1)
This event is only triggered when the elapsed time unit (for example, Day) corresponds to the passage of another unit (for
example, Seconds). For example, when the clock ticks from 00:23:59:59 (days : hours : minutes : seconds) to 01:00:00:00.
15.2.3.2.2 Alarm Interrupt (alarm_intr)
The alarm interrupt can be generated when the time set into TC ALARM registers is exactly the same
as in the TC registers. This interrupt is then generated if the IT_ALARM bit of the interrupts register is
set. This interrupt is low-level sensitive. RTC_STATUS_REG[6] indicates that IRQ_ALARM_CHIP has
occurred. This interrupt is disabled by writing ‘1’ into the RTC_STATUS_REG[6].
To set up an alarm:
•
Modify the ALARM_SECONDS, ALARM_MINUTES, ALARM_HOURS, ALARM_DAY,
ALARM_WEEK, ALARM_MONTH, and ALARM_YEAR registers to the exact time you want an
alarm to generate.
•
Set the IT_ALARM bit in the RTC_INTERRUPTS register to enable the alarm interrupt.
1538
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...