English
Language : 

MC9S08AW16CFUE Datasheet, PDF (168/324 Pages) Freescale Semiconductor, Inc – MC9S08AW60 Features
Chapter 10 Timer/Pulse-Width Modulator (S08TPMV2)
BUSCLK
XCLK
TPMxCLK
SYNC
CPWMS
MAIN 16-BIT COUNTER
16-BIT COMPARATOR
TPMxMODH:TPMxMODL
CHANNEL 0
16-BIT COMPARATOR
TPMxC0VH:TPMxC0VL
16-BIT LATCH
CHANNEL 1
16-BIT COMPARATOR
TPMxC1VH:TPMxC1VL
16-BIT LATCH
CLOCK SOURCE
SELECT
OFF, BUS, XCLK, EXT
CLKSB CLKSA
COUNTER RESET
PRESCALE AND SELECT
DIVIDE BY
1, 2, 4, 8, 16, 32, 64, or 128
PS2
PS1
PS0
TOF
INTERRUPT
TOIE
LOGIC
ELS0B ELS0A
CH0F
MS0B MS0A
CH0IE
ELS1B ELS1A
CH1F
MS1B MS1A
CH1IE
PORT
LOGIC
TPMxCH0
INTERRUPT
LOGIC
PORT
LOGIC
TPMxCH1
INTERRUPT
LOGIC
CHANNEL n
16-BIT COMPARATOR
TPMxCnVH:TPMxCnVL
16-BIT LATCH
ELSnB ELSnA
CHnF
MSnB MSnA
CHnIE
PORT
LOGIC
TPMxCHn
INTERRUPT
LOGIC
Figure 10-2. TPM Block Diagram
The central component of the TPM is the 16-bit counter that can operate as a free-running counter, a
modulo counter, or an up-/down-counter when the TPM is configured for center-aligned PWM. The TPM
counter (when operating in normal up-counting mode) provides the timing reference for the input capture,
output compare, and edge-aligned PWM functions. The timer counter modulo registers,
TPMxMODH:TPMxMODL, control the modulo value of the counter. (The values 0x0000 or 0xFFFF
effectively make the counter free running.) Software can read the counter value at any time without
affecting the counting sequence. Any write to either byte of the TPMxCNT counter resets the counter
regardless of the data value written.
MC9S08AW60 Data Sheet, Rev 2
168
Freescale Semiconductor