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 / code for 7-segment display as a stot watch by Divya Bharat

code for 7-segment display as a stot watch by Divya Bharat

|

Miscellaneous › Others › code for 7-segment display as a stot watch by Divya Bharat

  • This topic has 1 reply, 2 voices, and was last updated 13 years, 7 months ago by umar farrok.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • July 11, 2011 at 5:21 am #1062
    query
    Participant

    will u plz mail me the code of using 7-segmant display as a stot watch for counting seconds , minutes as well as hours….. using phillips P89V51RD2 … I REQUIRE IT INSTANTLY … PLZ MAIL ME as soon as possible at my gmail id i.e [email protected] or at yahoo id i.e [email protected]

    February 11, 2013 at 11:45 am #9116
    umar farrok
    Participant

     

    Program to interface single seven segment

    #include<reg51.h>

    delay_ms(int time) // Time delay function
    {
    int i,j;
    for(i=0;i<time;i++)
    for(j=0;j<1275;j++);
    }

    void main()
    {
    char num[]={0x40,0xF9,0x24,0x30,0x19,0x12,0x02,0xF8,0x00,0x10}; // Hex values corresponding to digits 0 to 9
    int c;
    while(1)
    {
    for(c=0;c<10;c++)
    {
    P2=num[c];
    delay_ms(200);
    }
    }
    }

     

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

RSS feed: Recent Posts Recent Posts

  • Will this solenoid actuator work as intended? September 13, 2026
  • NE602/SA602 Bias and Buffer circuit September 13, 2026
  • Rotary encoder with push function September 12, 2026
  • How much does generator frequency stability matter for sensitive electrical equipment? September 12, 2026
  • differential line loss question September 11, 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