LCD interfacing? problem with displaing larger numbers

Status
Not open for further replies.

yviswanathbe

Full Member level 4
Joined
Jun 14, 2007
Messages
221
Helped
10
Reputation
20
Reaction score
6
Trophy points
1,298
Activity points
3,066
LCD interfacing?

Hi,
I am working on LCD interfacing with C8051F005 Cygnal Microcontroller.
I am facing problem for displaing larger number(ex:4096,3996) in the LCD.

I have no problem with printing Strings.For strings i have written a function by checking the length of the string and null character.

How to send the a larger value at a time to the LCD.For this numbers(Data type is unsigned long int) also we need to write a function?

Please send me some sample codes?

Thanks,
Viswanath.
 

Re: LCD interfacing?

If you are sending these as string then it will print, if you are assigning it to any variable it will not take as the registers are 8 bit wide and the variable used is more than that. you may have to store it in terms of 8 bit in consecutive registers or location and send data to controller for printing.
 

Re: LCD interfacing?

Hi,
I have used a simple loop for breaking the number into individual pieces and then i have sent to the LCD with some delay.

Its worked fine.

Regards,
Viswanath.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…