SlideShare a Scribd company logo
As explained earlier (refer RFID interfacing with 8051 & with AVR), an RFID module

consists of an RFID Reader, a line converter (usually MAX232) and a COM port. The

line converter of this module converts the TTL logic voltage of RFID Reader to RS232

logic. Therefore, to convert the voltage level from such an RFID module, another

MAX232 is used to interface it with a microcontroller.



One can also use an RFID Reader directly to interface with the controller, thus avoiding

the need of voltage level converters. Here both the MAX232s have been eliminated

from the circuit and RFID reader is directly connected with the PIC microcontroller.




The following table explains the pin diagram of the RFID Reader module.



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


Another part of the RFID system is RFID tag, which contains 12 bytes of unique data.

As the tag comes in the range of the Reader Module, it gets activated and transmits this

unique code. (For more detail on working of RFID system, refer the article on RFID) The

objective here is to receive this 12 byte unique code and display on a 16x2 LCD using

PIC18F4550.



With the RFID interfacing, this article also explains the USART interrupt which is an

internal interrupt. (For external interrupts, refer PIC Hardware interrupts) The internal

interrupts, unlike hardware interrupts, are associated with internal peripherals of the

controller. To use the USART interrupt, following registers have to be configured

accordingly.



1. INTCON (Interrupt Control Register)

Bit 7    Bit 6     Bit 5              Bit 4      Bit 3       Bit 2       Bit 1    Bit 0
GIE/GIEH PEIE/GIEL TMR0IE             INT0IE     RBIE        TMR0IF      INT0IF   RBIF


PEIE/GIEL: This bit is used to enable/disable all the peripheral interrupts (Internal

interrupts) of the controller. But GIE/GIEH bit must be set to high first.

       1 = Enables all Peripheral Interrupts

       0 = Disables all Peripheral Interrupts
GIE/GIEH: This is Global Interrupt Enable bit. This bit is set to high to enable all

interrupts of the PIC18F4550.

        1 = Enables interrupts

        0 = Disables all interrupts



2. PIR1 (Peripheral Interrupt Request 1)

Bit 7       Bit 6       Bit 5         Bit 4   Bit 3      Bit 2       Bit 1      Bit 0
SPPIF       ADIF        RCIF          TXIF    SSPIF      CCP1IF      TMR2IF     TMR1IF


TXIF: This is Transmission interrupt flag which is set to high when TXREG* is empty.

RCIF: This is Reception interrupt flag which is set to low when reception is complete.

*TXREG : EUSART Transmit Register (The data to be transmitted is stored in this

register)



3. PIE1 (Peripheral Interrupt Enable 1)

Bit 7       Bit 6       Bit 5         Bit 4   Bit 3      Bit 2       Bit 1      Bit 0
SPPIE       ADIE        RCIE          TXIE    SSPIE      CCP1IE      TMR2IE     TMR1IE


TXIE: This bit is used to enable/disable the Transmission (Tx) interrupt.

RCIE: This bit is used to enable/disable the Reception (Rx) interrupt.

Refer PIC EUSART registers for more details.



The connections of RFID reader module and LCD with the microcontroller are shown in

the circuit diagram tab.
Programming Steps:

1. Set the baud rate of PIC’s USART of to 9600 bps.

2. Set the SPEN and CREN bits to ‘1’ (RCSTA Register).

3. Set the GIE and PEIE to ‘1’ (INTCON Register).

4. Store the 12 byte data into an array when Reception Interrupt is generated.

5. Print the all stored data on the LCD. Refer displaying text on LCD using PIC.




Image:




Learn Analog System Design with Texas Instruments!
The RF module, as the name suggests, operates at Radio Frequency. The

corresponding frequency range varies between 30 kHz & 300 GHz. In this RF system,

the digital data is represented as variations in the amplitude of carrier wave. This kind of

modulation is known as Amplitude Shift Keying (ASK).



Transmission through RF is better than IR (infrared) because of many reasons. Firstly,

signals through RF can travel through larger distances making it suitable for long range

applications. Also, while IR mostly operates in line-of-sight mode, RF signals can travel

even when there is an obstruction between transmitter & receiver. Next, RF

