
unsigned char digit_value; // Numerical value of the digit, 0-9
unsigned char ascii_code;  // ASCII code for the character. '0'-'9'

:

ascii_code = '0' + digit_value;