T3STY
Full Member level 4
I'm still working with LCDs and PIC16F84. I've written part of a 4-bit independent pins driver, it's working fine most of it.
What I want to do now is to create a function that reads the busy flag and the address, but I'm not sure how to proceed. The HD44780 manual says I can read it with a busy flag request, like this:
But how should I proceed exactly? I mean, ok, I can send the request with RS=0, RW=1; at this point data shall be written from display to the pins. But the data I have to read is 8 bit long, and I am using 4 bit data transfer. How will the display send the 8 bits in 4 bit mode? Will it make 2 write cycles, the second after a specific delay? Or should I make the request twice and shift myself the incoming data?
The manual says nothing about it and I'm totally aware on what to do.
What I want to do now is to create a function that reads the busy flag and the address, but I'm not sure how to proceed. The HD44780 manual says I can read it with a busy flag request, like this:
Code:
RS RW RB7 RB6 RB5 RB4 RB3 RB2 RB1 RB0
0 1 BF AC AC AC AC AC AC AC
The manual says nothing about it and I'm totally aware on what to do.