English
Language : 

MC68HC908GP20 Datasheet, PDF (351/406 Pages) Freescale Semiconductor, Inc – M68HC08 Microcontrollers
Advance Information — MC68HC908GP20
Section 22. Timer Interface Module (TIM)
22.1 Contents
22.2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 352
22.3 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 352
22.4 Pin Name Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 353
22.5 Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .353
22.5.1 TIM Counter Prescaler . . . . . . . . . . . . . . . . . . . . . . . . . . . 357
22.5.2 Input Capture. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 357
22.5.3 Output Compare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 358
22.5.4 Unbuffered Output Compare . . . . . . . . . . . . . . . . . . . . . . . 358
22.5.5 Buffered Output Compare . . . . . . . . . . . . . . . . . . . . . . . . . 359
22.5.6 Pulse Width Modulation (PWM) . . . . . . . . . . . . . . . . . . . . 359
22.5.7 Unbuffered PWM Signal Generation . . . . . . . . . . . . . . . . . 360
22.5.8 Buffered PWM Signal Generation . . . . . . . . . . . . . . . . . . . 361
22.5.9 PWM Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 362
22.6 Interrupts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .363
22.7 Low-Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 364
22.7.1 Wait Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 364
22.7.2 Stop Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 364
22.8 TIM During Break Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . 364
22.9 I/O Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 365
22.10 I/O Registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 365
22.10.1 TIM Status and Control Register . . . . . . . . . . . . . . . . . . . .366
22.10.2 TIM Counter Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . 368
22.10.3 TIM Counter Modulo Registers . . . . . . . . . . . . . . . . . . . . . 369
22.10.4 TIMA Counter Registers . . . . . . . . . . . . . . . . . . . . . . . . . . 370
22.10.5 TIM Channel Status and Control Registers. . . . . . . . . . . . 371
22.10.6 TIM Channel Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . 375
MC68HC908GP20 — Rev 2.1
Freescale Semiconductor
Advance Information
351