Datasheet

Table of Contents
MC68HC908LJ12Rev. 2.1 Technical Data
Freescale Semiconductor Table of Contents 13
Section 11. Timer Interface Module (TIM)
11.1 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .185
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
Section 12. Real Time Clock (RTC)
12.1 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .209
12.2 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .210