Datasheet

Timer Interface Module (TIM)
MC68HC908QYA/QTA Family Data Sheet, Rev. 3
126 Freescale Semiconductor
Figure 14-1. Block Diagram Highlighting TIM Block and Pins
14.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.
14.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
PTA[0:5]: Higher current sink and source capability
PTB[0:7]: Not available on 8-pin devices
PTA0/TCH0/AD0/KBI0
PTA1/TCH1/AD1/KBI1
PTA2/IRQ
/KBI2/TCLK
PTA3/RST
/KBI3
PTA4/OSC2/AD2/KBI4
PTA5/OSC1/AD3/KBI5
2-CHANNEL 16-BIT
TIMER MODULE
KEYBOARD INTERRUPT
MODULE
SINGLE INTERRUPT
MODULE
AUTO WAKEUP
LOW-VOLTAGE
INHIBIT
COP
MODULE
6-CHANNEL
10-BIT ADC
PTB0/AD4
PTB
DDRB
M68HC08 CPU
PTA
DDRA
PTB1/AD5
PTB2
PTB3
PTB4
PTB5
PTB6
PTB7
MC68HC908QY4A
POWER SUPPLY
V
DD
V
SS
CLOCK
GENERATOR
MODULE
4096 BYTES
USER FLASH
128 BYTES
USER RAM
MONITOR ROM
MC68HC908QY4A
BREAK MODULE
DEVELOPMENT SUPPORT