Other Parts Discussed in Thread: MSP430F2132
My idea is to Capture a FSK modulated input signal that is coming to MSP430F2132 and find out if any Freq change occurs and capture the data.
The input is given to a pin which has 3 functions XOUT / CA /P2.7 .
Currenty,i have the following ideas that i am tryin to implement .
1.Configure the input pin as CA (Comparator A) Function.
COmpare the level of input signal with a reference voltage to identify the Falling and Rising edge transition.
Configure a timer in up mode and get the time stamp of edge tranisitions(High to Low / Low to High) .
Find the difference between timestamps of same tranistions and identify the Frequency coming in.
2. Configure the input pin as GPIO (P2.7)
Poll the input pin for the Edge transition.
Get the timestamps of Edge transitions.
Find the difference between timestamps and calculate the frequency.
I have connected a function generator to the input pin for now to simulate square wave signal .
but , I am not getting the different timestamps for high -Low edge transition or Low-High transition,which should be different for different frequcncies.
I used to get the same timestamps for all the frequencies that i set from 10khz - 120Khz.
Do you have any sample snippets for FSK Demod using MSP430 other than slaa037 ?