mc9s08gt32a Freescale Semiconductor, Inc, mc9s08gt32a Datasheet - Page 66

no-image

mc9s08gt32a

Manufacturer Part Number
mc9s08gt32a
Description
Hcs08 Microcontrollers 8-bit Microcontroller Family
Manufacturer
Freescale Semiconductor, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mc9s08gt32aCFBE
Manufacturer:
FREESCAL
Quantity:
192
Part Number:
mc9s08gt32aCFBE
Manufacturer:
FREESCALE
Quantity:
4 400
Part Number:
mc9s08gt32aCFBE
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
mc9s08gt32aCFBE
Manufacturer:
FREESCALE
Quantity:
4 400
Part Number:
mc9s08gt32aCFBE
Manufacturer:
FREESCALE
Quantity:
20 000
Part Number:
mc9s08gt32aCFBE
0
Part Number:
mc9s08gt32aCFBER
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Chapter 5 Resets, Interrupts, and System Configuration
When an RTI instruction is executed, these values are recovered from the stack in reverse order. As part
of the RTI sequence, the CPU fills the instruction pipeline by reading three bytes of program information,
starting from the PC address just recovered from the stack.
The status flag causing the interrupt must be acknowledged (cleared) before returning from the ISR.
Typically, the flag should be cleared at the beginning of the ISR so that if another interrupt is generated by
this same source, it will be registered so it can be serviced after completion of the current ISR.
5.5.2
External interrupts are managed by the IRQSC status and control register. When the IRQ function is
enabled, synchronous logic monitors the pin for edge-only or edge-and-level events. When the MCU is in
stop mode and system clocks are shut down, a separate asynchronous path is used so the IRQ (if enabled)
can wake the MCU.
5.5.2.1
The IRQ pin enable (IRQPE) control bit in the IRQSC register must be 1 for the IRQ pin to act as the
interrupt request (IRQ) input. When the pin is configured as an IRQ input, the user can choose the polarity
of edges or levels detected (IRQEDG), whether the pin detects edges-only or edges and levels (IRQMOD),
and whether an event causes an interrupt or only sets the IRQF flag (which can be polled by software).
When the IRQ pin is configured to detect rising edges, an optional pulldown resistor is available rather
than a pullup resistor. BIH and BIL instructions may be used to detect the level on the IRQ pin when the
pin is configured to act as the IRQ input.
66
External Interrupt Request (IRQ) Pin
Pin Configuration Options
The voltage measured on the pulled up IRQ pin may be as low as V
V. The internal gates connected to this pin are pulled all the way to V
other pins with enabled pullup resistors will have an unloaded measurement
of V
DD
.
STACKING
ORDER
UNSTACKING
5
4
3
2
1
ORDER
1
2
3
4
5
* High byte (H) of index register is not automatically stacked.
7
MC9S08GB60A Data Sheet, Rev. 1.02
INDEX REGISTER (LOW BYTE X)
Figure 5-1. Interrupt Stack Frame
CONDITION CODE REGISTER
PROGRAM COUNTER HIGH
PROGRAM COUNTER LOW
ACCUMULATOR
²
²
²
²
NOTE
TOWARD HIGHER ADDRESSES
TOWARD LOWER ADDRESSES
*
0
SP AFTER
INTERRUPT STACKING
SP BEFORE
THE INTERRUPT
DD
DD
Freescale Semiconductor
– 0.7
. All

Related parts for mc9s08gt32a