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.
https://www.engineersgarage.com/microcontroller/8051projects/stopwatch-AT89C51-circuit
Hopefully you know how to program the 89c52. If not, you might want to start there.
Perhaps this link http://stopwatchminiproject.blogspot.com/ may help youHow would I make a code for a stop watch using the 89c52 or does anyone have any examples of one?
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.
by Jake Hertz
by Jake Hertz
by Jake Hertz