Timer Interface Module (TIM)
MC68HC908QL4 MC68HC908QL3 MC68HC908QL2 Data Sheet, Rev. 4
174
Freescale Semiconductor
Figure 15-1. Block Diagram Highlighting TIM Block and Pins
15.3.2 Input Capture
With the input capture function, the TIM can capture the time at which an external event occurs. When an
active edge occurs on the pin of an input capture channel, the TIM latches the contents of the counter into
the TIM channel registers, TCHxH:TCHxL. The polarity of the active edge is programmable. Input
captures can be enabled to generate interrupt requests.
15.3.3 Output Compare
With the output compare function, the TIM can generate a periodic pulse with a programmable polarity,
duration, and frequency. When the counter reaches the value in the registers of an output compare
channel, the TIM can set, clear, or toggle the channel pin. Output compares can be enabled to generate
interrupt requests.
RST, IRQ: Pins have internal pull up device
All port pins have programmable pull up device (pullup/down on port A)
PTA[0:5]: Higher current sink and source capability
PTA0/AD0/KBI0
PTA1/AD1/TCH1/KBI1
PTA2/IRQ/KBI2/TCLK
PTA3/RST/KBI3
PTA4/OSC2/AD2/KBI4
PTA5/OSC1/AD3/KBI5
PTB0/TCH0
PTB1
PTB2/AD4
PTB3/AD5
PTB4/SLCRX
PTB5/SLCTX
PTB6
PTB7
POWER SUPPLY
KEYBOARD INTERRUPT
MODULE
EXTERNAL INTERRUPT
MODULE
AUTO WAKEUP
MODULE
LOW-VOLTAGE
INHIBIT
2-CHANNEL 16-BIT
TIMER MODULE
COP
MODULE
MONITOR ROM
BREAK MODULE
V
DD
V
SS
128 BYTES
USER RAM
MC68HC908QL4
4096 BYTES
USER FLASH
P
D
P
D
M68HC08 CPU
MC68HC908QL4
DEVELOPMENT SUPPORT
6-CHANNEL
10-BIT ADC
SLAVE LIN INTERFACE
CONTROLLER
INTERNAL OSC
INTERNAL CLOCK SOURCE
4, 8, 12.8, or 25.6 MHz