hi everyone,
I am receiving 8 bits and storing it in a byte using shift right or shift left operation. Whatever I receive is actually a BCD data, how do I convert it to an decimal integer.
for example
I receive BCD 01010011 and store it in a byte.
How do I convert it to decimal integer
Thanks for any help
sk
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Mon Mar 14, 2005 5:05 pm
Use the forum's search engine to look for this: bcd2bin
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum