The 8051 Microcontroller and Embedded

(lily) #1
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

Free download pdf