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 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 Recent Posts

  • RC Electronic Speed Control Capacitors February 17, 2026
  • Annex32 / Annex RDS For ESP Micros - A Quick and Dirty Example February 16, 2026
  • Convenient audio FFT module? February 16, 2026
  • CR2/CR123A Batteries In Projects February 16, 2026
  • Harman Kardon radio module BMW noise February 16, 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