Hi,
The ADC that i made increment the binary value by 1 bit for every degree (i.e. 0degree =00000000B ... 1degree= 00000001B etc.). Now i want to display the Temperature on an LCD which means that i have to convert the digital value from the ADC (which is set to 7 bit) to ASCII. To do so, i am adding 48 decimal to the binary value.
The problem is that this method is only working fine for a single character (i.e. from 1 to 9). When the temperature gets higher (from 10 onwards), the LCD will display other characters instead of numbers. I know that this is caused since the ASCII table does not represent more that one character with 8 bits.
Is there a way that the values from the ADC which are above 9 be converted to ASCII ??
Thanks in advance,
Adrian
The ADC that i made increment the binary value by 1 bit for every degree (i.e. 0degree =00000000B ... 1degree= 00000001B etc.). Now i want to display the Temperature on an LCD which means that i have to convert the digital value from the ADC (which is set to 7 bit) to ASCII. To do so, i am adding 48 decimal to the binary value.
The problem is that this method is only working fine for a single character (i.e. from 1 to 9). When the temperature gets higher (from 10 onwards), the LCD will display other characters instead of numbers. I know that this is caused since the ASCII table does not represent more that one character with 8 bits.
Is there a way that the values from the ADC which are above 9 be converted to ASCII ??
Thanks in advance,
Adrian