Reiniku
Newbie level 1
Hello! I'm currently learning the basics of microcontrollers and was given the task of creating a scoreboard to display on the LCD (so 4 digits) and have switches to increment and decrement each displayed digit in assembly. So something like:
0000
Switch 1 and 2, decrements and increments the first digit, 3 and 4 for the second... so on and so forth.
Hitting switch 2 from this point would show: 1000
Switch 4 woudl show: 1100
Etc.
I've figure out how to output to the LCD (thanks to the edsim51 examples) so that my program shows "0000" when run, but I'm not sure how to implement the rest of my code.
I'm not asking how to be spoon fed how to do it but more like I could use some guidance. Would it be possible to use the "switch banks" on the screen to do this? There ARE 8 of them. And do I have to use interrupts to increment and decrement the counters?
0000
Switch 1 and 2, decrements and increments the first digit, 3 and 4 for the second... so on and so forth.
Hitting switch 2 from this point would show: 1000
Switch 4 woudl show: 1100
Etc.
I've figure out how to output to the LCD (thanks to the edsim51 examples) so that my program shows "0000" when run, but I'm not sure how to implement the rest of my code.
I'm not asking how to be spoon fed how to do it but more like I could use some guidance. Would it be possible to use the "switch banks" on the screen to do this? There ARE 8 of them. And do I have to use interrupts to increment and decrement the counters?