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
You are here: Home / Topics / source code

source code

|

Microcontroller › 8051 › source code

  • This topic has 1 reply, 2 voices, and was last updated 11 years, 10 months ago by dagakshay.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • October 20, 2010 at 3:27 pm #446
    nitesh karangutkar
    Participant

     hey guys i required the source code for the ELECTONIC DICE using AT89C2051 !!!!!!

    i didnt get it from anywhere can any1 giv me ????????? pls help me!!!!!!!!!!!

    October 20, 2010 at 3:48 pm #5106
    dagakshay
    Participant

    i can tell you one logic for this,

     

    just make use of hardware interrupt,

    declare temp as global variable and keep on incrementing that in your main loop and make it one as it counts beyond six

     

    while(1)

    {

    temp= temp++;

    if(temp>6)   //since a dice has only six faces

         temp=1;

    }

     

    //and in ISR

     

    ISR(INT0_vect)

    {

    //use case and make your leds(or 7 segment if using) accodingly

    }

     

    apply that logic and code yourself for 8051

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • Circuit Problem August 14, 2022
  • Beam Break Sensor August 14, 2022
  • Drill speed controller fault August 14, 2022
  • uc3843 Buck-boost August 14, 2022
  • Right channel distortion on vintage fisher rs-2010 August 13, 2022

Stay Up To Date

Newsletter Signup
EngineersGarage

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