transmission is more strong and reliable than IR transmission. RF communication uses

a specific frequency unlike IR signals which are affected by other IR emitting sources.



This RF module comprises of an RF Transmitter and an RF Receiver. The

transmitter/receiver (Tx/Rx) pair operates at a frequency of 434 MHz. An RF transmitter

receives serial data and transmits it wirelessly through RF through its antenna

connected at pin4. The transmission occurs at the rate of 1Kbps - 10Kbps.The

transmitted data is received by an RF receiver operating at the same frequency as that

of the transmitter.



The RF module is often used alongwith a pair of encoder/decoder. The encoder is used

for encoding parallel data for transmission feed while reception is decoded by a

decoder.    HT12E-HT12D,       HT640-HT648,       etc.   are    some     commonly     used

encoder/decoder pair ICs.
Pin Diagram:




Pin Description:
                                    RF Transmitter

Pin No    Function                                   Name
   1      Ground (0V)                                Ground
   2      Serial data input pin                      Data
   3      Supply voltage; 5V                         Vcc
   4      Antenna output pin                         ANT


                                     RF Receiver

Pin No    Function                                   Name
   1      Ground (0V)                                Ground
   2      Serial data output pin                     Data
   3      Linear output pin; not connected           NC
   4      Supply voltage; 5V                         Vcc
5   Supply voltage; 5V   Vcc
6   Ground (0V)          Ground
7   Ground (0V)          Ground
8   Antenna input pin    ANT

More Related Content

PPTX
Rf module interfacing
Kadari Harshini
 
PPT
RF MODULE Part-15
Techvilla
 
PDF
RF module
Mohsen Sarakbi
 
PPSX
Wireless RF Module Using PIC MCU (Slides).
Abee Sharma
 
PPT
RF transmitter & receiver
codexdesign
 
PPTX
433 MHz RF Rx-Tx is a Receiver-Transmitter module
shashi gautam
 
Rf module interfacing
Kadari Harshini
 
RF MODULE Part-15
Techvilla
 
RF module
Mohsen Sarakbi
 
Wireless RF Module Using PIC MCU (Slides).
Abee Sharma
 
RF transmitter & receiver
codexdesign
 
433 MHz RF Rx-Tx is a Receiver-Transmitter module
shashi gautam
 

What's hot (20)

PPT
Rf receiver design case studies
Phani Kumar
 
PPT
Fundamentals of RF Systems
Yong Heui Cho
 
PPT
Introduction to RF & Wireless - Part 1
Carl Weisman
 
PPT
Introduction to RF & Wireless - Part 4
Carl Weisman
 
PPTX
General/Digital up conversion
Eswara Reddy Sonnapareddy
 
PDF
Wireless RF module
rapper13_32
 
PDF
Max2837 hackrf
Renato Imagawa
 
PDF
Rf basics
Saif Ullah Khan
 
PDF
KYL-200L wireless data transmission RF module for 2-3km
Minerva Zhao
 
PPT
Very Low-Jitter Encoded Clocking for High Speed ADCs Using the ADF4002 PLL
Premier Farnell
 
PPTX
Lecture 3 spread spectrum
Josh Street
 
PDF
Multi band, multi mode digital rf receiver front end module for m-wimax
eSAT Publishing House
 
PDF
10Gb/s DWDM XFP Transceiver Hot Pluggable, Duplex LC, +3.3V & +5V, 100GHz ITU...
Allen He
 
PPTX
GFSK DEMODULATOR
HARINATH REDDY
 
PPT
Lecture3 signal encoding_in_wireless
Yahya Alzidi
 
PPTX
RadioVerse
Analog Devices, Inc.
 
PDF
Multiband Transceivers - [Chapter 5] Software-Defined Radios
Simen Li
 
PDF
RF Matching Guidelines for WIFI
criterion123
 
PPTX
RF Power Management Attach Training Module
Analog Devices, Inc.
 
Rf receiver design case studies
Phani Kumar
 
Fundamentals of RF Systems
Yong Heui Cho
 
Introduction to RF & Wireless - Part 1
Carl Weisman
 
Introduction to RF & Wireless - Part 4
Carl Weisman
 
