Hi all,
just want to ask whether somebody has experience implementing "missing pulse detector" with MSP430.
The only thing crossed my mind just now is by utilizing a Timer_A/Timer_B with watchdog timer. The pulse generator is connected as input of Timer_A/Timer_B clock source (Timer module set in "up mode" and CCR0 set to 1), and Watchdog timer interrupt is set with interval time slightly greater than the pulse period to be detected.
Depending on which interrupt occur first, the following shall occur:
- if Timer_A or Timer_B interrupt occurs before the Watchdog timer expires, the Timer_A/Timer_B interrupt shall set an output pin as TRUE (pulse detected) reset/clear the watchdog counter.
- if Watchdog timer expires before Timer_A/Timer_B occurs (due to a "missing pulse"), the watchdog timer will set the output pin as FALSE(missing pulse detected).
But i think this is not the mose elegant way to do it because basically it uses the whole Timer_A/Timer_B resources and wastes the other functionality of the CCR registers.
Any opinion how this can be done simpler and nicer?
Thanks for any input.