Datasheet

Timer/PWM Module (S08TPMV3)
MC9S08JM60 Series Data Sheet, Rev. 3
Freescale Semiconductor 285
16.3.5 TPM Channel Value Registers (TPMxCnVH:TPMxCnVL)
These read/write registers contain the captured TPM counter value of the input capture function or the
output compare value for the output compare or PWM functions. The channel registers are cleared by
reset.
Table 16-6. Mode, Edge, and Level Selection
CPWMS MSnB:MSnA ELSnB:ELSnA Mode Configuration
X XX 00 Pin not used for TPM - revert to general
purpose I/O or other peripheral control
0 00 01 Input capture Capture on rising edge
only
10 Capture on falling edge
only
11 Capture on rising or
falling edge
01 01 Output compare Toggle output on
compare
10 Clear output on
compare
11 Set output on compare
1X 10 Edge-aligned
PWM
High-true pulses (clear
output on compare)
X1 Low-true pulses (set
output on compare)
1 XX 10 Center-aligned
PWM
High-true pulses (clear
output on compare-up)
X1 Low-true pulses (set
output on compare-up)
76543210
R
Bit 15 14 13 12 11 10 9 Bit 8
W
Reset00000000
Figure 16-13. TPM Channel Value Register High (TPMxCnVH)
76543210
R
Bit 7654321Bit 0
W
Reset00000000
Figure 16-14. TPM Channel Value Register Low (TPMxCnVL)