English
Language : 

MC68HC908LJ24 Datasheet, PDF (13/464 Pages) Motorola, Inc – Microcontrollers
Table of Contents
Section 11. Timer Interface Module (TIM)
11.1 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .193
11.2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194
11.3 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194
11.4 Pin Name Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195
11.5 Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .195
11.5.1 TIM Counter Prescaler . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199
11.5.2 Input Capture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199
11.5.3 Output Compare. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200
11.5.3.1 Unbuffered Output Compare . . . . . . . . . . . . . . . . . . . . . 200
11.5.3.2 Buffered Output Compare . . . . . . . . . . . . . . . . . . . . . . .201
11.5.4 Pulse Width Modulation (PWM) . . . . . . . . . . . . . . . . . . . . . 201
11.5.4.1 Unbuffered PWM Signal Generation . . . . . . . . . . . . . . . 202
11.5.4.2 Buffered PWM Signal Generation . . . . . . . . . . . . . . . . . 203
11.5.4.3 PWM Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204
11.6 Interrupts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .205
11.7 Low-Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
11.7.1 Wait Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .206
11.7.2 Stop Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .206
11.8 TIM During Break Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . 206
11.9 I/O Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
11.9.1 TIM Clock Pins (PTD4/KBI4/T1CLK, PTD5/KBI5/T2CLK) . 207
11.9.2 TIM Channel I/O Pins (PTB2/T1CH0, PTB3/T1CH1,
PTB4/T2CH0, PTB5/T2CH1) . . . . . . . . . . . . . . . . . . . . 207
11.10 I/O Registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208
11.10.1 TIM Status and Control Register . . . . . . . . . . . . . . . . . . . . 208
11.10.2 TIM Counter Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
11.10.3 TIM Counter Modulo Registers . . . . . . . . . . . . . . . . . . . . . 211
11.10.4 TIM Channel Status and Control Registers . . . . . . . . . . . . 212
11.10.5 TIM Channel Registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
MC68HC908LJ24/LK24 — Rev. 2.1
Freescale Semiconductor
Table of Contents
Data Sheet
13