Vandal S
Joined: 02 May 2009 Posts: 50 Helped: 2
|
30 Jun 2009 0:49 manchester c coding |
|
|
|
|
i have installed MikroC and they say that there is an integrated Manchester code in the libraries (or in the help) but it's not that fast.
does anybody have an optimised code example for a rf receiver (for tx it's more simple, right?) paired with a PIC 16F877?
it would be greatly apreciated, especialy by a beginner like me, who can't write his own code, even if the theory is somewhat clear.
|
|
Vandal S
Joined: 02 May 2009 Posts: 50 Helped: 2
|
30 Jun 2009 10:15 Re: Manchester c code |
|
|
|
|
the decoding part, the receiver. someone was explaining that there should detect if there are 1 0 1 0 bits received. if not, just ignore. if so, the program should pay attention. (probably this depends, but he said he sent 10 sinc byts and the receiver received 7 - so 3 are lost in this process )
then the problems begin. the program should have paid attention at the leght of a bit, and position near the middle of a bit (which is 2 bits in Manchester coding), where there is allways a transition. if there is a transition, things are good, if not, no.
then there should jump a numer of miliseconds (depending on the baud rate - what size does a bit have in 4800 baud rate? ) and if the is a transition from high to low -> there is a 1 (in this example 1 is coded 10, 0 ->01).
am i right with this process?
the problem is the written code, as i no expert, just a beginner.
|
|