MC68HC705JD FREESCALE [Freescale Semiconductor, Inc], MC68HC705JD Datasheet - Page 34

no-image

MC68HC705JD

Manufacturer Part Number
MC68HC705JD
Description
member of the low-cost
Manufacturer
FREESCALE [Freescale Semiconductor, Inc]
Datasheet
10
11
12
13
14
15
16
17
18
19
20
1
2
3
4
5
6
7
8
9
5.2.1 Timer Interrupts
5.2.1.1 Timer Overflow Interrupts
5.2.1.2 Real-Time Interrupts
5.2.2 External Interrupt
5-4
The return from interrupt (RTI) instruction causes the CPU to recover the CPU
registers from the stack as shown in
The timer generates two kinds of interrupts:
Setting the interrupt mask in the condition code register disables timer interrupts.
A timer overflow interrupt occurs if the timer overflow flag, TOF, becomes set while
the timer overflow interrupt enable bit, TOIE, is also set. TOF and TOIE are in the
timer control and status register. See
(TCSR).
A real-time interrupt occurs if the real-time interrupt flag, RTIF, becomes set while
the real-time interrupt enable bit, RTIE, is also set. RTIF and RTIE are in the timer
control and status register. See
When a falling edge occurs on the IRQ pin, an external interrupt request is latched.
When the CPU completes its current instruction, it tests the external interrupt latch.
If the interrupt latch is set and the interrupt mask in the condition code register is
reset, the CPU then begins the interrupt sequence. The CPU clears the interrupt
latch while it fetches the interrupt vector, so that another external interrupt request
can be latched during the interrupt service routine. As soon as the interrupt mask
is cleared (usually during the return from interrupt), the CPU can recognize the new
interrupt request.
Figure 5-3
Timer overflow interrupt
Real-time interrupt
shows the sequence of events caused by an interrupt.
Freescale Semiconductor, Inc.
For More Information On This Product,
RESETS AND INTERRUPTS
Go to: www.freescale.com
7.2 Timer Control and Status Register
Figure
7.2 Timer Control and Status Register
5-2.
(TCSR).
Rev. 2

Related parts for MC68HC705JD