Timer/PWM Module (TPM)
MCF51CN128 Reference Manual, Rev. 6
Freescale Semiconductor
19-4
Figure 19-1. TPM Block Diagram
Prescaler
16-bit comparator
PS[2:0]
TOF
TOIE
Interrupt
TPM counter
logic
16-bit comparator
16-bit latch
ELS0B
ELS0A
Port
channel 0
CH0IE
CH0F
logic
Interrupt
logic
CPWMS
MS0B
MS0A
counter reset
CLKSB:CLKSA
³(1, 2, 4, 8, 16, 32, 64 or 128)
bus clock
external clock
synchronizer
16-bit comparator
16-bit latch
channel 1
ELS1B
ELS1A
CH1IE
CH1F
TP
M counter
Port
logic
Interrupt
logic
MS1B
MS1A
16-bit comparator
16-bit latch
channel 7
ELS7B
ELS7A
CH7IE
CH7F
Port
logic
Interrupt
logic
MS7B
MS7A
up to 8 channels
TPMxMODH:TPMxMODL
TPMxC0VH:TPMxC0VL
TPMxC1VH:TPMxC1VL
TPMxCH0
TPMxCH1
TPMxC7VH:TPMxC7VL
TPMxCH7
fixed frequency clock
(16-bit counter)
no clock selected
(TPM counter disable)