English
Language : 

MC68HC705P9 Datasheet, PDF (108/160 Pages) Motorola, Inc – HCMOS Microcontroller Unit 
Timer
Freescale Semiconductor, Inc.
9.6 Interrupts
The following timer sources can generate interrupts:
• Input capture flag (ICF) — The ICF bit is set when an edge of the
selected polarity occurs on the input capture pin. The input
capture interrupt enable bit, ICIE, enables ICF interrupt requests.
• Output compare flag (OCF) — The OCF bit is set when the
counter value matches the value written in the output compare
registers. The output compare interrupt enable bit, OCIE, enables
OCF interrupt requests.
• Timer overflow flag (TOF) — The TOF bit is set when the counter
value rolls over from $FFFF to $0000. The timer overflow enable
bit (TOIE) enables timer overflow interrupt requests.
Table 9-3 summarizes the timer interrupt sources.
Table 9-3. Timer Interrupt Sources
Source
Local Mask
Global
Mask
Priority
(1 = Highest)
ICF Bit ICIE Bit
OCF Bit OCIE Bit
I Bit
3
TOF Bit TOIE Bit
9.7 I/O Registers
The following registers control and monitor the operation of the timer:
• Timer control register (TCR)
• Timer status register (TSR)
• Timer registers (TRH and TRL)
• Alternate timer registers (ATRH and ATRL)
• Input capture registers (ICRH and ICRL)
• Output compare registers (OCRH and OCRL)
Technical Data
108
Timer
For More Information On This Product,
Go to: www.freescale.com
MC68HC705P9 — Rev. 4.0
MOTOROLA