As I said before, you don't have to convert bin to decimal. Just decrement the file and incr the table pointer file.
You can use one routine that shifts the file 4 places right, (stores the result) masks to leave the 4 lowest bits, decrements the file and increments a table pointer, call the table and output the value.
Call a delay and clear the display.
Call the routine again and increment to the next display.
Repeat 3 times and you have a scan routine as well as a conversion routine.
You can use one routine that shifts the file 4 places right, (stores the result) masks to leave the 4 lowest bits, decrements the file and increments a table pointer, call the table and output the value.
Call a delay and clear the display.
Call the routine again and increment to the next display.
Repeat 3 times and you have a scan routine as well as a conversion routine.
Last edited: