August 27, 1998
GENERAL RELEASE SPECIFICATION
4.5.1 Core Timer Overflow Interrupt
An overflow interrupt request occurs if the Core Timer overflow flag (TOF)
becomes set while the Core Timer overflow interrupt enable bit (TOFE) is also set.
The TOF flag bit can be reset by writing a logical one to the CTOFR bit in the
CTSCR or by a reset of the device.
4.5.2 Real-Time Interrupt
A real-time interrupt request occurs if the real-time interrupt flag (RTIF) becomes
set while the real-time interrupt enable bit (RTIE) is also set. The RTIF flag bit can
be reset by writing a logical one to the RTIFR bit in the CTSCR or by a reset of the
device.
4.6
PROGRAMMABLE TIMER INTERRUPTS
The 16-bit programmable Timer can generate an interrupt whenever the following
events occur:
•
•
•
Input capture.
Output compare.
Timer counter overflow.
Setting the I bit in the condition code register disables Timer interrupts. The con-
trols for these interrupts are in the Timer control register (TCR) located at $0012
and in the status bits are in the Timer status register (TSR) located at $0013.
4.6.1 Input Capture Interrupt
An input capture interrupt occurs if the input capture flag (ICF) becomes set while
the input capture interrupt enable bit (ICIE) is also set. The ICF flag bit is in the
TSR; and the ICIE enable bit is located in the TCR. The ICF flag bit is cleared by a
read of the TSR with the ICF flag bit is set; and then followed by a read of the LSB
of the input capture register (ICRL) or by reset. The ICIE enable bit is unaffected
by reset.
4.6.2 Output Compare Interrupt
An output compare interrupt occurs if the output compare flag (OCF) becomes set
while the output compare interrupt enable bit (OCIE) is also set. The OCF flag bit
is in the TSR and the OCIE enable bit is in the TCR. The OCF flag bit is cleared by
a read of the TSR with the OCF flag bit set; and then followed by an access to the
LSB of the output compare register (OCRL) or by reset. The OCIE enable bit is
unaffected by reset.
4.6.3 Timer Overflow Interrupt
A Timer overflow interrupt occurs if the Timer overflow flag (TOF) becomes set
while the Timer overflow interrupt enable bit (TOIE) is also set. The TOF flag bit is
in the TSR and the TOIE enable bit is in the TCR. The TOF flag bit is cleared by a
MC68HC05SB7
REV 2.1
INTERRUPTS
MOTOROLA
4-7