Clearing the LCD Screen

17 views
Skip to first unread message

oxnard linux junkie

unread,
Jun 17, 2009, 2:30:19 AM6/17/09
to GCC-HCS12
When I run a program which uses the on board LCD display, the
characters are displayed after I press the reset button the board. Is
there a way to clear this screen other than turning the power off and
then back on?

Navid

unread,
Jun 17, 2009, 8:07:59 PM6/17/09
to GCC-HCS12
Hi,

Dragon12 board has a few revisions. I think the LCD module behaves the
same in all. Basically, since you are communicating with a separate
LCD controller, once you detach and exit from LCD, you have to tell
the controller what you want it to do. In your case, a simple clearing
the screen buffer will do the job. A simple way that comes to my mind
is to write only space character to the LCD lines.

If you want a better and more agile solution, we have to see which
revision of the board you have, and have a look at the LCD
documentation to see what methods are exposed to clear the LCD lines.

And as you mentioned, if you forget to reset the setting, you will see
the same old display until you reset the board.

Hope this helps.

oxnard linux junkie

unread,
Jun 19, 2009, 8:53:55 PM6/19/09
to GCC-HCS12
That helps, thanks.

FYI, I have REV. C.
Reply all
Reply to author
Forward
0 new messages