Hi,
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.
Hi,
it is not so soon but...
you have selected external input as primary source. You should select IPBus/1 clock to get similar result you expected.
BR, Petr