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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/26/09 00:23
Modified:
  04/26/09 00:25

Read: times


 
#164839 - speaking of delay ...
Responding to: ???'s previous message
It makes little sense to put code before this forum before the MCU speed is given.

Nearly every LCD display has specific timing requirements, some quite slow, and some not so slow. The delay loops and the equates that permit forum members to know what the actual delays are will prove essential in evaluating the code that drives the LCD interface. These LCD's are not difficult to use. Most often, the delays that are required are not in the width of the 'E' strobe. They're in the length of the open-loop timing of each instruction.

The "usual" problem is failure to coordinate the timing requirements of the LCD, described in the datasheet, with the timing of the driver code. If you lack the datasheet for the specific device with which you are communicating, you are guessing. Often all that's needed is the datasheet for the LCD interface IC, for example the HD44780 or whatever equivalent functional component is present.

Guesses sometimes work, but often fail. This is particularly true in LCD initialization. However, unless you are able to read the busy flag, which, of course, you cannot do until AFTER proper initialization, you have to use worst-case timing for every command, which means you still have to have the datasheet, and you still have to read and understand it.

RE


List of 9 messages in thread
TopicAuthorDate
JHD162a wid at89c52......conceptual problem...PLz Help!            01/01/70 00:00      
   Some thoughts...            01/01/70 00:00      
   see this            01/01/70 00:00      
      Comments?            01/01/70 00:00      
      Code????            01/01/70 00:00      
         contrary...            01/01/70 00:00      
   Why you should comment your code            01/01/70 00:00      
   Introduce Delay            01/01/70 00:00      
      speaking of delay ...            01/01/70 00:00      

Back to Subject List