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 / problem with the counter up down

problem with the counter up down

|

Microcontroller › 8051 › problem with the counter up down

  • This topic has 4 replies, 2 voices, and was last updated 12 years, 8 months ago by isaac ang.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • May 28, 2013 at 2:40 pm #2450
    isaac ang
    Participant

    i am doing a counter up down following the link

     

    http://www.engineersgarage.com/microcontroller/8051projects/up-down-counter-using-AT89C51-circuit

    but it doesn’t work and the pin21 to27 seems to be outputs

    is it because i missed out on something or is there anything i have to change with the coding

    ps: i am still new to 8051 , i will be thankful if someone can help me out

     

    thanks

    May 28, 2013 at 9:24 pm #9852
    Sagar
    Participant

    are you using the same schematic as mentioned there ?

    the method implemented there is called as persistence of vision. so your project might be working and 7 segment leds are glowing with very less intensity. (although transistors are used there to increase source current this shouldn’t be happening). try using red gelatin or glass type material to overlay 7 segment.

    May 30, 2013 at 3:01 am #9865
    isaac ang
    Participant

    i change the display and now all four is displaying 9999

    but when i try to press the up or down switch it won’t respond 

    after a short time the display just goes off by itself

     

    btw i used keil to create the hex file

    June 4, 2013 at 12:39 pm #9888
    isaac ang
    Participant

    sry i found out i did the hex file wrongly

    but after i fixed the hex file

    the display still doesn’t display anything

    it seem there is a warning :

    ”   *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS

                SEGMENT: ?PR?DELAY?PROGRAM_TO_MAKE_A_UP_DOWN_COUNTER       “

    i tried adding “interrupt 0” behind “void delay()”

    and the warning was solved

    but when i burn it into my ic the burner’s buzzer triggers’ 

    it couldn’t work when i put it into the circuit 

     

    can anyone tell what is wrong and what am i suppose to do

    June 5, 2013 at 10:16 am #9894
    isaac ang
    Participant

    the counter somehow manage to work

    but the digit jumps too far, for example from 1 to 4

    can anyone tell me how to stabilize it

    and let it go by the count 0-1-2-3-4…

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

RSS Recent Posts

  • FM Radio circuits February 7, 2026
  • wall transformer polarity February 7, 2026
  • To buy or DIY? February 7, 2026
  • engineering analysis of shmidth trigger without simulation February 6, 2026
  • ANOTHER OLD PROJECT REDO February 6, 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