I am using an LCD module with a PIC micro controller. Most everything is working the way I want it except checking the busy flag.
To be more specific, I can check the busy flag right after sending a command (or data) to the LCD module. I found plenty of code example on the web (including Nigel's) that do exactly that:
1- Send command to the LCD module.
2- Wait until Busy flag turns to zero
3- Do whatever else you have to do.
But, I was thinking: Why do I want to test the busy flag right after the command. I only need to know if the LCD module is busy before I send the next command.
In other words:
1- Send command to LCD
2- Do something useful while LCD is processing the command
3- If LCD is done with previous command, send the next command.
Unfortunately, when I check the busy flag BEFORE the next command, it never seems to be 0. I haven't found any example like that on the web - all examples test the flag immediately after sending the command.
Does anybody know why this could be happening? Is that a feature of LCD modules (Busy flag only available for a limited time?)
Any clue?
Thanks.
To be more specific, I can check the busy flag right after sending a command (or data) to the LCD module. I found plenty of code example on the web (including Nigel's) that do exactly that:
1- Send command to the LCD module.
2- Wait until Busy flag turns to zero
3- Do whatever else you have to do.
But, I was thinking: Why do I want to test the busy flag right after the command. I only need to know if the LCD module is busy before I send the next command.
In other words:
1- Send command to LCD
2- Do something useful while LCD is processing the command
3- If LCD is done with previous command, send the next command.
Unfortunately, when I check the busy flag BEFORE the next command, it never seems to be 0. I haven't found any example like that on the web - all examples test the flag immediately after sending the command.
Does anybody know why this could be happening? Is that a feature of LCD modules (Busy flag only available for a limited time?)
Any clue?
Thanks.