SlideShare uma empresa Scribd logo
1 de 7
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

Mais conteúdo relacionado

Mais procurados

Rf receiver design case studies
Rf receiver design case studiesRf receiver design case studies
Rf receiver design case studies
Phani Kumar
 
Fundamentals of RF Systems
Fundamentals of RF SystemsFundamentals of RF Systems
Fundamentals of RF Systems
Yong Heui Cho
 
Wireless RF module
Wireless RF moduleWireless RF module
Wireless RF module
rapper13_32
 
Lecture 3 spread spectrum
Lecture 3 spread spectrum Lecture 3 spread spectrum
Lecture 3 spread spectrum
Josh Street
 
Lecture3 signal encoding_in_wireless
Lecture3  signal encoding_in_wirelessLecture3  signal encoding_in_wireless
Lecture3 signal encoding_in_wireless
Yahya Alzidi
 

Mais procurados (20)

Rf receiver design case studies
Rf receiver design case studiesRf receiver design case studies
Rf receiver design case studies
 
Fundamentals of RF Systems
Fundamentals of RF SystemsFundamentals of RF Systems
Fundamentals of RF Systems
 
Introduction to RF & Wireless - Part 1
Introduction to RF & Wireless - Part 1Introduction to RF & Wireless - Part 1
Introduction to RF & Wireless - Part 1
 
Introduction to RF & Wireless - Part 4
Introduction to RF & Wireless - Part 4Introduction to RF & Wireless - Part 4
Introduction to RF & Wireless - Part 4
 
General/Digital up conversion
General/Digital up conversionGeneral/Digital up conversion
General/Digital up conversion
 
Wireless RF module
Wireless RF moduleWireless RF module
Wireless RF module
 
Max2837 hackrf
Max2837 hackrfMax2837 hackrf
Max2837 hackrf
 
Rf basics
Rf basicsRf basics
Rf basics
 
KYL-200L wireless data transmission RF module for 2-3km
KYL-200L wireless data transmission RF module for 2-3km KYL-200L wireless data transmission RF module for 2-3km
KYL-200L wireless data transmission RF module for 2-3km
 
Very Low-Jitter Encoded Clocking for High Speed ADCs Using the ADF4002 PLL
Very Low-Jitter Encoded Clocking for High Speed ADCs Using the ADF4002 PLLVery Low-Jitter Encoded Clocking for High Speed ADCs Using the ADF4002 PLL
Very Low-Jitter Encoded Clocking for High Speed ADCs Using the ADF4002 PLL
 
Lecture 3 spread spectrum
Lecture 3 spread spectrum Lecture 3 spread spectrum
Lecture 3 spread spectrum
 
Multi band, multi mode digital rf receiver front end module for m-wimax
Multi band, multi mode digital rf receiver front end module for m-wimaxMulti band, multi mode digital rf receiver front end module for m-wimax
Multi band, multi mode digital rf receiver front end module for m-wimax
 
10Gb/s DWDM XFP Transceiver Hot Pluggable, Duplex LC, +3.3V & +5V, 100GHz ITU...
10Gb/s DWDM XFP Transceiver Hot Pluggable, Duplex LC, +3.3V & +5V, 100GHz ITU...10Gb/s DWDM XFP Transceiver Hot Pluggable, Duplex LC, +3.3V & +5V, 100GHz ITU...
10Gb/s DWDM XFP Transceiver Hot Pluggable, Duplex LC, +3.3V & +5V, 100GHz ITU...
 
GFSK DEMODULATOR
GFSK DEMODULATORGFSK DEMODULATOR
GFSK DEMODULATOR
 
Basics of RF
Basics of RFBasics of RF
Basics of RF
 
Lecture3 signal encoding_in_wireless
Lecture3  signal encoding_in_wirelessLecture3  signal encoding_in_wireless
Lecture3 signal encoding_in_wireless
 
RadioVerse
RadioVerseRadioVerse
RadioVerse
 
Multiband Transceivers - [Chapter 5] Software-Defined Radios
Multiband Transceivers - [Chapter 5]  Software-Defined RadiosMultiband Transceivers - [Chapter 5]  Software-Defined Radios
Multiband Transceivers - [Chapter 5] Software-Defined Radios
 
RF Matching Guidelines for WIFI
RF Matching Guidelines for WIFIRF Matching Guidelines for WIFI
RF Matching Guidelines for WIFI
 
RF Power Management Attach Training Module
RF Power Management Attach Training ModuleRF Power Management Attach Training Module
RF Power Management Attach Training Module
 

Destaque

愛台東之語言與人生報告=柯佩妤
愛台東之語言與人生報告=柯佩妤愛台東之語言與人生報告=柯佩妤
愛台東之語言與人生報告=柯佩妤
瑞信 韓
 

Destaque (10)

Introduction to RF & Wireless - Part 2
Introduction to RF & Wireless - Part 2Introduction to RF & Wireless - Part 2
Introduction to RF & Wireless - Part 2
 
愛台東之語言與人生報告=柯佩妤
愛台東之語言與人生報告=柯佩妤愛台東之語言與人生報告=柯佩妤
愛台東之語言與人生報告=柯佩妤
 
Quantum error correction
Quantum error correctionQuantum error correction
Quantum error correction
 
RF Module Design - [Chapter 4] Transceiver Architecture
RF Module Design - [Chapter 4] Transceiver ArchitectureRF Module Design - [Chapter 4] Transceiver Architecture
RF Module Design - [Chapter 4] Transceiver Architecture
 
