Microcontroller › 8051 › RFID tag ID display problem *need help*
- This topic has 1 reply, 2 voices, and was last updated 10 years, 2 months ago by
AJISH ALFRED.
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
November 21, 2014 at 5:04 am #3319
Jasper Nunisa
ParticipantHey guys, Ive been working on displaying the RFID tag ID on a LCD using 8051 microcontroller. I used the simple-to-use RFID module from Positron Technologies and interfaced it to 8051 using Max232. But everytime I scan the tag, it shows some weird characters instead of numbers with checksum value. I connected the module separately by RS232 to the pc using hyperterminal and the tag works just fine but on the LCD it just shows some garbage. Can anybody help me out, please??
Here’s the program
//Program to interface RFID with 8051 microcontroller (AT89C51)#include<reg51.h>unsigned int data_out,command=0x80,temp;sfr lcd_data_pin=0x90; //port 1sbit rs=P0^0; //Register selectsbit rw=P0^1; //Read/Writesbit en=P0^2; //Enable pinunsigned char card_id[12];void delay(unsigned int count) //Function to provide delay{int i,j;for(i=0;i<count;i++)for(j=0;j<1275;j++);}void lcd_command(unsigned char comm) //Lcd command funtion{lcd_data_pin=comm;en=1;rs=0;rw=0;delay(1);en=0;}void lcd_data(unsigned char disp) //Lcd data function{lcd_data_pin=disp;en=1;rs=1;rw=0;delay(1);en=0;}lcd_string(unsigned char *disp) //Function to send string{int x;for(x=0;disp[x]!=’