Sunday, April 14, 2013

How to Convert 16-bit Binary digits to BCD for 8051

This post is simply showing how to convert Binary 16-bit to five BCD digits.  The routine's importance come from that 8051 is a 8-bit microprocessor so it can't handle data in 16-bits directly. The routine has many uses such as with arithmetic calculator or frequency meter.

As usual I put a bit detailed flowchart aside with the assembly code which is also come with full describing comments. Download links are given at the bottom of the post.


BIN2BCDFLOWCHART
010203


Downloads


To download code and flowchart click here

No comments:

Post a Comment