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.


Messages - SpiralP

Pages: [1]
1
Graphic LCDs / Re: NHD-C160100DiZ and Raspberry Pi
« on: March 13, 2015, 11:41:08 AM »
I've done alot of I2C stuff with other microprocessors and i have an idea for you to try.

The slave address they provide within the datasheet is 0x3F, which i see you define in your code.

The way I2C works is the Address is 7 bits. However it is left shifted by 1 bit.
So the total address is an 8 bit value.
The 7 most significant bits are the address of the device and the Least significant bit (0) is the Read / Write bit which tells the slave device if you're going to be sending it data or trying to retrieve data from it.

You might want to try left shifting the address by 1 bit and setting that in your code as the slave address.
Hence 0x3F will be 0x7E


2
Graphic LCDs / NHD‐12232KZ‐NSW‐BBW‐P Datasheet Confusion
« on: March 13, 2015, 11:32:59 AM »
Within the datasheet you show both CS1 and CS2 plus an Enable signal referenced as E in the table.
The timing diagram which is pulled from the controller datasheet shows all of these signals.
However your code example only references E1 and E2.

I'm assuming the E1 and E2 in the code example refers to the CS1 and CS2.

I do not see the code example moving the Enable signal line at all.

So i'm confused as to what to do with the Enable line.

I've tried writing my code to mimic both the Timing diagram and the sample code provided. Neither is getting output on the display.

I'm using a microchip DSPIC33 device and i'm using just standard GPIO pins to do the bit-banging.
I've double checked all the connections and have verified everything is connected properly per the datasheet.
I've measured with an OScope that my timing is within the specifications of the datasheet as well.

Pages: [1]