NHD-0108HZ-FSW-GBW example code

Comments

2 comments

  • Saurabh_B

    Hi,

    In 4-bit mode, you would need to send the upper 4 bits first followed by the lower 4. The comments are wrong for that display, I will have that fixed soon.

    Would you be able to post a picture of the black boxes?

    0
  • NewUser

    Hi, thanks for the reply.  I've made some progress but not full success yet.

    I don't have ready means to send a photo, but my contrast issue goes away when running the device at 3 volts.  My TI programmer tool runs it at 3.6, a bit above the upper limit.

    When I run the following initialization sequence, based on page 25 of the ST7066U, all 5x7 matrix of the leftmost character blink, and its cursor is On; the remaining 7 characters are blank.

       delay > 40 MS
    Function Set #1:
       send 0x30, pulse "E" for the high nybble, delay >37 us       
    Function Set #2, setting 4-bit mode, 1-line display, 5x8 font   
       send 0x20 high nybble then low nybble, pulsing "E" for each nybble, delay > 37 us
    Function Set #3, again   
       send 0x20 again, high nybble then low nybble, pulsing "E" for each, delay > 37 us
    Display On/Off control, Display ON, Cursor ON, Blink ON
       send 0x0F high nybble then low nybble, pulsing "E" for each, delay > 37 us
    Display Clear:
       send 0x01 high nybble then low nybble, pulsing "E" for each, delay > 1.52 us
    Entry Mode Set:
       send 0x07 high nybble then low nybble, pulsing "E" for each.
       
     R_W and RS signals are always low

    So the initialization may be working, but I would not have expected the first character's pixels to be "On" - maybe that's normal?

    If Initialization is OK, how now to send data to be displayed? Examples don't cover that, and I'm unclear on the DDRAM Address discussion

    THANKS

    0

Please sign in to leave a comment.