|
MC68HC908RK2 Datasheet, PDF (119/158 Pages) Motorola, Inc – Microcontroller Unit | |||
|
◁ |
Chapter 11
Timer Interface Module (TIM)
11.1 Introduction
This section describes the timer interface module (TIM). The TIM is a 2-channel timer that provides a
timing reference with input capture, output compare, and pulse-width-modulation (PWM) functions.
Figure 11-2 is a block diagram of the TIM.
11.2 Features
Features of the TIM include:
⢠Two input capture/output compare channels:
â Rising-edge, falling-edge, or any-edge input capture trigger
â Set, clear, or toggle output compare action
⢠Buffered and unbuffered PWM signal generation
⢠Programmable TIM clock input:
â 7-frequency internal bus clock prescaler selection
â External TIM clock input (bus frequency ÷ 2 maximum)
⢠Free-running or modulo up-count operation
⢠Toggle any channel pin on overflow
⢠TIM counter stop and reset bits
11.3 Pin Name Conventions
The TIM module shares pins with three port B input/output (I/O) port pins. The full names of the TIM I/O
pins and generic pin names are listed in Table 11-1.
Table 11-1. Pin Name Conventions
TIM Generic Pin Names:
Full TIM Pin Names:
TCH0
PTB2/TCH0
TCH1
PTB4/TCH1
TCLK
PTB3/TCLK
MC68HC908RK2 Data Sheet, Rev. 5.1
Freescale Semiconductor
119
|
▷ |