| ??? 06/18/03 07:32 Read: times |
#48677 - Displaying 16 bit numbers in a LCD |
Hi All
I have a circuit comprising of an AT89c51, and a 16*1 LCD. From an external source, I am collecting data, which is a number of 16 / 24 bits. Considering a transfer of 8 bits at a time, I store the number in two or three registers depending on whether it is a 16 bit or 24 bit number. For example, a number 45,245 decimal, which is a sixteen bit number will be stored in two registers say R1 and R2. The question. ------------ While sending a number to the LCD from the accumulator, I can move in only a 8 bit number.Thus upto a number of 255 ( 8 bit), I can divide the number by 10, isolate the digits and send the same to the LCD, 255/10=25.5. Send digit 5. 25/10=2.5. Send digit 5. 2/10=0.2. Send digit 2. Check quotient is zero, stop division. Any suggestions / algorithms on how to display a number greater than 8 bits, like the number 45245, or 256 on the LCD. Regards Pramod |
| Topic | Author | Date |
| Displaying 16 bit numbers in a LCD | 01/01/70 00:00 | |
| RE: Displaying 16 bit numbers in a LCD | 01/01/70 00:00 | |
| RE: Displaying 16 bit numbers in a LCD | 01/01/70 00:00 | |
RE: Displaying 16 bit numbers in a LCD | 01/01/70 00:00 |



