U2270B/Manchester code


Closed Thread
Results 1 to 14 of 14
  1. #1
    zx81's Avatar
    zx81 Guest

    Default U2270B/Manchester code

    I'm trying to use a U2270B to read a trasponder. This chip uses Manchester code, I don't have doubts about the decoding process, but, how can I read the pulses? I don't know how to read the signal, pulse duration, etc.

    Anybody has experience with that chip? I'm using a 16F628A, but the pcb is designed for a 12C672P.

    Thanks

  2. #2
    Salutatous's Avatar
    Salutatous Guest


    Did you find this post helpful? Yes | No

    Talking I do that like this

    in VAR BIT
    InTrs VAR PORTB.1 'On Out of U2270b

    Read:
    PauseUS 130 'for Osc 8
    in=Intrs
    If in=1 Then
    ....
    if in=0 Then
    ....
    etc..

    Regards

  3. #3
    zx81's Avatar
    zx81 Guest


    Did you find this post helpful? Yes | No

    Default

    Thanks!!

    So I suppose that a complete pulse of the code (Manchester) uses 260 microseconds.

    Is this correct?

    In your sample you use PAUSEUS 130 for OSC 8, but if I use the internal resonator and don't use the OSC statement on my code (or if I use a 4Mhz external resonator), I suppose that the 130 value would still correct, isn't it? I don't know if you are adjusted the value for a 8Mhz resonator instead that picbasic adjust it via OSC statement.

    Regards
    Last edited by zx81; - 24th March 2005 at 23:13.

  4. #4
    Salutatous's Avatar
    Salutatous Guest


    Did you find this post helpful? Yes | No

    Cool Hello!

    in manchester code:
    T=560µs and T/2=280µs
    and i read 64 bits
    my beta prog read ok the transponder but it need to be optimized!
    i can send it if you need but comments are in french

  5. #5
    zx81's Avatar
    zx81 Guest


    Did you find this post helpful? Yes | No

    Default

    Of course, your code will help me, if you can send me to [email protected] it would be great.

    If you want I can test the code on my board and colaborate with you in the optimization of the read process.

    Regards

  6. #6
    ct82's Avatar
    ct82 Guest


    Did you find this post helpful? Yes | No

    Default I need it also!!

    Can you send the code to me as well? I need it for my project. Thanks!!

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


    Did you find this post helpful? Yes | No

    Default

    There are code examples already on the forum, do a SEARCH on "Manchester Code".

  8. #8
    ct82's Avatar
    ct82 Guest


    Did you find this post helpful? Yes | No

    Default Another problem.....

    Thanks Melanie. Actually i need to read the data (manchester code) from a transponder and send it to pc using the USART feature in pic16f628A and using rs232 to interface.The problem now is i can't send the code to my pc through the microcontroller? Can you help me with that? I need it urgently. Hope to get reply from you soon!!

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


    Did you find this post helpful? Yes | No

    Default

    The PBP manual is pretty explicit in using the HPWM command. A search on HPWM currently produces 56 threads many with examples of usage. Let's not ask for further examples of what's already available and been repeated many times.

  10. #10
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Melanie
    The PBP manual is pretty explicit in using the HPWM command. A search on HPWM currently produces 56 threads many with examples of usage. Let's not ask for further examples of what's already available and been repeated many times.

    I guess what Melanie was actually trying to say is:
    See Manual Section 5.30 for HSERIN and Section 5.31 for HSEROUT

    A Search on HSEROUT produces 127 threads with many examples!
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



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


    Did you find this post helpful? Yes | No

    Default

    Errr... Thanks Ralph... Brain's gone soft! Too much work and not enough party! But it's Saturday night...

  12. #12
    Salutatous's Avatar
    Salutatous Guest


    Did you find this post helpful? Yes | No

    Default Hello ct82

    The code is in your private box

    Regards

  13. #13
    ct82's Avatar
    ct82 Guest


    Did you find this post helpful? Yes | No

    Default Thanks Salutatous!!

    The code will be very helpful to me.

  14. #14
    Join Date
    Aug 2011
    Posts
    1


    Did you find this post helpful? Yes | No

    Default Re: Hello ct82

    Please send to me too.
    Tank you

Similar Threads

  1. Reading in Manchester code
    By brid0030 in forum Code Examples
    Replies: 0
    Last Post: - 10th March 2009, 21:55
  2. How much code space do PBP statements use.
    By Darrel Taylor in forum Code Examples
    Replies: 5
    Last Post: - 13th February 2009, 21:31
  3. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  4. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  5. Re-Writing IF-THEN-AND-ENDIF code?
    By jessey in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 18th August 2006, 17:23

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