Author Topic: NHD-0216HZ-FSW-FBW-33V3C Black Boxes  (Read 1608 times)

pepe

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
NHD-0216HZ-FSW-FBW-33V3C Black Boxes
« on: November 21, 2015, 12:48:21 PM »
Hi,

I installed a NHD-0216HZ-FSW-FBW-33V3C with an MSP430g2553. I tried to initialize it for 4-bit mode in assembly language but black boxes still shown.

My connections are: DB4-DB7 --> P1.4-P1.7 respectively, RS --> P2.0, R/W --> P2.1, Enable --> P2.2

Here is my code:

Code: [Select]
Init:         bic.b     #0xFF,P1OUT  ;Clear P1, P1 = 0
              bis.b     #0x01,&P2OUT ;High RS = 1
              bic.b     #0x01,&P2OUT ;Clear RS = 0
              call      #Delay100ms
              mov.b     #0x30,&P1OUT
              call      #Nibble      ;Wake up 1
              call      #Delay10ms
              call      #Nibble      ;Wake up 2
              call      #Delay10ms       
              mov.b     #0x20,P1OUT
              call      #Nibble      ;Wake up 3
              call      #Command28
              call      #Command10
              call      #Command0F
              call      #Command06
              ret

Code: [Select]
Nibble        bis.b      #0x04,&P2OUT ;Enable High
              call       #Delay1ms
              bic.b      #0x04,&P2OUT ;Clock Enable - Falling Edge
              ret

Code: [Select]
Command28     mov.b     #0x28,&P1OUT //Data in port
              bic.b     #1,&P2OUT    //RS = 0 : Send Instruction
              bic.b     #0x02,&P2OUT //R/W = 0 : Write
              call      #Nibble      //Send Lower 4 Bits
              mov.b     #0x28,R4
              push      R4
              mov.b     #4,R5       ;Rotate Left Counter
C28           rla.b     R4
              dec       R5
              jnz       C28
              mov.b     R4,&P1OUT   //put data in output port
              call      #Nibble     //Send upper 4 bits
              ret

This code is following the code in the NHD-0216HZ-FSW-FBW-33V3C datasheet. If someone can help me.
« Last Edit: November 21, 2015, 12:50:47 PM by pepe »

Saurabh_B

  • Administrator
  • Hero Member
  • *****
  • Posts: 356
  • Karma: 10
    • View Profile
Re: NHD-0216HZ-FSW-FBW-33V3C Black Boxes
« Reply #1 on: November 24, 2015, 08:33:32 AM »
Hi would it be possible to post a picture of the black boxes.

Could you also check the voltage on pin 3 of the display?

 

NHD‐0216HZ‐FL‐YBW‐C adjusting contrast with manufacturer disabled pin

Started by 8510LeoBoard Character LCDs

Replies: 3
Views: 2278
Last post February 27, 2016, 09:13:09 AM
by 8510Leo
NHD-1.5-128128UGC3 + Beaglebone Black

Started by parsecBoard OLEDs

Replies: 3
Views: 3129
Last post September 24, 2015, 08:14:33 AM
by Paul_B
MOVED: NHD-0216Hz-FL-YBW-C

Started by Saurabh_BBoard OLEDs

Replies: 0
Views: 1666
Last post March 07, 2016, 07:57:11 AM
by Saurabh_B
NHD-0216Hz-FL-YBW-C

Started by RayMan6Board Character LCDs

Replies: 1
Views: 2157
Last post March 07, 2016, 08:04:10 AM
by Saurabh_B
NHD-C12864A1Z-FSRGB-FBW-HT1 boost speed (clear to black and black to clear)

Started by facotlBoard Graphic LCDs

Replies: 4
Views: 2615
Last post January 27, 2016, 10:18:45 AM
by facotl