AnsweredAssumed Answered

Reading Counter Register (PWMA_SMnCNT)

Question asked by Md Rishad Ahmed on Oct 29, 2018
Latest reply on Nov 5, 2018 by xiangjun.rong

Hi

I am trying to read the PWM counter register in MC56F827xx MCU (PWMA_SMnCNT) at a PWM reload ISR event (please see the attached code). It should read zero all the time as the reload event happens when the counter is reset, but, instead I read 143. Is there a delay once the Reload ISR is called and the counter register is read? Am I reading it correctly? Please help.

 

Thanks.

Rishad

Attachments

Outcomes