STK17TA8
Interrupts
The STK17TA8 has a Flags register, Interrupt Register, and interrupt logic that can interrupt a microcontroller or generate a
A functional diagram of the interrupt logic is shown below:
Power Fail Interrupt Enable (PFE). When set to 1, the INT pin is driven by a power fail signal from the power monitor circuit. When set to 0, only the PF flag is set.
High/Low (H/L). When set to a 1, the INT pin is active high and the driver mode is
Pulse/Level (P/L). When set to a 1, the INT pin is driven for approximately 200 ms when an interrupt occurs. The pulse is reset when the Flags register is read. When P/L is set to a 0, the INT pin is driven high or low (determined by H/L) until the Flags register is read.
Figure 16. Interrupt Block Diagram
WDF
Watchdog |
|
|
|
|
|
|
| ||||
| Timer |
|
|
|
|
|
|
| |||
|
| WIE |
|
|
| ||||||
|
|
|
|
|
|
|
|
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| PF |
|
|
| ||
Power |
|
|
|
|
|
|
|
| |||
Monitor |
|
|
|
|
|
|
|
| |||
|
| PFE |
|
|
| ||||||
|
|
|
|
|
|
|
|
| |||
|
|
|
|
|
|
|
|
|
|
|
|
| VINT |
|
|
|
|
|
|
|
| ||
|
|
|
|
|
| AF |
|
|
| ||
Clock |
|
|
|
|
|
|
|
| |||
Alarm |
|
|
|
|
|
|
|
| |||
|
|
|
|
|
| AIE |
|
|
P/L
Pin
Driver
H/L
VCC
INT
VSS
The Interrupt register is loaded with the default value 00h at the factory. The user should configure the Interrupt register to the value desired for their desired mode of operation. Once configured, the value is retained during power failures.
Flags Register
The Flags register has three flag bits: WDF, AF, and PF. These flags are set by the watchdog
Interrupt Register
Watchdog Interrupt Enable (WIE). When set to 1, the watchdog timer drives the INT pin when a watchdog
Alarm Interrupt Enable (AIE). When set to 1, the INT pin is driven when an alarm match occurs. When set to 0, the alarm match only sets the AF flag bit.
The Flags register is automatically loaded with the value 00h on power up (with the exception of the OSCF bit).
Document #: | Page 16 of 23 |
[+] Feedback