This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Converting a binary coded decimal value to hexadecimal

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.