Microcontroller › PIC › RFID displays weird numbers
- This topic has 1 reply, 2 voices, and was last updated 8 years, 8 months ago by
Prabakaran P M.
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
March 4, 2016 at 7:58 am #4339
rolls
ParticipantHello,please i need your help. Am making an RFID access control for my final year project. but each time i place the tag on the rfid reader it displays weird characters. The code is written in MikroC with PIC18F45K22. Thanks very much for your replies.
// LCD module connectionssbit LCD_RS at RB4_bit;sbit LCD_EN at RB5_bit;sbit LCD_D4 at RB0_bit;sbit LCD_D5 at RB1_bit;sbit LCD_D6 at RB2_bit;sbit LCD_D7 at RB3_bit;sbit LCD_RS_Direction at TRISB4_bit;sbit LCD_EN_Direction at TRISB5_bit;sbit LCD_D4_Direction at TRISB0_bit;sbit LCD_D5_Direction at TRISB1_bit;sbit LCD_D6_Direction at TRISB2_bit;sbit LCD_D7_Direction at TRISB3_bit;// End LCD module connectionschar i,rfid[13] ;char rfid2[] = "012345678912" ;int count = 0;void main(){ANSELB = 0;ANSELD = 0;ANSELC = 0;Lcd_Init(); // Initialize LCDLcd_Cmd(_LCD_CLEAR); // Clear displayLcd_Cmd(_LCD_CURSOR_OFF); // Cursor off//Lcd_Out(1,1,"RFID Tag Reader"); // Write text in first rowUART2_Init(9600);rfid[12] = '