|
MC68HC05L28 Datasheet, PDF (109/156 Pages) Motorola, Inc – Flexible general-purpose microcomputer | |||
|
◁ |
Table 10-3 IRQ2 interrupt sensitivity
IRQ2LV
0
0
1
1
IRQ2EDG
0
1
0
1
Interrupt sensitivity
Falling edge
Rising edge
Falling edge and low level
Rising edge and high level
IRQ2RST â IRQ2 reset
The IRQ2 interrupt is cleared by writing a â1â to this bit. This bit is write-only and always returns
zero.
IRQ2VAL â IRQ2 pin status
The IRQ2VAL bit reï¬ects current status of the IRQ2 pin.
10.2.2.2 Real time and core timer (CTIMER) interrupts
There are two core timer interrupt ï¬ags that cause a CTIMER interrupt whenever an interrupt is
enabled and its ï¬ag becomes set (RTIF and CTOF). The interrupt ï¬ags and enable bits are located
in the CTIMER control and status register (CTCSR). These interrupts vector to the same interrupt
service routine, whose start address is contained in memory locations $3FF8 and $3FF9 (see
Section 5.3.1 and Figure 5-1).
To make use of the real time interrupt the RTIE bit must ï¬rst be set. The RTIF bit will then be set
after the speciï¬ed number of counts.
To make use of the core timer overï¬ow interrupt, the CTOFE bit must ï¬rst be set. The CTOF bit will
then be set when the core timer counter register overï¬ows from $FF to $00.
10
10.2.2.3 Programmable 16-bit timer interrupt
There are ï¬ve interrupt ï¬ags that cause a timer interrupt when set and enabled. The timer interrupt
enable bits are located in the timer control registers (TCR) and the timer interrupt ï¬ags are located
in the timer status registers (TSR). All interrupts vector to the same service routine, whose start
address is contained in memory locations $3FF4 and $3FF5. In WAIT mode the CPU clock halts
but the timer continues to run.
MC68HC05L28
RESETS AND INTERRUPTS
TPG
MOTOROLA
10-7
|
▷ |