Dear all
I am using to MSP430FR2355, Now, I'm planning to measure frequency from one pin in one application.
How can I found it?
I couldn't find example code for this work.
Best Regards
Hadi
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.
Dear all
I am using to MSP430FR2355, Now, I'm planning to measure frequency from one pin in one application.
How can I found it?
I couldn't find example code for this work.
Best Regards
Hadi
You won't since this is extremely application specific.
If this is a square wave that goes from 0 to Vdd, you can probably use a port interrupt and timer to capture the on/off transitions.
If this is a sine wave, you might need some sort of zero crossing detector or an FFT.
If this is an arbitrary waveform, you really need an FFT.
**Attention** This is a public forum