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 - Bz89

Pages: [1]
OLEDs / NHD-0420CW I2C interface
« on: November 02, 2016, 12:25:52 AM »
Hi all,

I am using an NHD-0420CW in a design which requires the interface type to be I2C. Upon reading all documentation and controller manuals (Us2066) I am still unsure of a few things and would like to ask a few questions. I Would appreciate any comments/feedback on the below:

1). in the Application notes section of the Newhaven website, a section is dedicated to explain the differences between serial and parallel interfaces. In this section a statement is made saying that an I2C interface may not work correctly with other devices on the same bus.

My system has 4 other device connected to the same bus, each however has a unique address, I am guessing that the comment made on the website is to say that the LCD would not work if there is another device having the same address connected to the bus? or is the website saying something else?

2). upon reading through the US2066 datasheet, the control byte is composed of the Co and D/C bits followed by 6 0s. My understanding of these 2 bits is to enable sending a mixture of data and command bytes in the same I2C transaction, is this correct? so to send a string of data bytes the control byte would be 0x40 followed by an x number of data bytes. Does the control byte need to be sent only once? or after sending each data byte?

And so to send a string of command bytes, the control byte is 0x80 followed by an x number of command bytes? would I need to send the control byte only once before sending all the commands? or once for each command?

I guess what I am trying to say is that I don't understand why there are 2 bits in the control byte that are both used for the same purpose for indicating whether the transmitted byte is a data or a command byte.

I would appreciate any feedback/comments on the above.

Pages: [1]