Discussion in "8051 Discussion Forum" started by    madhuprasanna    Dec 5, 2007.
Wed Dec 05 2007, 01:29 pm
#1
hi everybody,
iam confusing in bcd to hex or ascii conversions.
actual problem is i want to display bcd output on 16X2 lcd display.
i have tried by say write(v+0x30);,but some garbage value is displayed.can anyone help me out .it's urgent.:)
thankx in advance..
[email protected]
Wed Dec 05 2007, 03:44 pm
#2
V should be of range (0 to 9) if you want to use write(v+0x30)
other wise if its a 2 digit number then first you need to separate them and then use write (v+0x30)

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Darrellciz
Thu Apr 18 2024, 11:07 am
Charlessber
Thu Apr 18 2024, 09:29 am
BartonSem
Thu Apr 18 2024, 04:56 am
DonaldKnown
Thu Apr 18 2024, 12:24 am
utaletxcyw
Wed Apr 17 2024, 10:21 am
Anthonyvab
Wed Apr 17 2024, 08:48 am
RobertCix
Wed Apr 17 2024, 06:46 am
Astorne
Tue Apr 16 2024, 08:52 pm