I know I'm resurrecting a dead thread here but I've searched and can't quite find what i'm looking for. I'm using a Parallax RFID reader and a PIC 16F88, with a 4 line LCD. Right now I'm just trying to get the tag ID's to display on the LCD. So far I can get the RFID to turn on and read a tag, but the information sent to the display is cryptic. I would appreciate any help you might be able to give. Thanks!
Here's the code I have so far.
Code:
'RFID and LCD test
DEFINE OSC8
OSCCON=%01110000
ANSEL=0
led VAR PORTB.3 'led
rx VAR PORTB.0 'Serial input from RFID reader
lcd VAR PORTB.5 'Serial Output to LCD
rfid VAR PORTB.1 'Enable rfid low= on
buf VAR BYTE(10) 'Tag code stored as word
Pause 1000
High rfid
High led
Pause 1000
Low led
SEROUT lcd,0,[$FE,1]
SEROUT lcd,0,[$FE,1,"Test"]
Pause 4000
High led
Pause 3000
Low led
low rfid
SERIN2 rx,396,[Wait($0A ),STR buf\10]
High rfid
High led
Pause 2000
Low led
Pause 500
SEROUT lcd,0,[$FE,1]
SEROUT lcd,0,[$FE,1,"Tag number"]
SEROUT lcd,0,[$FE,$C0,buf]
Bookmarks