Help with Manchester Encoding


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Dec 2007
    Posts
    34


    Did you find this post helpful? Yes | No

    Default

    Thanks Skimask, i made the changes to the code and it compiled with no errors.

    I managed to download the HEX files to both the transmitter and reciever chips and installed them back into the circuit. I connected it to the computer and started HyperTerminal. When i powered the circuit up, Hyperterminal displayed "uB=" three times and then no more information was displayed.

    I am still new to this so i am not sure whether i have stuffed up the circuit or the code. I have attached a copy of the circuit design, can anyone's see anything wrong with it or programmed it incorrectly?

    Thanks again,
    Jeremy
    Attached Images Attached Images   
    Attached Files Attached Files

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by jhorsburgh View Post
    I managed to download the HEX files to both the transmitter and reciever chips and installed them back into the circuit. I connected it to the computer and started HyperTerminal. When i powered the circuit up, Hyperterminal displayed "uB=" three times and then no more information was displayed.
    Re-Read your PBP manual SLEEP section VERY VERY carefully.
    Then compare that chapter to your code and you will have your answer.

    I believe that the thread referenced in post #1 is flawed in one particular aspect (it also contain the phrase 'this example has not been tested'), and it is this aspect in which yours is also flawed...
    Last edited by skimask; - 13th August 2008 at 03:59.

  3. #3
    Join Date
    Dec 2007
    Posts
    34


    Did you find this post helpful? Yes | No

    Default

    Thanks Skimask, i had to read over the SLEEP definition a couple of times but i got it in the end. The code worked fine when there is a wire between the PIC's but when i use the RF Modules the first signal goes through to the computer but after that only 30% make it.

    I looked around and found that almost all similar project use an external oscillator, so i changed it to external and added leds to both circuits so i know when a signal is sent and recieved. That didn't really do much more than tell me that the reciever wasn't getting the signal.

    Would a preamble be needed to make this more reliable. If so how would i go about doing that?
    Thanks,
    Jeremy

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,169


    Did you find this post helpful? Yes | No

    Default

    Are your modules capable of sending serial data? If not, then manchester encoding - decoding is a must. Also preamble always needed.

    This case has been brought up many times, just have a look around.

    Ioannis

  5. #5
    Join Date
    Dec 2007
    Posts
    34


    Did you find this post helpful? Yes | No

    Default

    Thank you all for your help.
    I have moved back to SEROUT/SERIN to keep things simple. The RF seems to be working great, now i just have to get the IR working.

    Thanks Again,
    Jeremy

  6. #6
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,169


    Did you find this post helpful? Yes | No

    Default

    Serin/Serout has nothing to do with the modules ability to send raw binary or encoded data for Data slicer balancing. Be carefull with that.

    Ioannis

Similar Threads

  1. Reading in Manchester code
    By brid0030 in forum Code Examples
    Replies: 0
    Last Post: - 10th March 2009, 21:55
  2. SERIN2 – SEROUT2 and Manchester mistake.
    By RCtech in forum Serial
    Replies: 8
    Last Post: - 4th September 2007, 22:55
  3. Help with serin, serout, Manchester encoding
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 5th April 2007, 13:31
  4. Manchester encoding
    By jonathanRF in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 8th February 2007, 19:05
  5. Manchester encoding
    By jonathanRF in forum Off Topic
    Replies: 3
    Last Post: - 8th February 2007, 18:56

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