EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Replies / this might help

this might help

|

Microcontroller › 8051 › 8051 PIR RFID BASED PROGRAM ERROR › this might help

September 17, 2016 at 6:08 am #14139
GANEEV SINGH
Participant

Hi Devjeet

I dont know if this happens only wiht 8051s but yeah the number that is written on the RFID card is not what you'll see on LCD after processing.First try out reading the card value using the code written below, also its better to read 14 bytes from RFID module becuase these 14 byes include start byte, stop byte and 12 data bytes. here's the code:

for(i=0;i<15;i++)   // 15 works fine here
{
j=0;
while(RI==0)
{
if(j>=1000)
goto timeout;
j++;
}
c=SBUF;
RI=0;
}
timeout:
c[12]='';   //this ensures that only 12 byte data is stored in c[]
 
also after this you can print this c[] over the LCD to get RFID card's comparable value. Here you go:
 
i=0;
while(c!='')
{
lcdData(c);
i++;
}
 
Now note down this value somewhere, this will help in recognizing the card in future while working out through your code.
Replace "F0200CE7E8D3" value that you have written in your code with the new one.
 
Hope this helps. 
 
Good luck

RSS Recent Posts

  • analog logic of shmidt trigger bjt circuit February 15, 2026
  • Convenient audio FFT module? February 15, 2026
  • CR2/CR123A Batteries In Projects February 15, 2026
  • Harman Kardon radio module BMW noise February 15, 2026
  • RC Electronic Speed Control Capacitors February 15, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise