Summary of How to interface RFID with PIC18F4550 Microcontroller
RFID reader module is interfaced directly to a PIC18F4550 to receive the 12‑byte unique tag code and display it on a 16x2 LCD. The project explains using the reader in TTL mode (avoiding MAX232) and configuring the PIC USART interrupt (an internal peripheral interrupt) to capture incoming serial data. Pin functions of the RFID reader (Vcc, GND, BEEP, ANT, SEL, RS232, D1, D0) are listed and the SEL pin selects RS232 or Wiegand mode. The received tag bytes are processed and shown on the LCD.
Parts used in the RFID with PIC18F4550:
- PIC18F4550 microcontroller
- RFID Reader module (TTL output option)
- 16x2 LCD display
- Power supply 5V
- Connecting wires
- Optional: MAX232 level converter (if using RS232 mode)
|
Pin No.
|
Name
|
Description
|
|
1
|
Vcc
|
Supply Voltage; 5V
|
|
2
|
GND
|
Ground (0V)
|
|
3
|
BEEP
|
Beep or LED drive
|
|
4
|
ANT
|
No Use
|
|
5
|
ANT
|
No Use
|
|
6
|
SEL
|
High is RS232, Low is Weigand
|
|
7
|
RS232
|
TTL output data
|
|
8
|
D1
|
Weigand Data 1
|
|
9
|
D0
|
Weigand Data 0
|
- Can the RFID Reader be connected directly to the PIC18F4550 without MAX232?
Yes, the article describes directly connecting the RFID Reader to the PIC by using the reader's TTL output and eliminating MAX232s. - What does the SEL pin on the RFID Reader do?
The SEL pin selects the output mode: High is RS232 and Low is Wiegand. - Which RFID Reader pin provides TTL serial data for the PIC?
The RS232 pin on the reader provides TTL output data for the microcontroller when using TTL mode. - How many bytes of unique data does an RFID tag transmit?
The RFID tag contains and transmits 12 bytes of unique data. - What is the project objective with the PIC18F4550?
The objective is to receive the 12 byte unique tag code via USART and display it on a 16x2 LCD. - Which interrupt is used to receive serial data from the RFID Reader?
The USART interrupt, an internal PIC interrupt, is used to capture incoming serial data. - Are the ANT pins on the RFID Reader used in this interfacing?
The ANT pins are marked No Use in the reader pin description provided. - Is a level converter required if the RFID Reader is outputting RS232 logic?
Yes, if the reader is outputting RS232 logic, a MAX232 level converter is needed to interface with the microcontroller.