Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/08/05 16:09
Read: times


 
#89279 - For what it's worth (not much)
Responding to: ???'s previous message
For what it's worth, I just did a quick test. Basically, given the incorrect code where EN is incorrectly raised before establishing the output lines:

SETB EN
NOP
CLR RW
SETB RS
MOV P1,A
CLR EN


My question was how long the NOP delay could be extended before the LCD failed to honor the command. I went as far as going through a 16-bit timer overflow delay--65,536 instruction cycles, or about 0.071 seconds on the AT89S8252 @ 11.0592 MHz. The LCD still honored the command.

Obviously your mileage will vary based on the LCD you use, but at least on the LCD I have on hand it doesn't seem to matter whether or not you put the data on the line before or after you raise EN. The only thing that seems to matter is what is on the line at the moment EN is brought low. This probably explains why the previously incorrect code in the LCD tutorial worked when I wrote it and also probably explains why there wasn't much in the way of concerns expressed about the LCD tutorial for 7 years.

In any case, I've corrected the LCD tutorial to reflect the fact that the RS, RW, and data lines should be put on the bus before the EN line is brought high.

Regards,
Craig Steiner


List of 22 messages in thread
TopicAuthorDate
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      

Back to Subject List