English
Language : 

MC68HC908RK2 Datasheet, PDF (120/158 Pages) Motorola, Inc – Microcontroller Unit
Timer Interface Module (TIM)
M68HC08 CPU
CPU
REGISTERS
ARITHMETIC/LOGIC
UNIT (ALU)
CONTROL AND STATUS REGISTERS — 32 BYTES
USER FLASH — 2031 BYTES
USER RAM — 128 BYTES
MONITOR ROM — 768 BYTES
USER FLASH VECTOR SPACE — 14 BYTES
OSC2
OSC1
SOFTWARE SELECTABLE
INTERNAL OSCILLATOR
MODULE
INTERNAL BUS
SECURITY
MODULE
COMPUTER OPERATING
PROPERLY MODULE
LOW-VOLTAGE INHIBIT
MODULE
2-CHANNEL TIMER
MODULE
PTA7(2)
PTA6/KBD6(2) (3)
PTA5/KBD5(2) (3)
PTA4/KBD4(2) (3)
PTA3/KBD3(2) (3)
PTA2/KBD2(2) (3)
PTA1/KBD1(2) (3)
PTA0(2)
PTB5
PTB4/TCH1
PTB3/TCLK
PTB2/TCH0
PTB1
PTB0/MCLK
RST(1)
IRQ(1)
SYSTEM INTEGRATION
MODULE
KEYBOARD/INTERRUPT
MODULE
POWER-ON RESET
MODULE
VDD
POWER
VSS
1. Pin contains integrated pullup resistor
2. High current sink pin
3. Pin contains software selectable pullup resistor
Figure 11-1. Block Diagram Highlighting TIM Block and Pins
11.4 Functional Description
Figure 11-2 shows the structure of the TIM. The central component of the TIM is the 16-bit TIM counter
that can operate as a free-running counter or a modulo up-counter. The TIM counter provides the timing
reference for the input capture and output compare functions. The TIM counter modulo registers, TMODH
and TMODL, control the modulo value of the TIM counter. Software can read the TIM counter value at
any time without affecting the counting sequence.
The two TIM channels are programmable independently as input capture or output compare channels.
Refer to Figure 11-3 for a summary of the TIM I/O registers.
MC68HC908RK2 Data Sheet, Rev. 5.1
120
Freescale Semiconductor