Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Problem clearing the LCD in "state machine" type o

Status
Not open for further replies.

razvanel

Junior Member level 2
Junior Member level 2
Joined
Mar 18, 2009
Messages
23
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,443
clearing the LCD

hey guys,

i have a small problem clearing the LCD in a "state machine" type of program. the microcontroller i am using is the pic24f and i am programming in C.

i want to display the state of the machine on the lcd, and when it changes i want to clear the LCD and display the new state, and so on..

how would i go about this?

i am using this lcd.c file made by microchip. that has functions like

LCDInit()
LCDHome()
LCDL1Home()
LCDL2Home()
LCDClear()
LCDPut()
 

clearing the LCD

Don't know about this particular driver, but I have found in a lot of cases you need to send a string of non printable characters, usually spaces. So if it is a 16 digit display, home the cursor and then print 16 spaces, followed by home the cursor again, ready to write new data. May not of course work in your case, but worth a try.
 

clearing the LCD

ok i will give this a try. any other ideas?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top