General/Digital up conversion
Eswara Reddy Sonnapareddy
 
Wireless RF module
rapper13_32
 
Max2837 hackrf
Renato Imagawa
 
Rf basics
Saif Ullah Khan
 
KYL-200L wireless data transmission RF module for 2-3km
Minerva Zhao
 
Very Low-Jitter Encoded Clocking for High Speed ADCs Using the ADF4002 PLL
Premier Farnell
 
Lecture 3 spread spectrum
Josh Street
 
Multi band, multi mode digital rf receiver front end module for m-wimax
eSAT Publishing House
 
10Gb/s DWDM XFP Transceiver Hot Pluggable, Duplex LC, +3.3V & +5V, 100GHz ITU...
Allen He
 
GFSK DEMODULATOR
HARINATH REDDY
 
Lecture3 signal encoding_in_wireless
Yahya Alzidi
 
Multiband Transceivers - [Chapter 5] Software-Defined Radios
Simen Li
 
RF Matching Guidelines for WIFI
criterion123
 
RF Power Management Attach Training Module
Analog Devices, Inc.
 
Ad

Viewers also liked (10)

PPT
Introduction to RF & Wireless - Part 2
Carl Weisman
 
PPTX
愛台東之語言與人生報告=柯佩妤
瑞信 韓
 
PPTX
Quantum error correction
Phelim Bradley
 
PDF
RF Module Design - [Chapter 4] Transceiver Architecture
Simen Li
 
DOC
Rf robot
mitesh_s_agrawal
 
PDF
RF Module Design - [Chapter 6] Power Amplifier
Simen Li
 
PPTX
Fm transmitter and receivers
Yogesh Bhargawa
 
PDF
RF Module Design - [Chapter 1] From Basics to RF Transceivers
Simen Li
 
PDF
A report on Rf controlled car
itfakash
 
PDF
Understanding RF Fundamentals and the Radio Design of Wireless Networks
Cisco Mobility
 
Introduction to RF & Wireless - Part 2
Carl Weisman
 
愛台東之語言與人生報告=柯佩妤
瑞信 韓
 
Quantum error correction
Phelim Bradley
 
RF Module Design - [Chapter 4] Transceiver Architecture
Simen Li
 
RF Module Design - [Chapter 6] Power Amplifier
Simen Li
 
Fm transmitter and receivers
Yogesh Bhargawa
 
RF Module Design - [Chapter 1] From Basics to RF Transceivers
Simen Li
 
A report on Rf controlled car
itfakash
 
Understanding RF Fundamentals and the Radio Design of Wireless Networks
Cisco Mobility
 
Ad

Similar to Rf module (20)

PDF
14849441 rf-wireless (1)
Sphamandla Dlamini
 
PPTX
Akash uid ppt3
Akash Verma
 
DOCX
Rf module interfacing without microcontrollers
Tauseef khan
 
PDF
Rf based wireless_remote
Fortune Nwachukwu
 
PPTX
23.pptx
Kishor Mhaske
 
PDF
Id 12-datasheet
Atul Uttam
 
PDF
RF ID_toll2
Vibhor Rampall
 
PDF
S7 200 cable
nguyenthanhduy99
 
PDF
Home appliances control using RF communication
Chittaranjan Baliarsingh
 
DOC
RFID PROJECTS ABSTRACT LIST-Rfid based access control and staff attendence ma...
ASHOKKUMAR RAMAR
 
PPTX
identification of devices
Uzma Sanober
 
PPTX
Secure Data Transmission
bjp4642
 
PDF
Assembler4
Omar Sanchez
 
PPTX
Basics Of Embedded Systems
arlabstech
 
PDF
rs-232
Aniruddh Tyagi
 
PDF
rs-232
aniruddh Tyagi
 
PDF
rs-232
aniruddh Tyagi
 
PPT
UART
Naveen Kumar
 
PPTX
Plc (analog and special io)
Mohamed A Hakim
 
PPTX
Rfid interfacing & controlling with 8051
Akshay Dhole
 
14849441 rf-wireless (1)
Sphamandla Dlamini
 
Akash uid ppt3
Akash Verma
 
Rf module interfacing without microcontrollers
Tauseef khan
 
