Displaying binary on LCD

binarycharacter-lcdlcd

Hi I am doing a home project to make a simple calculator. I plan on using a encoder for the number and arithmetic inputs and I want to display it on an LCD. I plan on having a 16:4 encoder where 0 to 9 would be my numbers and 10 to 14 would be +, -, *, /, and =, respectively, The problem is I am unsure of how to get the LCD to take this binary numbers and display the corresponding character. I have been trying to google binary to ASCii converter/decoder and search it on texas instruments but to no avail. Is there a specific why to do this? Thanks

Best Answer

ASCII "0" is hex 0x30, or decimal 48 - just OR your encoder output with 0x30 to get the ASCII digit.

Related Topic