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

AntoniaRoons
Fri Apr 19 2024, 09:59 pm
carpinteyrowrl
Fri Apr 19 2024, 02:51 pm
DonaldJAX
Fri Apr 19 2024, 01:08 pm
Lewisuhakeply
Thu Apr 18 2024, 06:00 pm
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