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 / Topics / state machine code

state machine code

|

Microcontroller › 8051 › state machine code

  • This topic has 2 replies, 2 voices, and was last updated 10 years, 2 months ago by praneeth.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • December 18, 2015 at 10:05 am #4165
    praneeth
    Participant

    i want state machine code in place of debounce delay when we switch button

    pls any body help me..its urgent

    December 18, 2015 at 12:55 pm #13588
    Vara Ashishkumar
    Participant

    Hey praneeth,

    Describe your stuff in brief. You want to debouncing of switch button using state code. You can do easily by use of combination of interrupt service routine and switch case.

    Note: Please define your state read variable as volatile.

    December 18, 2015 at 1:04 pm #13589
    praneeth
    Participant

    i want to set the time in digital clock program.firstly if i press one switch it flag will be incremented and when flag==1 hours should be set by dec and incr with the help of switches…like wise othe for min also…can u provide code for that 

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

RSS Recent Posts

  • Harman Kardon radio module BMW noise February 16, 2026
  • Arduino standalone minimal February 16, 2026
  • analog logic of shmidt trigger bjt circuit February 16, 2026
  • CR2/CR123A Batteries In Projects February 16, 2026
  • Math problem 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