| Author |
Message |
Zhane
Joined: 02 Feb 2008 Posts: 85
|
29 Feb 2008 13:35 RF & PIC |
|
|
|
|
say i have a pair of AM receiver and transmitter... how should I use it to send data from 1 receiver to 1 transmitter end?
should I use uart?
how should I encode the data? I've read about manchester encoding..but it's rather complex. does anyone has the C source for it?
|
|
| Back to top |
|
 |
rajeshkumar123
Joined: 27 Dec 2007 Posts: 179 Helped: 19 Location: Chennai-India
|
29 Feb 2008 15:24 Re: RF & PIC |
|
|
|
|
HI,
U have to use the UART here.
First you have to send preambles for proper reception and sync word for every packet to ensure byte Synchronisation
|
|
| Back to top |
|
 |
Zhane
Joined: 02 Feb 2008 Posts: 85
|
29 Feb 2008 15:31 Re: RF & PIC |
|
|
|
|
dont really get you...
1 packet is 8N1?
so i have to send 2 packets of 8bit data?
erm...how can i receive 2 packets of them?
|
|
| Back to top |
|
 |
rajeshkumar123
Joined: 27 Dec 2007 Posts: 179 Helped: 19 Location: Chennai-India
|
01 Mar 2008 17:02 Re: RF & PIC |
|
|
|
|
HI,
A packet means it is a collection of bytes. Preamble is sent first and then the sync word then the actual data finally the CRC for error detection.I hope u got it.
|
|
| Back to top |
|
 |
Google AdSense

|
01 Mar 2008 17:02 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
Zhane
Joined: 02 Feb 2008 Posts: 85
|
02 Mar 2008 14:28 Re: RF & PIC |
|
|
|
|
i tried.. sending 0xFF all the time, and only data when required.
my receiver... ignores all 0xFF, and only decode non- 0xFF
but.. doesnt quite respond to the way i want it to be
|
|
| Back to top |
|
 |