try with SEROUT2 and use the STR modifier.
try with SEROUT2 and use the STR modifier.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Thanks, I tried SERIN2 and SEROUT 2, the LCD is still displaying weird symbols. It displays eveything else ok. Here's the code:
Code:'RFID and LCD test 'Author Joshua Reynolds 'November 20th, 2008 'Rev. 1 'Configuring the 16F88 chip DEFINE OSC 8 'Internal Oscillator set to 8mhz OSCCON.4=1 OSCCON.5=1 OSCCON.6=1 ANSEL=0 'Turns off A/D converter '------Define I/O pin names rx VAR PORTB.1 'Serial input from RFID reader rfid VAR PORTB.2 'Enable rfid low= on led Var PORTB.3 lcd Var PORTB.5 buf VAR BYTE(10) 'Tag code stored as word '------Declare Variables key_value Var BYTE 'code byte from the keypad High led Pause 1000 Low led '------Wait .5 sec for everything to power up Pause 500 loop: SEROUT lcd,0,[$FE,1] SEROUT lcd,0,[$FE,1,"Read tag"] low rfid serin2 rx,396,[str buf\10] high rfid High led Pause 500 low led Pause 500 High led Pause 500 low led SEROUT lcd,0,[$FE,1,"One"] Pause 4000 SEROUT lcd,0,[$FE,1,"Tag Number"] Pause 2000 SEROUT2 lcd,396,[$FE,$C0,STR buf\10] Pause 5000 Goto loop End 'End of main program
Try something, start a new code, fill the buf Array with some data (ASCII character), then send it to your LCD.
Any link for your RFID reader?
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Maybe not a bad idea to connect the RFID to your PC to see what happen... you'll need a MAX232 or any other level converter to do that.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Just curious to know if the following line work with your LCD
Code:SEROUT2 lcd,396,[$FE,$C0,"2nd Line???"]
Last edited by mister_e; - 20th November 2008 at 19:57.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Thanks for the replies, I'll try it out in lab tomorrow. Here's a link to the RFID Parallax RFID
I'll have to look up the stuff on attaching it to a computer, I've never done anything like that.
I'm trying to find out the RFID tag ID by reading the tag and displaying it on an LCD and I can't seem to figure it out. Has anyone else been able to display the tag ID on an LCD?
Bookmarks