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

Robertgurse
Wed Apr 24 2024, 02:43 pm
Richardedils
Wed Apr 24 2024, 04:07 am
ChrisLub
Tue Apr 23 2024, 05:21 pm
Davidbab
Tue Apr 23 2024, 10:41 am
Richardrit
Tue Apr 23 2024, 09:54 am
HenryLaf
Mon Apr 22 2024, 03:50 pm
bleradrar
Mon Apr 22 2024, 06:38 am
ppu-pro_ka
Sun Apr 21 2024, 07:39 pm