free 8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

Rickey's World :: Discussion Forums :: Discuss and Learn :: AVR Discussion Forum
 
<< Previous thread | Next thread >>
need helo for display hex values as decimal
Moderators: Ajay Bhargav, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph, ExperimenterUK, DavesGarage
Author Post
compaq
Mon Jan 18 2010, 09:05AM
 User Offline
Registered Member #19841
Joined: Wed Jul 01 2009, 02:17AM

Posts: 79
Thanked 0 times in 0 posts
hi i want to display the hex value to lcd after converting it to decimal
like i have 7B i wana convert it into decimal and display it on lcd please help bt every time i comvert it it becomes a hex value please help

i am doing like 7*16 + 11 bt it dosent get converted well it becomes hex value again


Back to top

Gurpreet312
Mon Jan 18 2010, 09:54AM
 User Offline
Registered Member #6533
Joined: Sun Mar 09 2008, 12:07PM

Posts: 77
Thanked 15 times in 15 posts

because LCDs are working as per ascii partten


--
Gurpreet Singh
www.embeddedcraft.org
Back to top

srinivas444
Tue Jan 19 2010, 02:22AM
 User Offline
Registered Member #14493
Joined: Tue Jan 27 2009, 01:05AM

Posts: 2
Thanked 0 times in 0 posts
equivalent of 7b is 123...
to display this on lcd....
first u need to convert into BCD.....

it needs some code....

do well.....

intelligent embedded
Back to top

Ajay Bhargav
Fri Jan 22 2010, 02:48AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 7567
Thanked 1330 times in 1254 posts
you can use sprintf for this.

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top

 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems