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 / It’s the EXACT source code

It’s the EXACT source code

|

Projects › Projects › 8051 controlled digital lock keypad › It’s the EXACT source code

May 29, 2013 at 4:11 pm #9864
Joshua Swartwood
Participant

It’s the EXACT source code and schematic used in the project here: http://www.engineersgarage.com/microcontroller/8051projects/interface-keypad-AT89C51-circuit

 

I suppose I wasn’t clear enough in referencing that.

 

However, the problem was “mostly” solved and was found to be mainly a timing issue.

 

void delay(unsigned int msec) //Time delay function
{
int i,j ;
for(i=0;i<msec;i++)
for(j=0;j<1275;j++);
}

In that part of the code, I just changed the “1275” to “6375” and it slowed down the program enough to let it work.

We think our biggest issue is that we were also using a different brand of 8051 such as this one here: http://www.microdigitaled.com/Images/mde_8051.jpg the  DS89C430 brand and so there may of been some disparities between the code written for the Atmel and that one.  Hopefully this helps anyone else who may end up using a different brand of processor and has a similar issue.

 

It still has issues with working 100% properly, how ever it works well enough to do for a beginner project.

RSS Recent Posts

  • Smart Buoy project May 15, 2026
  • Need Guidance to reduce noise in 3-stage Transimpedance amplifier May 15, 2026
  • Wall Radiator Heating: Efficiency and Placement Questions May 15, 2026
  • Parasitic Draw Question May 15, 2026
  • Phone Charger 5v to 12v May 14, 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