I generated a square pulse signal 1 KhZ 50% duty cycle from the function generator and applied at port GPIO24(Ecap1) using Ecap module. The signal is shown on the watch window and passed to GPIO25 (Ecap 2) which is visible at the oscilloscope. Two Problems :
1- When I turn off the generator signal, the signal remains in the buffer and it doesn't clear. Please see the pictures after turning off the generator signal and oscilloscope retain the signal having peaks neither stable high nor low.


2- Once I change the frequency from 1KHz to 120Khz at 50% or a different duty cycle from the generator, the signal doesn't remain stable at that specific freq / duty cycle. Both frequency and duty cycle vary. Please see the results pictures below.



Please suggest in the code. Santosh Jha