Rf robot
Rf robotRf robot
Rf robot
 
RF Module Design - [Chapter 6] Power Amplifier
RF Module Design - [Chapter 6]  Power AmplifierRF Module Design - [Chapter 6]  Power Amplifier
RF Module Design - [Chapter 6] Power Amplifier
 
Fm transmitter and receivers
Fm transmitter and receiversFm transmitter and receivers
Fm transmitter and receivers
 
RF Module Design - [Chapter 1] From Basics to RF Transceivers
RF Module Design - [Chapter 1] From Basics to RF TransceiversRF Module Design - [Chapter 1] From Basics to RF Transceivers
RF Module Design - [Chapter 1] From Basics to RF Transceivers
 
A report on Rf controlled car
A report on Rf controlled car A report on Rf controlled car
A report on Rf controlled car
 
Understanding RF Fundamentals and the Radio Design of Wireless Networks
Understanding RF Fundamentals and the Radio Design of Wireless NetworksUnderstanding RF Fundamentals and the Radio Design of Wireless Networks
Understanding RF Fundamentals and the Radio Design of Wireless Networks
 

Semelhante a Rf module

Ppt rf based home automation system 1
Ppt rf based home automation system 1Ppt rf based home automation system 1
Ppt rf based home automation system 1
Ankit Gosain
 
Electrónica: Receptor DTMF integrado MT8870D/MT8870D-1 (Datasheet)
Electrónica: Receptor DTMF integrado MT8870D/MT8870D-1 (Datasheet)Electrónica: Receptor DTMF integrado MT8870D/MT8870D-1 (Datasheet)
Electrónica: Receptor DTMF integrado MT8870D/MT8870D-1 (Datasheet)
SANTIAGO PABLO ALBERTO
 

Semelhante a Rf module (20)

14849441 rf-wireless (1)
14849441 rf-wireless (1)14849441 rf-wireless (1)
14849441 rf-wireless (1)
 
TV Remote Operated Domestic Appliances Control
TV Remote Operated Domestic Appliances ControlTV Remote Operated Domestic Appliances Control
TV Remote Operated Domestic Appliances Control
 
2.4G Radio Transceiver for IEEE802.15.4 and ZigBee Applications
2.4G Radio Transceiver for IEEE802.15.4 and ZigBee Applications2.4G Radio Transceiver for IEEE802.15.4 and ZigBee Applications
2.4G Radio Transceiver for IEEE802.15.4 and ZigBee Applications
 
Rf controlled pick up and drop robot
Rf controlled pick up and drop robotRf controlled pick up and drop robot
Rf controlled pick up and drop robot
 
Rf module interfacing without microcontrollers
Rf module interfacing without microcontrollersRf module interfacing without microcontrollers
Rf module interfacing without microcontrollers
 
RF ID_toll2
RF ID_toll2RF ID_toll2
RF ID_toll2
 
Ppt rf based home automation system 1
Ppt rf based home automation system 1Ppt rf based home automation system 1
Ppt rf based home automation system 1
 
Introduction to PIC.pptx
Introduction to PIC.pptxIntroduction to PIC.pptx
Introduction to PIC.pptx
 
Bluetooth based home appliances control
Bluetooth based home appliances controlBluetooth based home appliances control
Bluetooth based home appliances control
 
RF Encoder / Decoder Chipset
RF Encoder / Decoder ChipsetRF Encoder / Decoder Chipset
RF Encoder / Decoder Chipset
 
ACCELEROMETER BASED GESTURE ROBO CAR
ACCELEROMETER BASED GESTURE ROBO CARACCELEROMETER BASED GESTURE ROBO CAR
ACCELEROMETER BASED GESTURE ROBO CAR
 
Pic bluetooth
Pic bluetoothPic bluetooth
Pic bluetooth
 
Presentation On: "Micro-controller 8051 & Embedded System"
Presentation On: "Micro-controller 8051 & Embedded System"Presentation On: "Micro-controller 8051 & Embedded System"
Presentation On: "Micro-controller 8051 & Embedded System"
 
Metal Detector Robotic Vehicle
Metal Detector Robotic VehicleMetal Detector Robotic Vehicle
Metal Detector Robotic Vehicle
 
UART
UARTUART
UART
 
Live B tech Projects & Industrial Training @Technogroovy
Live B tech Projects & Industrial Training @Technogroovy Live B tech Projects & Industrial Training @Technogroovy
Live B tech Projects & Industrial Training @Technogroovy
 
NT1065 LE DS v2.04
NT1065 LE DS v2.04NT1065 LE DS v2.04
NT1065 LE DS v2.04
 
Wireless Microcontroller (IEEE802.15.4 and ZigBee): JN5139
Wireless Microcontroller  (IEEE802.15.4 and ZigBee): JN5139Wireless Microcontroller  (IEEE802.15.4 and ZigBee): JN5139
Wireless Microcontroller (IEEE802.15.4 and ZigBee): JN5139
 
At89s51
At89s51At89s51
At89s51
 
Electrónica: Receptor DTMF integrado MT8870D/MT8870D-1 (Datasheet)
Electrónica: Receptor DTMF integrado MT8870D/MT8870D-1 (Datasheet)Electrónica: Receptor DTMF integrado MT8870D/MT8870D-1 (Datasheet)
Electrónica: Receptor DTMF integrado MT8870D/MT8870D-1 (Datasheet)
 

Último

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 

Último (20)

Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 

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