??? 03/08/05 16:20 Read: times |
#89282 - Correction Responding to: ???'s previous message |
Kitti Wateesatogkit said:
now the program get stucked in WAIT_LCD again between...
WAIT_LCD: CLR RS ; thisline SETB RW SETB E MOV D,#0FFh MOV A,D JB ACC.7,WAIT_LCD ; to this line CLR E CLR RW RET Technically, the SETB E instruction should be after the MOV D,#0FFh instruction and this same change should be made throughout your code. I took your complete modified code, dumped it into my assembler modifying only the pin assignment of RW and RS to reflect my hardware, assembled it, and ran it, and it worked here. That doesn't mean it's right, just that it does work at least in some cases. Are you running this only in a simulator or on the real hardware? If it's a simulator, perhaps the simulator is following the 44780 specification to the letter and assuming that the MOV D,#0FFh instruction is executed before the SETB E instruction. If you're running this on real hardware, what microcontroller derivative are you using and what model LCD? Regards, Craig Steiner |
Topic | Author | Date |
Hello World program problem. | 01/01/70 00:00 | |
More info | 01/01/70 00:00 | |
Scope ? | 01/01/70 00:00 | |
Suspect tutorial? | 01/01/70 00:00 | |
Definitely suspicious! | 01/01/70 00:00 | |
You are right | 01/01/70 00:00 | |
Craig, you are not the only one | 01/01/70 00:00 | |
Of course... | 01/01/70 00:00 | |
been there, done that | 01/01/70 00:00 | |
For what it's worth (not much) | 01/01/70 00:00 | |
Absolutely !!! | 01/01/70 00:00 | |
ISIS ? | 01/01/70 00:00 | |
Isis manufacturer website | 01/01/70 00:00 | |
Here comes new(?) problem. ^_^; | 01/01/70 00:00 | |
Correction | 01/01/70 00:00 | |
Good to hear it really worked. ^_^ | 01/01/70 00:00 | |
Be sure it solves your problem! | 01/01/70 00:00 | |
Re: | 01/01/70 00:00 | |
Its ISIS not the code | 01/01/70 00:00 | |
Status not supported | 01/01/70 00:00 | |
Polling Vs Delays | 01/01/70 00:00 | |
What kind of an excuse is that?!![]() | 01/01/70 00:00 |