??? 06/23/06 19:24 Modified: 06/23/06 19:51 Read: times |
#118968 - Apparently not... Responding to: ???'s previous message |
Grant Beattie said:
but in those cases, that's what we do: Wait for BUSY to go away then start issuing commands, without unnecessary duplication (E.g. multiple Function Set commands). Not sure who the we you refer to is, but why are there so many answers here along the lines of use multiple Function Set commands? http://www.8052.com/forum/read.phtml?id=108673 http://www.8052.com/forum/read.phtml?id=97959 Grant Beattie said:
HOWEVER, in your code, I think you want to de-assert EN otherwise you are just reading the same value over and over, non? Not according to the tutorial... http://www.8052.com/tutlcd.phtml WAIT_LCD: CLR EN ;Start LCD command CLR RS ;It's a command SETB RW ;It's a read command MOV DATA,#0FFh ;Set all pins to FF initially SETB EN ;Clock out command to LCD MOV A,DATA ;Read the return value JB ACC.7,WAIT_LCD ;If bit 7 high, LCD still busy CLR EN ;Finish the command CLR RW ;Turn off RW for future commands RET |
Topic | Author | Date |
LCD 2 line example code | 01/01/70 00:00 | |
post such things to the code library | 01/01/70 00:00 | |
Assumes you can read from the LCD | 01/01/70 00:00 | |
Apparently not... | 01/01/70 00:00 | |
Second Try | 01/01/70 00:00 | |
not at all | 01/01/70 00:00 | |
Shouldn't you be home by now?![]() | 01/01/70 00:00 | |
Also, in the interests of saving CPU | 01/01/70 00:00 |