Some times it is desired to convert a 2-bit hex code into decimal ASCII code.
For example, MCU processes hex number. If the user wishes to display the value code of a counter in a MCU, a conversion to decimal ASCII code will be required. Other wise, when the counter goes up to "11", the actual value in the MCU would be 0x0A, and the corresponding ASCII characters that will be displayed are "0 :"
The following code converts a hex value to decimal…
Continue