Hello, I'm new to the 8051 and I am hoping someone has had to solve a similar problem to this before, although this is not an 8051 specific problem. Can someone give me assistance on how to convert a 12-digit binary coded decimal value to hexadecimal on the 8051? The BCD value is packed into 6 consecutive bytes. Any help would be appreciated. Regards, Stephen McSpadden.
The best way is the direct one: BINARY_VALUE = FIRST_DIGIT * BINARY_HUNDRED_THOUSAND + SECOND_DIGIT * BINARY_TEN_THOUSAND + THIRD_DIGIT * BINARY_THOUSAND + ... Regards, M.