Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Steve

Pages: [1]
1
OLEDs / NHD-0430DZW-AG5- Reinitializing in Nibble Mode
« on: November 18, 2014, 09:59:59 AM »
This is a nice looking display BUT it is the worst one I have ever had to work with!

I have asked this question before but since the forums got trashed I have to ask again.

How can I initialize it in nibble mode more than once without powering down the display?

As I develop I don't want to have to power cycle everything just to test changes. Surely there is a way as I have done with just about every other Hitachi compatible display from VFIP to LCD.

        self.nibc(0x30)                # put into 8 bit mode if not already there
        sleep(0.01)                     # this is 10ms., plenty of time!
        self.nibc(0x30)                # do it again to be sure
        sleep(0.01)
      
        self.nibc(0x20)                # now I know I am starting from known 8 bit mode.
        self.nibc(0x20)                #   so start the 4 bit handshake.
        self.nibc(0x80)
        sleep(0.01)
      
        self.nibc(0x00)
        self.nibc(0x10)
        sleep(0.01)
       
        self.nibc(0x00)
        self.nibc(0x20)
        sleep(0.01)
 
        self.nibc(0x00)
        self.nibc(0xF0)
        sleep(0.01)

If I run this many times it will often initialize correctly or often leave trash all over the display. Sometimes it seems like every other time is correct and other times not.

On first power up from zero volts this will run correctly every time. But what if I have a brown out which rattles the reset line but the voltage never really falls to zero?

Surely there is a way to do this?

Pages: [1]