Rf based wireless_remote
Fortune Nwachukwu
 
23.pptx
Kishor Mhaske
 
Id 12-datasheet
Atul Uttam
 
RF ID_toll2
Vibhor Rampall
 
S7 200 cable
nguyenthanhduy99
 
Home appliances control using RF communication
Chittaranjan Baliarsingh
 
RFID PROJECTS ABSTRACT LIST-Rfid based access control and staff attendence ma...
ASHOKKUMAR RAMAR
 
identification of devices
Uzma Sanober
 
Secure Data Transmission
bjp4642
 
Assembler4
Omar Sanchez
 
Basics Of Embedded Systems
arlabstech
 
Plc (analog and special io)
Mohamed A Hakim
 
Rfid interfacing & controlling with 8051
Akshay Dhole
 

Recently uploaded (20)

PPTX
Python-Application-in-Drug-Design by R D Jawarkar.pptx
Rahul Jawarkar
 
PDF
Study Material and notes for Women Empowerment
ComputerScienceSACWC
 
PPTX
Introduction to pediatric nursing in 5th Sem..pptx
AneetaSharma15
 
PPTX
Care of patients with elImination deviation.pptx
AneetaSharma15
 
PPTX
Odoo 18 Sales_ Managing Quotation Validity
Celine George
 
PPTX
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Celine George
 
PDF
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
PDF
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 
PDF
Health-The-Ultimate-Treasure (1).pdf/8th class science curiosity /samyans edu...
Sandeep Swamy
 
PDF
Sunset Boulevard Student Revision Booklet
jpinnuck
 
PPT
Python Programming Unit II Control Statements.ppt
CUO VEERANAN VEERANAN
 
PPTX
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
PPTX
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
PDF
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
DOCX
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
PDF
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
AshifaRamadhani
 
DOCX
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
PPTX
TEF & EA Bsc Nursing 5th sem.....BBBpptx
AneetaSharma15
 
PPTX
Autodock-for-Beginners by Rahul D Jawarkar.pptx
Rahul Jawarkar
 
PDF
Virat Kohli- the Pride of Indian cricket
kushpar147
 
Python-Application-in-Drug-Design by R D Jawarkar.pptx
Rahul Jawarkar
 
Study Material and notes for Women Empowerment
ComputerScienceSACWC
 
Introduction to pediatric nursing in 5th Sem..pptx
AneetaSharma15
 
Care of patients with elImination deviation.pptx
AneetaSharma15
 
Odoo 18 Sales_ Managing Quotation Validity
Celine George
 
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Celine George
 
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 
Health-The-Ultimate-Treasure (1).pdf/8th class science curiosity /samyans edu...
Sandeep Swamy
 
Sunset Boulevard Student Revision Booklet
jpinnuck
 
Python Programming Unit II Control Statements.ppt
CUO VEERANAN VEERANAN
 
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
AshifaRamadhani
 
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
TEF & EA Bsc Nursing 5th sem.....BBBpptx
AneetaSharma15
 
Autodock-for-Beginners by Rahul D Jawarkar.pptx
Rahul Jawarkar
 
Virat Kohli- the Pride of Indian cricket
kushpar147
 

