How would I make a code for a stop watch using the 89c52 or does anyone have any examples of one?
All I need is to program the 89c52 in assembly languageTook me about 5 seconds to do a search.
Hopefully you know how to program the 89c52. If not, you might want to start there.
I need help with the code to translate the digit to seven segment and to move the seven segment patternsDepends on what the code is running on, how many digits you want, how you wire the 7 segment displays and a whole bunch of things.
Unless you have 7 times the # of digits pins available, you’re going to need additional hardware to display the digits. And you have a choice of using, for example, shift registers or multiplexing. Both require their own code to display a digit.
Overall, you’re going to need code to extract individual digits from the time value.
Then you’re going to need code to translate that digit to a seven segment pattern.
Then you’re going to need code to move the seven segment pattern to the displays.
Then, depending on the hardware, you’re going to need code to actually display the digit.
Which part do you need help with?
A LOT. The code you showWhat should I add to this code to make the stop watch display on a 7 segment display
I like the suggestion of using BCD to 7-segment controllers.To get a 'stopwatch' display, you would need to - for each dig:
1) convert the binary R0 to a BCD value in 3 digits up to 2 5 5
2) decode each digit to a 7 segment value
3) output that value to a 7 segment display.
|Thread starter||Similar threads||Forum||Replies||Date|
|A||How to insert a Reset and Pause button in a stopwatch circuit using 4510BP and 4543 IC?!||Homework Help||58|
|F||clock with stopwatch using vhdl on spartan 3e?||General Electronics Chat||1|
|S||Stopwatch using AT89S52 URGENT HELP REQUIRED||Microcontrollers||1|
|S||Stopwatch using AT89S52 URGENT HELP REQUIRED||Homework Help||2|
|P||stopwatch using pic16f84a||Homework Help||18|
by Jake Hertz
by Jake Hertz
by Lianne Frith