Part Number: MSP432P401R
Hello all,
I am looking for Code which can count the pulses with different pulse width ranging from 1 microseconds to 20 micro seconds, Which example program will be good to start?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: MSP432P401R
Hello all,
I am looking for Code which can count the pulses with different pulse width ranging from 1 microseconds to 20 micro seconds, Which example program will be good to start?
Hello Abhay,
Please checkout the MSP432P2 SimpleLink SDK. In particular, the Timer examples should help. If you just need to count the pulses, then just have the Timer Clock driven by your source to increment the Timer. Then you can just setup an interrupt for when you reach a certain count you are looking for.
If you need to distinguish between different pulse widths, then that's a little trickier. You could possibly use a GPIO interrupt to start a timer on a rising edge, then, grab the count via interrupt on a falling edge. You may need to watch your interrupt latency though for such small windows. Hope this helps!