Microcontroller firmware usuallydeals with hexadecimal code. Yousometimes need to display the contentof registers, which requires a hexadecimal-to-BCD (binary-coded-decimal)-code conversion. The ...
The conversion of a decimal number to its base 8 equivalent is started by the repeated division method. Divide the base 10 number by 8 and extract the remainders. The first remainder will be the LSD, ...