English
Language : 

MC68HC908LJ12 Datasheet, PDF (184/413 Pages) Freescale Semiconductor, Inc – 8-bit microcontroller units
Technical Data — MC68HC908LJ12
Section 11. Timer Interface Module (TIM)
11.1 Contents
11.2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
11.3 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
11.4 Pin Name Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
11.5 Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .187
11.5.1 TIM Counter Prescaler . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
11.5.2 Input Capture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
11.5.3 Output Compare. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
11.5.3.1 Unbuffered Output Compare . . . . . . . . . . . . . . . . . . . . . 192
11.5.3.2 Buffered Output Compare . . . . . . . . . . . . . . . . . . . . . . .193
11.5.4 Pulse Width Modulation (PWM) . . . . . . . . . . . . . . . . . . . . . 193
11.5.4.1 Unbuffered PWM Signal Generation . . . . . . . . . . . . . . . 194
11.5.4.2 Buffered PWM Signal Generation . . . . . . . . . . . . . . . . . 195
11.5.4.3 PWM Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196
11.6 Interrupts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .197
11.7 Low-Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
11.7.1 Wait Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .198
11.7.2 Stop Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .198
11.8 TIM During Break Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . 198
11.9 I/O Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199
11.10 I/O Registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199
11.10.1 TIM Status and Control Register . . . . . . . . . . . . . . . . . . . . 200
11.10.2 TIM Counter Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202
11.10.3 TIM Counter Modulo Registers . . . . . . . . . . . . . . . . . . . . . 203
11.10.4 TIM Channel Status and Control Registers . . . . . . . . . . . . 204
11.10.5 TIM Channel Registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
MC68HC908LJ12 — Rev. 2.1
Freescale Semiconductor
Timer Interface Module (TIM)
Technical Data
185