hi,
Look at this image.
When the PIC is
writing to the LCD D0 thru D7 are
outputs from the PIC.
To
read the status of the BUSY bit D7, the PIC pin connected to D7 must be switched to the READ state ie:
input.
So the sequence could be.
loop:
Read the state of D7, if BUSY then keep waiting till /BUSY. You must also set the R/W pin on the LCD to READ
Set the PIC to write, write the data or command to the LCD. You must also set the R/W pin on the LCD to WRITE
Keep repeating this 'loop' until all the data or commands are written to the LCD.
You should test the BUSY bit every time before you WRITE to the LCD.
Do you follow OK.?