NHD-0216MW-IB3 Command Decoder
"Is there a bit level secret decoder ring for the serial commands listed in the initialization code found listed above?"
Thanks in advance - Tim
-
Hi Tim,
The” IS”, “RE” and “SD” bits are flags that are internal to the controller. You would set these using the commands that have the flag in as one of their parameters.
To set the “RE” & “IS” flags, you would use the Function Set Command:
You could only set the ”IS” flag if the “RE” Bit is low.
To set the “SD” flag, you would first need to enter the Extended Command Set by setting the “RE” bit high, then using the OLED Characterization Command to set the “SD” Bit high:0 -
Thanks for the help, I stepped away from the problem (used the display primitively) and am looking at it again. So, I can see the commands used to set the flags; what about the D/C# and R/W# bits? How do I map the command? I can see a nibble from d7 to d0, that's straight forward. The other bits though...
Thanks,
Tim0 -
Hi there!
Contrary to the “SD”, “IS”, and “RE” bits, the “D/C” and “R/W” bits hardware pins that are brought out to the User, and can be software controlled. You can connect those pins to a GPIO pin and manually change the state of those bits in your program.
In your case, since you are using I2C interface mode, The state of “R/W” and “D/C” bits are not essential when sending commands. the “D/C” bit is used for your slave address, and the “R/W” bit will be tied to ground. This table is also found on pg. 5 on the US2066 controller sheet, which is linked below.
US 2066: https://support.newhavendisplay.com/hc/en-us/articles/4414485495703--US2066
If you were using parallel mode instead, the state of these bits become more important. For example, If you were performing “Write Data” command, the “D/C” and “R/W” bit must be turned HIGH
Hope this helps!0 -
Alee, Many thanks for that complete information!
0
Please sign in to leave a comment.
Comments
4 comments