sc9s08mz16 Freescale Semiconductor, Inc, sc9s08mz16 Datasheet - Page 165

no-image

sc9s08mz16

Manufacturer Part Number
sc9s08mz16
Description
Hcs08 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
9.3.5
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.
In input capture mode, reading either byte (TPMxCnVH or TPMxCnVL) latches the contents of both bytes
into a buffer where they remain latched until the other half is read. This latching mechanism also resets
(becomes unlatched) when the TPMxCnSC register is written (whether BDM mode is active or not). Any
write to the channel registers will be ignored during the input capture mode.
Freescale Semiconductor
Reset
Reset
W
W
R
R
CPWMS
Bit 15
Bit 7
TPM Channel Value Registers (TPMxCnVH:TPMxCnVL)
0
0
7
7
0
1
MSnB:MSnA
Figure 9-13. TPM Channel Value Register High (TPMxCnVH)
Figure 9-14. TPM Channel Value Register Low (TPMxCnVL)
14
0
6
0
6
6
Table 9-8. Mode, Edge, and Level Selection (continued)
XX
1X
00
01
ELSnB:ELSnA
SC9S08MZ16 MCU Data Sheet, Rev. 1
13
5
0
5
5
0
X1
X1
01
10
11
00
01
10
11
10
10
12
0
4
0
4
4
Output compare
Center-aligned
Input capture
Edge-aligned
Mode
PWM
PWM
11
0
3
0
3
3
High-true pulses (clear output on
High-true pulses (clear output on
Low-true pulses (set output on
Low-true pulses (set output on
Capture on falling edge only
Capture on rising edge only
Toggle output on compare
Clear output on compare
Software compare only
Set output on compare
10
0
2
0
2
2
Capture on rising or
Configuration
compare-up)
compare-up)
falling edge
compare)
compare)
1
9
0
1
1
0
Timer/PWM (S08TPMV3)
Bit 8
Bit 0
0
0
0
0
165

Related parts for sc9s08mz16