Systems requiring arithmetic operationson data usually performthose operations in binary form. As aresult, they must convert the data to BCDform for display purposes. Address-selectioninformation from ...
A program entitled HEXBCD is an 8051 µC subroutine that converts a 16-bit HEX number in internal RAM locations 33 and 34H into its BCD equivalent (Listing 1). The ...