Demodulating FM Signal - Respiratory Inductance Plethysmography

Sensacell

Joined Jun 19, 2012
3,789
Yes, your resolution will be crap measuring a single period.

Add a binary counter like a CD4040 ahead of the capture input, that's all you need to down-convert.
Chose the divider ratio to give you a sample rate you can live with, the lower the rate, the higher the resolution, it's a trade off here.

It's better to use a programmable divider in the MCU, then you can calibrate it to give you a more-or-less constant sample rate, regardless of baseline frequency.
 

Thread Starter

reviver

Joined Jun 19, 2017
8
Yes, your resolution will be crap measuring a single period.

Add a binary counter like a CD4040 ahead of the capture input, that's all you need to down-convert.
Chose the divider ratio to give you a sample rate you can live with, the lower the rate, the higher the resolution, it's a trade off here.

It's better to use a programmable divider in the MCU, then you can calibrate it to give you a more-or-less constant sample rate, regardless of baseline frequency.
What is the programmable divider module called in an MCU? I am not familiar with it.
 

Sensacell

Joined Jun 19, 2012
3,789
In a PIC, use the counter COMPARE mode, you can load it with a value and it will interrupt, or toggle a pin when the counter matches a register.

Use the pin toggle feature, connect the output pin to a CAPTURE input to latch your main counter for the period measurement.
This setup automates the whole divide-and-measure-period affair for you nicely.

I have used this technique to measure PPM frequency modulation in sensing applications to great effect.
 
Top