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 / Hi Raghavendra,Sorrry for the

Hi Raghavendra,Sorrry for the

|

Microcontroller › 8051 › RFID based toll system › Hi Raghavendra,Sorrry for the

November 18, 2012 at 6:26 pm #8759
AJISH ALFRED
Participant

Hi Raghavendra,

Sorrry for the delayed response. The trouble starts when you press a key right? There is no check for key debounce in that code. If you use keys with long bouncing time this code may crash. From your post I make out that could be the probelm, to confirm modify the code slightly as shown below and try again.

 

Inside the while (1) loop of the main() function

 

 

 

while(1)
{
row1=row2=row3=row4=0;
if(col1==0)
{ //*****add these lines**********//
delay_ms(30) //add a 30 millisecond delay and check the key again
if (col1==0)
keypad();
else;
}

 

RSS Recent Posts

  • Wideband matching an electrically short bowtie antenna; 50 ohm, 434 MHz June 15, 2025
  • Curved lines in PCB design June 15, 2025
  • using a RTC in SF basic June 15, 2025
  • PIC KIT 3 not able to program dsPIC June 15, 2025
  • Siemens large industrial PLC parts June 15, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 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