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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/27/06 17:46
Read: times


 
#123142 - does that mean they're all alike?
Responding to: ???'s previous message
Ashwin V said:
Russel Bull said:
Ashwin, apart from stating 'it works' - does it comply with the Hitachi datasheet?

Ashwin.V said:
I have used the same code in many of my projects.


Considering the fact that Arvind is from Delhi and also the fact that all electronic goods in bangalore (where i sourced my LCD) are sourced from Delhi, Yes the code will work for Arvind.

Call it strange, but the LCDs which i'm using ARE Hitachi compatible. It took a bit of trial and error for delays and initialisations('entry_set_mode' used in my code) before i could get the LCD running.


Are you saying that all LCDs coming from Delhi are necessarily alike just because they come from Delhi? Aren't there multiple manufacturers? Isn't is possible that they implement things differently, perhaps at different duty cycles (check the datasheets to see what this might do)?

If you use the LCD correctly, meaning that you design your interface depending on the LCD controller, i.e. the HD44780, and if you determine the correct parameters from the datasheet, it shouldn't be a mystery requiring lots of tweaking.

The minimal pulse width for 'E' is what it is. It doesn't change with MCU or with LCD batch or manufacturer. It depends only on the version of the HD44780, or clone thereof. Likewise, the execution time of the commands is well-defined, based on the IC version and the display duty cycle.

Initialization timing is constant, regardless of the LCD, as it is a function only of the LCD controller. If you use the busy flag as shown in the datasheet, the timing will be determined by that. There are enough pins on the single 8-bit port to manage a 4-bit interface from it alone, including the R/W* signal.

With a 12-clocker at 12 MHz or slower, you can set the 'E' bit and then clear it without any delay and still meet the minimal timing of all the HD44780 versions with which I'm familiar. If all the other signals are set up before and persist after 'E', you should have no trouble at all.

You should, however, always operate the device as the HD44780 datasheet tells you.

RE






List of 52 messages in thread
TopicAuthorDate
4-bit LCD ... single PORT            01/01/70 00:00      
   there's a datasheet            01/01/70 00:00      
      LCD datasheets ...            01/01/70 00:00      
         the Hitachi Datasheet for HD44780 is not like that            01/01/70 00:00      
         VFDs: Lucky b*stard            01/01/70 00:00      
   4-bit LCD            01/01/70 00:00      
      There are examples on 8052.COM if you search            01/01/70 00:00      
         And you don't need R/W*            01/01/70 00:00      
            but be aware! You discard several functions.            01/01/70 00:00      
               on saving pins            01/01/70 00:00      
                  wait a minute ...            01/01/70 00:00      
                     Richard, please            01/01/70 00:00      
                        Why should he change direction?            01/01/70 00:00      
                           no such impilcation            01/01/70 00:00      
                              well, the logic is simple ...            01/01/70 00:00      
                                 OK, as always            01/01/70 00:00      
                  Richard, quit bickering            01/01/70 00:00      
                     it goes to an OLD issue            01/01/70 00:00      
                        as I see it is that this is GREAT.            01/01/70 00:00      
                  On saving pins            01/01/70 00:00      
                  read the forum messages, don't glance            01/01/70 00:00      
   Here is my example            01/01/70 00:00      
      why do you persist in 'advertising' this CRAP            01/01/70 00:00      
         Attack, Attack, Attack.            01/01/70 00:00      
            get your facts straight            01/01/70 00:00      
               Did you understand real life ?            01/01/70 00:00      
                  yes, I do            01/01/70 00:00      
   Answer            01/01/70 00:00      
      Jon, great answer            01/01/70 00:00      
         Yes, indeed, ... BUT ...            01/01/70 00:00      
            How do you know...            01/01/70 00:00      
               It's possible that things worked that way            01/01/70 00:00      
   Better late than never            01/01/70 00:00      
      \"It works\"            01/01/70 00:00      
         Yes, it does            01/01/70 00:00      
            does that mean they're all alike?            01/01/70 00:00      
               Yes, if all guys would read the datasheets...            01/01/70 00:00      
                  Hitachi JHD 162a            01/01/70 00:00      
                     Point missed            01/01/70 00:00      
                     That's not relevant!            01/01/70 00:00      
                        Advice appriciated            01/01/70 00:00      
                           where are you going to find that?            01/01/70 00:00      
      well, you just posted your own 'comment'            01/01/70 00:00      
   Simple Guidance            01/01/70 00:00      
      One LCD, One Port            01/01/70 00:00      
      horsefeathers, male cow manure            01/01/70 00:00      
   GOD!!!            01/01/70 00:00      
      try a shadow register            01/01/70 00:00      
   Full assembly Code ... LCD 4 bit            01/01/70 00:00      
      On first reading...            01/01/70 00:00      
      probs in 2 SUBROUTINES ...            01/01/70 00:00      
   Many ways to skin a cat            01/01/70 00:00      

Back to Subject List