AnsweredAssumed Answered

E-timer CAPT1 and CAPT2 counts difference inaccurate (MPC5741)

Question asked by Debraj Mukhopadhyay on Aug 1, 2018
Latest reply on Mar 19, 2019 by Petr Stancik


I am working on MPC5741 microcontroller. I am using E-timer (Etimer_1_CH4) module to detect the frequency & duty cycle of an input square pulse.

E-timer input clock frequency = 80MHz

Input Signal Frequency = 1 KHz;  so Input signal Period = 1ms ;Input Signal Duty Cycle = 50 %


Configured the CAPT1 for Rising Edge and CAPT2 for falling edge.

Theoretical calculation for the  difference of counts between cap1 and cap2 for the ON TIME of the pulse is : 

1ms/(2*(1/80M)) = 40,000 counts.

But when I checked in trace32 window, I found the difference is around 2.

Please have brief look of the E-timer Channel 4 Configurations and results captured in trace window.


Please give your valuable opinion to fix the bug. Expecting your reply soon.