The HEX equivalent of ASCII '0'(zero) is 30H.Thus to convert a packed BCD to ASCII we need to add 30H to the unpacked BCD
Packed BCD
34H
0011 0100
------------------------
Unpacked BCD
03H & 04H
0000 0011 0000 0100
---------------------------
ASCII
33H & 34 H
0011 0011 0011 0100
3 comments:
Hi i am amarnath..i need to convert BCD Data to ASCII value..but in BCD how A,B,C,D,E,F is converted to ASCII value please hoe to convert it?
my email id is amarnathdeena@gmail.com
hi bro thanks for the beautiful subject but I need to make a report about
1- how to convert ASCII code to BCD?.
2-Why we have to know about ASCII and BCD since we can represent data with Hex or Binary representations?.
I Need 3 Pages Can You Help Me ?
If You Have A Good Source Please Give It To ME Thank You Very Much
This is My E-mail: rasim.beho@gmail.com
reply to amarnath
BCD code contains digits<10
so A,B,C,D,E,F these values not occur in BCD
BCD equivalent of A is:
0001 0000
i think now you have some good idea
waseem abbas
engr.waseemabbas@yahoo.com
Post a Comment