English
Language : 

MC68HC908QY4A_10 Datasheet, PDF (126/200 Pages) Freescale Semiconductor, Inc – M68HC08 Microcontrollers
Timer Interface Module (TIM)
PTA0/TCH0/AD0/KBI0
PTA1/TCH1/AD1/KBI1
PTA2/IRQ/KBI2/TCLK
PTA3/RST/KBI3
PTA4/OSC2/AD2/KBI4
PTA5/OSC1/AD3/KBI5
PTB0/AD4
PTB1/AD5
PTB2
PTB3
PTB4
PTB5
PTB6
PTB7
MC68HC908QY4A
128 BYTES
USER RAM
M68HC08 CPU
MC68HC908QY4A
4096 BYTES
USER FLASH
CLOCK
GENERATOR
KEYBOARD INTERRUPT
MODULE
SINGLE INTERRUPT
MODULE
AUTO WAKEUP
MODULE
LOW-VOLTAGE
INHIBIT
2-CHANNEL 16-BIT
TIMER MODULE
COP
MODULE
6-CHANNEL
10-BIT ADC
VDD
POWER SUPPLY
VSS
DEVELOPMENT SUPPORT
MONITOR ROM
BREAK MODULE
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
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.
MC68HC908QYA/QTA Family Data Sheet, Rev. 3
126
Freescale Semiconductor