Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LCD routine Lockup

Status
Not open for further replies.

thomasn101

Electrical
Mar 4, 2003
7
0
0
CA
Hi everyone,

My LCD routine checks the busy flag of the LCD and make sure the LCD is not busy before writing new data to it. Therefore, if there is something wrong with the LCD module, my system hangs because it keeps checking and waiting for the LCD to be ready. Is there a way around this? Thank you for your help!

Regards,
Thomas
 
Replies continue below

Recommended for you

Can you send an except of your code where it hangs?

If your code is written in C and the compiler is optimizing, then I suspect you forgot to put your pointer as volatile.

Intead of declaring your pointer as

int *pointer;

Use

volatile int *pointer;

This will tell the compiler to read the content pointed by the pointer everytime although the execution code is not modifying it.

TiL
 
Status
Not open for further replies.
Back
Top