English
Language : 

S9S08SG8E2MTJ Datasheet, PDF (243/320 Pages) Freescale Semiconductor, Inc – MC9S08SG8 MC9S08SG4 Data Sheet Addendum
Chapter 16 Timer Pulse-Width Modulator (S08TPMV3)
• In edge- or center- aligned modes, the Channel Value register (TPMxCnV) registers only update
when the timer changes from TPMMOD-1 to TPMMOD, or in the case of a free running timer
from 0xFFFE to 0xFFFF.
• Also, when configuring the TPM modules, it is best to write to TPMxSC before TPMxCnV as a
write to TPMxSC resets the coherency mechanism on the TPMxCnV registers.
Table 16-3. Migrating to TPMV3 Considerations
When...
Action / Best Practice
Writing to the Channel Value Register (TPMxCnV) Timer must be in Input Capture mode.
register...
Updating the Channel Value Register (TPMxCnV) Only occurs when the timer changes from
register in edge-aligned or center-aligned modes... TPMMOD-1 to TPMMOD (or in the case of a free
running timer, from 0xFFFE to 0xFFFF).
Reseting the coherency mechanism for the
Channel Value Register (TPMxCnV) register...
Write to TPMxSC.
Configuring the TPM modules...
Write first to TPMxSC and then to TPMxCnV
register.
MC9S08SG8 MCU Series Data Sheet, Rev. 7
Freescale Semiconductor
239