microlab
Full Member level 5
hex to ascii
hai all
i am doing a project using 89c51,adc0804,lm35d and 16x1 lcd
now my problem is that how can i convert the hexadecimal value from the adc to ascii code so that i can display that on the lcd.it reads from 0'c to 150'c.i made te connection in such a way that i will get the exat value,ie.for 30'c i will get the output as 00011110 (1Eh) = the hexa dicimal code for 30.so if i can convert this directly to ascii,i can display that on the lcd.pls explain me how to convert the hex value to ascii.if possible pls give me a program in assembly so that i can enderstand it better.
ml
hai all
i am doing a project using 89c51,adc0804,lm35d and 16x1 lcd
now my problem is that how can i convert the hexadecimal value from the adc to ascii code so that i can display that on the lcd.it reads from 0'c to 150'c.i made te connection in such a way that i will get the exat value,ie.for 30'c i will get the output as 00011110 (1Eh) = the hexa dicimal code for 30.so if i can convert this directly to ascii,i can display that on the lcd.pls explain me how to convert the hex value to ascii.if possible pls give me a program in assembly so that i can enderstand it better.
ml