RF and Manchester


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1

    Default RF and Manchester

    Hi,
    I open a new thread while nobody answered my old thread :-).
    Did someone have a working Manchester code Encoder and Decoder ?
    This what I find in forum dont work.


    Regard Pesti.

  2. #2
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Default Sorry I missed your thread

    Hi there,

    Could you please elaborate. I have worked with Manchester Encoding schemes but not with PBP really.

    Regards

    Sougata

  3. #3
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289


    Did you find this post helpful? Yes | No

    Default

    Please give me some informations:

    How many Bytes do you want to transfer ?
    Are the receiver an Transmitter PICs ?
    PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Hi,
    Thanks people,yes the receiver is a pic and the transmitter is a pic,I have PIC16f870 and a UAA3201T.
    For the moment I want to send from 1 to 5 byte no more, just for tests when this work then i can do more.
    I attached the receiver to PortA.0 and I want to Decode the data for example 1 or more byte and then on PortA.1 send the data encoded to the transmitter.
    I need a working manchester code ?!
    And my second question is Are the binary data from receiver from left to right to be read or from right to left(I know that when I read binary data i starting from right 1,2,4,8,16,32 and so on) and to send did I send from left or right.
    I write this little example to test if this work:

    Main:
    Manchesterword = %1001101001010110

    For CounterA=0 to 7
    If ManchesterWord.15=0 then
    MyData=0
    endif
    If ManchesterWord.15=1 then

    MyData=1
    endif

    ManchesterWord=ManchesterWord<<2

    hserout[bin MyData]
    next

    pause 2000

    goto main

    Thanks people for the help.

    Regard Pesti.

  5. #5
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Try searching the forum... code examples in this thread...

    http://www.picbasic.co.uk/forum/showthread.php?t=198

  6. #6


    Did you find this post helpful? Yes | No

    Default

    Hi Melanie,
    I have just tryed this code but dont work,I'm tryed with this example just to see if this work:
    Define LOADER_USED 1


    Include "modedefs.bas" ' Mode definitions for Serout
    ADCON1=7
    define osc 4

    DEFINE HSER_RCSTA 90h
    DEFINE HSER_TXSTA 24h
    DEFINE HSER_SPBRG 207 ' 1200 Bauds
    DEFINE HSER_CLOERR 1

    ''''''''''''''''''''''''''''''''''''''''''''''''De coder'''''''''''''''''''''''''''''''''''''''''
    Main:
    ManchesterWord = %1010101001010101


    ErrorFlag=0
    For CounterA=0 to 7
    If ManchesterWord.1=0 then
    MyData.7=0
    If ManchesterWord.0=0 then ErrorFlag=1
    else
    MyData.7=1
    If ManchesterWord.0=1 then ErrorFlag=1
    endif
    ManchesterWord=ManchesterWord>>2
    If CounterA<7 then MyData=MyData>1
    next
    hserout [Mydata]
    pause 2000
    goto Main

    I become all the time 255255255255127127...... and so on.

    Regard Pesti.

Similar Threads

  1. 16F84/16F628 and Manchester
    By Navaidstech in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 12th March 2009, 15:28
  2. Manchester Coding / Decodeing for RF Modules
    By charudatt in forum Code Examples
    Replies: 23
    Last Post: - 31st January 2009, 10:51
  3. Serial rf communication
    By tazntex in forum General
    Replies: 8
    Last Post: - 2nd August 2008, 16:27
  4. Problem with manchester code for RF
    By Dhanushka in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 6th August 2007, 11:46
  5. Manchester coding question
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 5th May 2007, 17:35

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts