Department of Computer Scien
ce and Information Engineering
National Cheng Kung University, TAIWAN
HANEL
BCD AND ASCII APPLICATION PROGRAMSBinary (Hex) to ASCII Conversion
Many ADC (analog-to-digital converter) chips provide output data in binary (hex)
¾To display the data on an LCD or PC screen, we need to convert it to ASCII
Convert 8-bit binary (hex) data to decimal digits, 000
-^255
Convert the decimal digits to ASCII digits, 30H
- 39H