electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

Manchester c code


Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> Manchester c code
Author Message
Vandal S



Joined: 02 May 2009
Posts: 50
Helped: 2


Post30 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.
Back to top
eltonjohn



Joined: 22 Feb 2002
Posts: 1751
Helped: 28


Post30 Jun 2009 1:48   

Re: Manchester c code


Manchester encoder or decoder?

The encoder is really simple to do

just change 1-> 01 and 0 -> 10 so for every 4 bits you produce 8 bits

the decoder is also simple . depending on how you will sample the received data
If you are using a ADC or just logic .you need to detect zero crossings .
Back to top
Google
AdSense
Google Adsense




Post30 Jun 2009 1:48   

Ads




Back to top
Vandal S



Joined: 02 May 2009
Posts: 50
Helped: 2


Post30 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.
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> Manchester c code
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
manchester code encoding using assembly code for pic (1)
Manchester Code (6)
Read Manchester Code from U2270 (5)
Need help!!! Read 64 bit manchester code using PIC16F628A (1)
manchester encoding? (3)
Manchester encoded (1)
manchester coding (13)
Manchester coding (4)
Manchester Encoder (8)
Manchester Encoder (1)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS