Cypress STK17TA8 manual Interrupts, Flags Register, Interrupt Register

Page 16

STK17TA8

Interrupts

The STK17TA8 has a Flags register, Interrupt Register, and interrupt logic that can interrupt a microcontroller or generate a power-up master reset signal. There are three potential interrupt sources: the watchdog timer, the power monitor, and the clock alarm. Each can be individually enabled to drive the INT pin by setting the appropriate bit in the Interrupt register. In addition, each has an associated flag bit in the Flags register that the host processor can read to determine the interrupt source. Two bits in the Interrupt register determine the operation of the INT pin driver.

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 push-pull. The INT pin can drive high only when VCC>VSWITCH. When set to a 0, the INT pin is active low and the drive mode is open-drain. The active low (open drain) output is maintained even when power is lost .

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 time-out, alarm match, or power fail monitor respectively. The processor can either poll this register or enable interrupts to be informed when a flag is set. The flags are automatically reset once the register is read.

Interrupt Register

Watchdog Interrupt Enable (WIE). When set to 1, the watchdog timer drives the INT pin when a watchdog time-out occurs. When WIE is set to 0, the watchdog time-out only sets the WDF flag bit.

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 #: 001-52039 Rev. **

Page 16 of 23

[+] Feedback

Image 16
Contents Features Logic Block DiagramDescription Cypress Semiconductor Corporation 198 Champion CourtPinouts Pin DescriptionsDC Electrical Characteristics RF SSOP-48 Package Thermal CharacteristicsSymbol Parameter Commercial Industrial Units Min Absolute Maximum RatingsSymbol Parameter Commercial Industrial Units Min Max Symbol Parameter Max Units ConditionsAC Test Conditions CapacitanceRTC DC Characteristics Symbols Parameter STK17TA8-25 STK17TA8-45 Units Alt Min Max Sram Read Cycles #1 and #2Sram Write Cycles #1 and #2 Symbols Parameter AutoStore/Power Up RecallUnits Standard Alternate Min Max Software-Controlled STORE/RECALL Cycle Soft Sequence Commands Hardware Store to Sram DisabledHardware Store Cycle Hardware Store Pulse WidthMode Selection A16-A0 Mode PowerHardware Recall POWER-UP NvSRAM OperationHardware Store HSB Operation AutoStore OperationLow Average Active Power Software RecallData Protection Noise ConsiderationsRTC Operations Watchdog Timer AlarmPower Monitor Calibrating The ClockFlags Register InterruptsInterrupt Register RTC Register Register BCD Format Data Function / RangeRegister Map Detail 0x1FFF5 Alarm Day 0x1FFF4 Alarm Hours0x1FFF7 0x1FFF6 Interrupt0x1FFF2 Alarm Seconds 0x1FFF1 Real Time Clock Centuries 10s Centuries0x1FFF0 Flags WDF Oscf CALOrdering Information Ordering CodesPackage Diagrams 51-85061 *C Document # 001-52039 RevWorldwide Sales and Design Support Products PSoC Solutions Sales, Solutions, and Legal InformationDocument History