FSK mod and demod
CASTalk.com Forum Index CASTalk.com
Discussion of DSP, FPGA, storage and embedded system.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web castalk.com
FSK mod and demod

 
Post new topic   Reply to topic    CASTalk.com Forum Index -> DSP
Author Message
Gunstinger
Guest





Posted: Tue Dec 13, 2005 5:16 pm    Post subject: FSK mod and demod Reply with quote

Hello I'm stuck with a little problem here in MatLab. What I need to do i
input a string of text, convert it to binary, and then use FSK to mod i
together, then demod and and filter it out and convert it back to tex
again. The first part is easy, the input of text and converting, what i'
having trouble with is using FSK to put the binary input and the carrie
waves together to get my modulated signal. Here's the code I have so far.


phrase = input('Enter desired word or phrase: ','s')
binphr=dec2bin(abs(phrase))
fs=8000
tn = 0:1/fs:0.005;
phi2 = 360;
xx = [cos(2*pi*1650*tn), cos(2*pi*1850*tn + phi2)];


So I have my binphr and xx, so how do I combine the two.
Back to top
Mike Yarwood
Guest





Posted: Tue Dec 13, 2005 5:16 pm    Post subject: Re: FSK mod and demod Reply with quote

"Jerry Avins" <jya@ieee.org> wrote in message
news:idadnbArCbyUbQPenZ2dnUVZ_tCdnZ2d@rcn.net...
Quote:
Gunstinger wrote:
Hello I'm stuck with a little problem here in MatLab. What I need to do
is
input a string of text, convert it to binary, and then use FSK to mod it
together, then demod and and filter it out and convert it back to text
again. The first part is easy, the input of text and converting, what i'm
having trouble with is using FSK to put the binary input and the carrier
waves together to get my modulated signal. Here's the code I have so far.


phrase = input('Enter desired word or phrase: ','s')
binphr=dec2bin(abs(phrase))
fs=8000
tn = 0:1/fs:0.005;
phi2 = 360;
xx = [cos(2*pi*1650*tn), cos(2*pi*1850*tn + phi2)];


So I have my binphr and xx, so how do I combine the two.

The closest meaning I can imagine for converting a string of text to
binary involves some sort of encoding, like EBCDIC or ASCII. If it isn't
already encoded, how do you input it?

FSK stands for "frequency shift keying". ("Keying" is an archaic synonym
for modulation.)

I suspect that you need to rethink your procedures.

and ask yourself whether you want your tn to be 41 samples long , and why

you have added 360 radians to your second vector.

Best of luck - Mike
Back to top
Jerry Avins
Guest





Posted: Tue Dec 13, 2005 5:16 pm    Post subject: Re: FSK mod and demod Reply with quote

Gunstinger wrote:
Quote:
Hello I'm stuck with a little problem here in MatLab. What I need to do is
input a string of text, convert it to binary, and then use FSK to mod it
together, then demod and and filter it out and convert it back to text
again. The first part is easy, the input of text and converting, what i'm
having trouble with is using FSK to put the binary input and the carrier
waves together to get my modulated signal. Here's the code I have so far.


phrase = input('Enter desired word or phrase: ','s')
binphr=dec2bin(abs(phrase))
fs=8000
tn = 0:1/fs:0.005;
phi2 = 360;
xx = [cos(2*pi*1650*tn), cos(2*pi*1850*tn + phi2)];


So I have my binphr and xx, so how do I combine the two.

The closest meaning I can imagine for converting a string of text to
binary involves some sort of encoding, like EBCDIC or ASCII. If it isn't
already encoded, how do you input it?

FSK stands for "frequency shift keying". ("Keying" is an archaic synonym
for modulation.)

I suspect that you need to rethink your procedures.

Jerry
--
Engineering is the art of making what you want from things you can get.
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
Back to top
 
Post new topic   Reply to topic    CASTalk.com Forum Index -> DSP All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




VoIP Electronics Powered by phpBB