Hello everyone,
I am using a PIC 16f877a for interfacing with an LCD. Typically, an LCD spends some time occasionally to deal with its own internal processing and during that time, trying to send any commands or data to the LCD will be futile cos the LCD is busy.
So before I send any commands or data to the LCD, I would like to check if it is busy or not. Could someone please tell me how to do that?
In my book here, it says I should check the D7 data bit of the LCD. And that if D7 = 0, then LCD is not busy but otherwise it is busy.
This is where the problem arises. When Im initializing the LCD, whichever port is used for the D0-D7 bits is set as output. So the LCD will not be able to pull the D7 bit high even if it is busy since D7 is configured for output. If that is the case, how is it possible to check to see if the LCD is busy or not.
I am aware of other solutions like creating a constant delay. But I would like to know if the same, can be accomplished using the D7 pin as it is mentioned in my book.
Thank you.