AnsweredAssumed Answered

Handling Timer Overflow and a Method for loading the S08QD4 TPM2 Value Register using OC Mode

Question asked by David Evennou on Jul 26, 2012
Latest reply on Jul 31, 2012 by David Evennou

Hello all,

 

I am working on a new project involving PDP and have questions in reference to the thread dealing with PDP. (Pulse Distance Protocol)

 

https://community.freescale.com/message/103280#103280

 

1. Using the TPM2 in OC Mode, do I need to deal with Timer Overflow? (I do not see any code in the thread to handle overflow)

 

2. In the TPM2 CH 0 ISR, the following code is used the load the value register:

          TPM2C0V += SPULSE;   // Start pulse (9000)

 

Is this code effectively the same as:

          TPM2C0V = TPM2CNT + SPULSE;   // Start pulse (9000)

 

Thanks,

David

Outcomes