Timer/PWM Module (S08TPMV3)

The latching mechanism may be manually reset by writing to the TPMxSC address (whether BDM is active or not).

When BDM is active, the coherency mechanism is frozen (unless reset by writing to TPMxSC) so the buffer latches remain in the state they were in when the BDM became active, even if one or both halves of the modulo register are written while BDM is active. Any write to the modulo registers bypasses the buffer latches and directly writes to the modulo register while BDM is active.

R

W Reset

R

W Reset

7

6

5

4

3

2

1

0

 

 

 

TPMxMOD[15:8]

 

 

 

 

 

 

 

 

 

 

 

0

0

0

0

0

0

0

0

 

 

 

 

 

 

Figure 17-10. TPM Counter Modulo Register High (TPMxMODH)

 

 

7

6

5

4

 

2

1

0

3

 

 

 

TPMxMOD[7:0]

 

 

 

 

 

 

 

 

 

 

 

0

0

0

0

0

0

0

0

 

 

 

 

 

 

Figure 17-11. TPM Counter Modulo Register Low (TPMxMODL)

 

 

Reset the TPM counter before writing to the TPM modulo registers to avoid confusion about when the first counter overflow occurs.

17.3.4TPM Channel n Status and Control Register (TPMxCnSC)

TPMxCnSC contains the channel-interrupt-status flag and control bits that configure the interrupt enable, channel configuration, and pin function.

R

W Reset

7

6

5

4

3

2

1

0

CHnF

CHnIE

MSnB

MSnA

ELSnB

ELSnA

0

0

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0

0

0

0

0

0

0

 

 

 

 

 

 

 

 

Figure 17-12. TPM Channel n Status and Control Register (TPMxCnSC)

MCF51QE128 MCU Series Reference Manual, Rev. 3

344

Freescale Semiconductor

Get the latest version from freescale.com

Page 344
Image 344
Freescale Semiconductor MCF51QE128RM manual TPM Channel n Status and Control Register TPMxCnSC, TPMxMOD158, TPMxMOD70