NHD-0420CW-AY3 what means: "IS" "RE" "SD"

Comments

7 comments

  • Engineering Support
    Community moderator

    Hi,

    There are three sets of commands in the US2066 controller IC: the Fundamental Command Set, the Extended Command Set, and the OLED Command Set. We can use the logic bits IS, RE, and SD to switch between these command sets. The Function Set command is used to set the “RE and IS” bits and the OLED Characterization command on the command table is used to set the “SD” bit.

    Please see the following example to set the Contrast Control on the display.

    To access the OLED command Set, the RE and SD have to be set to 1. This can be done with the following:

    command(0x2A);         // Function set command to set RE to 1 

    command (0x79);       // OLED Characterization command to set SD to 1 

    This can then be followed by:

    command (0x81);        // Set contrast control

    command (0x7F);       // Set contrast control value

    Please refer to the US2066 controller IC (pages 26-31) spec and the sample code on our website for your reference.

    1
  • Ratta Mayhorka

    could you please explain me how you get that 2Ah =  RE to 1  or 79h to set SD to1 in a binary level?

    0
  • Engineering Support
    Community moderator

    Hi,

    To set the RE to 1, we need to send the “Function Set Command” with the following value.

    The value is 0010 1010 -> 0x2A.

    To set the SD bit to 1, we need to send the “OLED Characterization command" with the following value. To access this command set, the RE bit needs to be 1, which we set previously.

    The value is 0111 1001 -> 0x79.

     

    0
  • Goodman Gg

    could you please let us know how to change the IS field  (INPUT SELECT) to 0 and 1. what input should be provided for the command() function?

    0
  • Engineering Support
    Community moderator

    Hi,

    To change the IS bits to 0 and 1 based on the RE bit values, use the Function Set command. If you wish to set the SI bit to 0 or 1, RE bit is 0, use the following Function Set command to set the IS values.

    If you wish to set the SI bit to 0 or 1, RE bit is 1, first use the Function Set command to set the RE bit to 1, then use the Function Set command to set the IS bit.

    Please refer to the IC datasheet page 27,28 and 38 for more information.

    1
  • Goodman Gg

    Thanks for the updates.

    I have some more queries as we are not able to get our OLED display ON even with valid command [command(0x0C); //display ON]  also.

    1) Do we need to set this RE and SD and IS fields as X,0,0 also for making the DISPLAY on.

    Please let us know more details about these RE SD and IS fields. Thanks.

     

     

    0
  • Engineering Support
    Community moderator

    Hi Goodman Gg,

    Could you please email your initialization code and wiring diagram to nhtech@newhavendisplay.com in order to troubleshoot the issue you are having with the display?

    You can also refer to our sample code for Arduino Mega to get better understanding of how the commands are used.

    0

Please sign in to leave a comment.