CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

How to decode ASK receiver?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
uni_student



Joined: 01 Aug 2007
Posts: 38
Location: AUckland, NEW ZEALAND

View user's profile Send private message Send e-mail MSN Messenger

How to decode ASK receiver?
PostPosted: Mon Feb 16, 2009 5:15 pm     Reply with quote

Hi, i have a wireless ASK module receiving characters which i need to decode using an analogue pin of a pic16f716. Is it as easy as reading the analogue pin every 3ms (seems to be the average time between bits) to determine either a high or low and determining the character from there or is there a more accurate way of doing this? Has anyone decoded ASK before? Any help appreciated. Cheers
RLScott



Joined: 10 Jul 2007
Posts: 465

View user's profile Send private message

Re: How to decode ASK receiver?
PostPosted: Mon Feb 16, 2009 5:34 pm     Reply with quote

uni_student wrote:
Hi, i have a wireless ASK module receiving charactors which i need to decode using an analogue pin of a pic16f716. Is it as easy as reading the analogue pin every 3ms (seems to be the average time between bits) to determine either a high or low and determining the charactor from there or is there a more accurate way of doing this? Has any1 decoded ASK before? Any help appreciated. Cheers

No, that will will lead to problems. You need to synchronize to the ASK bit cells. This is usually done by using a hardware comparator and Phase Locked Loop rather than reading analog values and trying to process them. But the bit rate is slow enough that you could read the analog values about 8 times per bit cell (every 375 usec) and running a software phase-locked loop, but that gets pretty complicated.

Normally ASK is encoded with some sort of bit-stuffing to guarantee that you won't have any long runs of the same bit. That would make it harder to lock on to. So if you want to decode ASK, you need to research what kind of encoding is being used by your particular flavor of ASK.
_________________
Robert Scott
Real-Time Specialties
Embedded Systems Consulting
Guest








PostPosted: Mon Feb 16, 2009 11:57 pm     Reply with quote

You can look at this page for an example of a ASK demodulator done in hardware. WWVB is low rate, but the basic concept can and has been used at much higher rates (like ACARS). All you need to do is find the edges with a data slicer - and sample in between. Simple with high signal to noise ratios, more work with noisy signals, but that's half the fun!

;-)

http://geocities.com/hagtronics/wwvb.html

HTH - Steve H
uni_student



Joined: 01 Aug 2007
Posts: 38
Location: AUckland, NEW ZEALAND

View user's profile Send private message Send e-mail MSN Messenger

PostPosted: Tue Feb 17, 2009 3:01 am     Reply with quote

Thanx for the replies. Now I've read enough to start with my coding.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group