Passing an Integer Value to the LCD Screen

Started by chaotic_feeling July 8, 2004
Hi Guys,
I currently have the CML12DP256 Board and I'm trying to pass
an Integer variable data to my LCD Screen. The problem I'm having is
the function that I edited to do this for me is pumping out garbage
values on the LCD screen not that Data I need. If you have any
thoughts or suggestions please share them.

Thanks Guys Bye



It is probably expecting ASCII data. I am not familiar with the CML12DP256,
but I would assume it has something like a 2x16 LCD display on it? If that
is the case, for every ten's place digit, add ASCII '0' to the value before
sending it to the display.
Ie. lastChar = (val % 10) + '0'; //Find the 1s digit.
Then
lcdChar(lastChar); //Print the 1s digit at the current cursor
location.
Or whatever your send routine is named..
I hope this helps.

-Mark Wyman
_____

From: chaotic_feeling [mailto:]
Sent: Thursday, July 08, 2004 1:21 PM
To:
Subject: [68HC12] Passing an Integer Value to the LCD Screen
Hi Guys,
I currently have the CML12DP256 Board and I'm trying to pass
an Integer variable data to my LCD Screen. The problem I'm having is
the function that I edited to do this for me is pumping out garbage
values on the LCD screen not that Data I need. If you have any
thoughts or suggestions please share them.

Thanks Guys Bye <http://us.ard.yahoo.com/SIG9p5ppsq/M)5196.4901138.6071305.3001176/D=gr
oups/S06554205:HM/EXP89393657/A!28215/R=0/SIGse96mf6/*http:/compa
nion.yahoo.com> click here
<http://us.adserver.yahoo.com/l?M)5196.4901138.6071305.3001176/D=groups/S=
:HM/A!28215/randA0477933
_____

> Terms of Service.


There is little anyone can do to help without code. Try isolating the
problem to as few lines as possible, then post them. You may find that
you discover the problem in the course of trying to isolate it.

That said, are you remembering to convert the integer into a string
before sending it to the LCD?

Stephen

--
Stephen Trier
Technical Development Lab
Cleveland FES Center



Thanks for the reply Stephen I was able to figure it out. I had to look what was working and whaty was not and I found an alternate method to do it.

Thanks Though

Stephen Trier <> wrote:
There is little anyone can do to help without code. Try isolating the
problem to as few lines as possible, then post them. You may find that
you discover the problem in the course of trying to isolate it.

That said, are you remembering to convert the integer into a string
before sending it to the LCD?

Stephen

--
Stephen Trier
Technical Development Lab
Cleveland FES Center Yahoo! Groups Links

---------------------------------