Hello Sujai Gowda:
The EWM_in pin is not intended to work with pulses. That pin is used together with the EWM internal refresh mechanism. An external circuit should provide a static value to the pin when the hardware is working as expected (1 or 0, depending on the bit EWM_CTRL[ASSIN]). Then you can configure the EWM to a 100 ms period and your application is responsible for servicing the EWM within that time. If the EWM is refreshed while the EWM_in pin is asserted, then an interrupt is generated if enabled with EWM_CTRL[INTEN].
Otherwise if you really need to monitor 100 ms external pulses then I see 2 options:
1) Use the internal watchdog (WDOG instead of EWM) with a ~105 ms time-out. Connect the pulsing signal to an input pin configured as interrupt-on-edge and refresh the watchdog from the ISR. The inconvenience is that the MCU will reset if watchdog expires.
2) Set any timer (PIT, LPTMR) for a ~105 ms period. As in option (1) connect the pulsing signal to an interrupt pin and restart the timer from ISR. If timer is not restarted then its interrupt is triggered.
I hope this helps.
Regards!,
Jorge Gonzalez
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------