Rf module

  • 1. As explained earlier (refer RFID interfacing with 8051 & with AVR), an RFID module consists of an RFID Reader, a line converter (usually MAX232) and a COM port. The line converter of this module converts the TTL logic voltage of RFID Reader to RS232 logic. Therefore, to convert the voltage level from such an RFID module, another MAX232 is used to interface it with a microcontroller. One can also use an RFID Reader directly to interface with the controller, thus avoiding the need of voltage level converters. Here both the MAX232s have been eliminated from the circuit and RFID reader is directly connected with the PIC microcontroller. The following table explains the pin diagram of the RFID Reader module. 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
  • 2. 6 SEL High is RS232, Low is Weigand 7 RS232 TTL output data 8 D1 Weigand Data 1 9 D0 Weigand Data 0 Another part of the RFID system is RFID tag, which contains 12 bytes of unique data. As the tag comes in the range of the Reader Module, it gets activated and transmits this unique code. (For more detail on working of RFID system, refer the article on RFID) The objective here is to receive this 12 byte unique code and display on a 16x2 LCD using PIC18F4550. With the RFID interfacing, this article also explains the USART interrupt which is an internal interrupt. (For external interrupts, refer PIC Hardware interrupts) The internal interrupts, unlike hardware interrupts, are associated with internal peripherals of the controller. To use the USART interrupt, following registers have to be configured accordingly. 1. INTCON (Interrupt Control Register) Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 GIE/GIEH PEIE/GIEL TMR0IE INT0IE RBIE TMR0IF INT0IF RBIF PEIE/GIEL: This bit is used to enable/disable all the peripheral interrupts (Internal interrupts) of the controller. But GIE/GIEH bit must be set to high first. 1 = Enables all Peripheral Interrupts 0 = Disables all Peripheral Interrupts
  • 3. GIE/GIEH: This is Global Interrupt Enable bit. This bit is set to high to enable all interrupts of the PIC18F4550. 1 = Enables interrupts 0 = Disables all interrupts 2. PIR1 (Peripheral Interrupt Request 1) Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 SPPIF ADIF RCIF TXIF SSPIF CCP1IF TMR2IF TMR1IF TXIF: This is Transmission interrupt flag which is set to high when TXREG* is empty. RCIF: This is Reception interrupt flag which is set to low when reception is complete. *TXREG : EUSART Transmit Register (The data to be transmitted is stored in this register) 3. PIE1 (Peripheral Interrupt Enable 1) Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 SPPIE ADIE RCIE TXIE SSPIE CCP1IE TMR2IE TMR1IE TXIE: This bit is used to enable/disable the Transmission (Tx) interrupt. RCIE: This bit is used to enable/disable the Reception (Rx) interrupt. Refer PIC EUSART registers for more details. The connections of RFID reader module and LCD with the microcontroller are shown in the circuit diagram tab.
  • 4. Programming Steps: 1. Set the baud rate of PIC’s USART of to 9600 bps. 2. Set the SPEN and CREN bits to ‘1’ (RCSTA Register). 3. Set the GIE and PEIE to ‘1’ (INTCON Register). 4. Store the 12 byte data into an array when Reception Interrupt is generated. 5. Print the all stored data on the LCD. Refer displaying text on LCD using PIC. Image: Learn Analog System Design with Texas Instruments!
  • 5. The RF module, as the name suggests, operates at Radio Frequency. The corresponding frequency range varies between 30 kHz & 300 GHz. In this RF system, the digital data is represented as variations in the amplitude of carrier wave. This kind of modulation is known as Amplitude Shift Keying (ASK). Transmission through RF is better than IR (infrared) because of many reasons. Firstly, signals through RF can travel through larger distances making it suitable for long range applications. Also, while IR mostly operates in line-of-sight mode, RF signals can travel even when there is an obstruction between transmitter & receiver. Next, RF transmission is more strong and reliable than IR transmission. RF communication uses a specific frequency unlike IR signals which are affected by other IR emitting sources. This RF module comprises of an RF Transmitter and an RF Receiver. The transmitter/receiver (Tx/Rx) pair operates at a frequency of 434 MHz. An RF transmitter receives serial data and transmits it wirelessly through RF through its antenna connected at pin4. The transmission occurs at the rate of 1Kbps - 10Kbps.The transmitted data is received by an RF receiver operating at the same frequency as that of the transmitter. The RF module is often used alongwith a pair of encoder/decoder. The encoder is used for encoding parallel data for transmission feed while reception is decoded by a decoder. HT12E-HT12D, HT640-HT648, etc. are some commonly used encoder/decoder pair ICs.
  • 6. Pin Diagram: Pin Description: RF Transmitter Pin No Function Name 1 Ground (0V) Ground 2 Serial data input pin Data 3 Supply voltage; 5V Vcc 4 Antenna output pin ANT RF Receiver Pin No Function Name 1 Ground (0V) Ground 2 Serial data output pin Data 3 Linear output pin; not connected NC 4 Supply voltage; 5V Vcc
  • 7. 5 Supply voltage; 5V Vcc 6 Ground (0V) Ground 7 Ground (0V) Ground 8 Antenna input pin ANT