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 programs displays key

this programs displays key

|

Microcontroller › 8051 › why switch case is required? › this programs displays key

December 24, 2014 at 10:01 am #12449
Ashutosh Bhatt
Participant

this programs displays key count on single 7-segment display

so when key is pressed – interrupt is generated – counter increments (c++)

the counter c takes values from 0 to 9 only

so in switch case all values from 0 to 9 are given.

the HEX value given to PORT0 coresponds to 7-segment code that will display that digit on 7-segment

RSS feed: Recent Posts Recent Posts

  • PWM Dimming for 24V LED Strips: What Should I Consider? October 14, 2026
  • Portable charger for my mate's new leg October 14, 2026
  • Funny Images Thread! October 14, 2026
  • Semi-automatic battery handler October 14, 2026
  • Looking for help with wiring PJ Bass (Series/Parallel blend bypass) October 14, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 Arrowfly 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 Arrowfly
Privacy Policy | Advertising

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