rfidproblem
Newbie level 3
Hello guys ,,
I have a problem with my project, its a rfid reader (125 KHz) connected to pic16f877a with a LCD (works fine without rfid )..
after I connect them ,, I only see the cursor down , but nothing happens when I try to make it read the tags!
my code (micro c):
he datasheets for the rfid and LCD:
**broken link removed** ... _uart.html
**broken link removed**
the circuit of my project is in the attachment
can anyone help me plz??
I have a problem with my project, its a rfid reader (125 KHz) connected to pic16f877a with a LCD (works fine without rfid )..
after I connect them ,, I only see the cursor down , but nothing happens when I try to make it read the tags!
my code (micro c):
Code:
unsigned char uart_rd;
unsigned char data;
unsigned char temp[13];
unsigned char N = 0;
void main() {
TRISD = 0x80;
TRISB = 0;
PORTB = 0xFF;
USART_Init(9600);
Delay_ms(100);
Lcd_Init(&PORTB);
Lcd_Cmd(LCD_BLINK_CURSOR_ON);
Delay_ms(1000);
do {
if (USART_Data_Ready()){ //<------ Check if a character has been received before reading
uart_rd = USART_Read(); // read the received data,
USART_Write(uart_rd);
temp[N] = uart_rd;
N = N +1;
if (N == 12) // temp storing string
{
temp[12] = 0;
Lcd_Cmd(LCD_CLEAR);
Lcd_out(1,1,temp);
N=0;
}
}
} while(1);
}
he datasheets for the rfid and LCD:
**broken link removed** ... _uart.html
**broken link removed**
the circuit of my project is in the attachment
can anyone help me plz??