|
MC9S08RC8 Datasheet, PDF (129/234 Pages) Freescale Semiconductor, Inc – Microcontrollers | |||
|
◁ |
Chapter 10
Timer/PWM Module (S08TPMV1)
10.1 Introduction
The MC9S08RC/RD/RE/RG includes a timer/PWM (TPM) module that supports traditional input capture,
output compare, or buffered edge-aligned pulse-width modulation (PWM) on each channel. A control bit
in the TPM conï¬gures both channels in the timer to operate as center-aligned PWM functions. Timing
functions in the TPM are based on a 16-bit counter with prescaler and modulo features to control frequency
and range (period between overï¬ows) of the time reference. This timing system is ideally suited for a wide
range of control applications. The MC9S08RC/RD/RE/RG devices do not have a separate ï¬xed internal
clock source (XCLK). If the XCLK source is selected using the CLKSA and CLKSB control bits (see
Table 10-2), the TPM will use the BUSCLK.
10.2 Features
Timer system features include:
⢠Two separate channels:
â Each channel may be input capture, output compare, or buffered edge-aligned PWM
â Rising-edge, falling-edge, or any-edge input capture trigger
â Set, clear, or toggle output compare action
â Selectable polarity on PWM outputs
⢠The TPM may be conï¬gured for buffered, center-aligned pulse-width modulation (CPWM) on
both channels
⢠Clock source to prescaler for the TPM is selectable between the bus clock or an external pin:
â Prescale taps for divide by 1, 2, 4, 8, 16, 32, 64, or 128
â External clock input shared with TPM1CH0 timer channel pin
⢠16-bit modulus register to control counter range
⢠Timer system enable
⢠One interrupt per channel plus terminal count interrupt
MC9S08RC/RD/RE/RG Data Sheet, Rev. 1.11
Freescale Semiconductor
129
|
▷ |