| ??? 04/05/00 18:20 Read: times |
#2107 - RE: Help |
Oscar,
To show your hex ADC value on LCD, you have to convert this HEX value to DECIMAL first. You can use the DAA (Decimal Adjust Accu) instruction for that. You can also convert it manually, by decrementing your hex value and incrementing decimal register with the DAA instruction and the carry instructions. Then you have to convert your decimal value into ascii. You can do this by separating the digits, digit by digit and OR the decimal LSB values with &H30 en sending them to the LCD. (The numbers 0 to 9 have the ascii codes &h30 to &h39) Its usefull to create two subroutines for this two conversions, or create one big subroutine. I have a .hex file with such a subroutine, if you want it. Filip |
| Topic | Author | Date |
| Help | 01/01/70 00:00 | |
| RE: Help | 01/01/70 00:00 | |
RE: Help | 01/01/70 00:00 |



