Shop OBEX P1 Docs P2 Docs Learn Events
Reading RFID tag using AVR with C Programming — Parallax Forums

Reading RFID tag using AVR with C Programming

iamfootyiamfooty Posts: 1
edited 2007-12-07 04:56 in General Discussion
I'm pretty new to C programming and AVR and need some help. I am required to read 12-byte ASCII string via the TTL-level SOUT with a start and stop byte from parallax RFID reader. All communication is 8 data bits, no parity, 1 stop bit, non-inverted, least significant bit first (8N1).

I have managed to power up the RFID reader but I have no idea how I should read the unique ID of the RFID at all.
I know that I need to make use of the UART receiving pin i.e. PD0 or PB1 to read the bytes, but I have no idea how to write the code in C.
Can anybody help me with this ?

Thank you!

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-12-05 14:19
    Probably not to the extent you would like. This is a Parallax support forum and, although you're asking for help regarding a Parallax RFID reader, you're really asking for help with the AVR side of the problem. You need to look at your AVR documentation and probably a good introductory book on C to figure out how to read the RFID data. If you have any questions about the format of the data or about its timing or problems with the RFID reader itself, please do ask, but this is not the right place to ask for help with basic AVR coding.
  • metron9metron9 Posts: 1,100
    edited 2007-12-07 04:56
    You may want to search avrfreaks.net If you post the question over there like you have here I can tell you what you will get for a response.

    "Read the datasheet" and lots of stuff about cheating on homework assignments, depends how ornry they are. Ask the question after doing your homework and they will all be too happy to help.

    I would be happy to help but I won't just write the program for you.

    Do the searching, read the datasheet and ask a specific question that you do not understand. Perhaps just jump to the avrfreaks.net site and ask over there. If you do your homework and ask this way you may get a dozen or more replys and get the job done. I will keep an eye out for your post over there.

    You better post the AVR you are using as well as there are many AVR chips.

    It is simple though, you just set up the baud rate and turn the transmitter and receivers on and use an interrupt to bufffer the data as it comes in. I can't help with C code but I can in Assembler.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Think Inside the box first and if that doesn't work..
    Re-arrange what's inside the box then...
    Think outside the BOX!
Sign In or Register to comment.