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

RodneyKnorb
Thu Apr 25 2024, 07:08 pm
Williamjef
Thu Apr 25 2024, 02:08 pm
SamuelSmise
Thu Apr 25 2024, 09:56 am
DustinErele
Thu Apr 25 2024, 08:44 am
ztaletpzca
Wed Apr 24 2024, 11:19 pm
IrardlPex
Wed Apr 24 2024, 08:42 pm
Charlestehed
Wed Apr 24 2024, 05:20 pm
Robertgurse
Wed Apr 24 2024, 02:43 pm