Author Topic: Problem with WHITE COLOR CHAR on NHD-0440WH-ATMI-JT with 2 lines  (Read 232 times)

Mic71

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Problem with WHITE COLOR CHAR on NHD-0440WH-ATMI-JT with 2 lines
« on: November 04, 2018, 06:41:35 PM »
Dear ALL, I bought a LCD NHD-0440WH-ATMI-JT and I make the firmware on STM32 but I found a problem with WHITE color. This is my problem: when I enable two lines I not see the white color char but a blue with constrast loss . If disable two lines I see one line with WHITE color.... How I can see two lines with WHITE color char?

Thanks in advance

Michele

This my init code with TWO LINES.... Where I wrong?  :-\


     LCD_SetCommandPin4bit(0,0,1,1); // send 0011 : 0x30
     LCD_PulseEnable(iEx);
     DWT_Delay_us(5);

     LCD_SetCommandPin4bit(0,0,1,1); // re-send 0011 : 0x30
     LCD_PulseEnable(iEx);
     DWT_Delay_us(5);
 
     LCD_SetCommandPin4bit(0,0,1,1); // re-send 0011 : 0x30
     LCD_PulseEnable(iEx);
     DWT_Delay_us(5);
     
     LCD_SetCommandPin4bit(0,0,1,1); // ...setting 8 bit...
     LCD_PulseEnable(iEx);
     
     LCD_SetCommandPin8bit(0,0,1,1,1,0,0,0); // send 0011 1000 : 0x38 Function Set = 8bit mode; 2-line; 5x8
     LCD_PulseEnable(iEx);
     
     LCD_SetCommandPin8bit(0,0,0,0,1,0,0,0); // send 0000 1000 : 0x8 Turn off display
     LCD_PulseEnable(iEx);
   
     LCD_SetCommandPin8bit(0,0,0,0,1,1,1,1); // send 0000 1100 : 0xC Turn on display; cursor blink
     LCD_PulseEnable(iEx);

     LCD_SetCommandPin8bit(0,0,0,0,0,0,0,1); // send 0000 0001 : 0x1 Clear
     LCD_PulseEnable(iEx);

     LCD_SetCommandPin8bit(0,0,0,0,0,1,1,0); // send 0000 0110 : 0x6 Entry mode set
     LCD_PulseEnable(iEx);

Alee_S

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Re: Problem with WHITE COLOR CHAR on NHD-0440WH-ATMI-JT with 2 lines
« Reply #1 on: November 21, 2018, 01:33:08 PM »
Hi Michele,

The code you have shown looks good to me.

It could be possible that Pin 12 may not be receiving enough contrast voltage to display correctly, hence you are seeing blue with a contrast loss under 2-line mode.

How are you currently connecting Pin 12 of the display? Are you using fixed resistors, or a potentiometer?
Also, what is your measured voltage reading on Pin 12 of the display?

 

NHD‐3.5‐320240MF‐ATXL#‐CTP‐1 Problem with standby mode

Started by guenterBoard TFTs

Replies: 0
Views: 4633
Last post June 16, 2016, 12:14:36 PM
by guenter
NHD‐2.4‐240320SF‐CTXL#‐FTN1 touch-screen problem

Started by hbcelebiBoard TFTs

Replies: 5
Views: 8204
Last post December 10, 2014, 11:19:05 AM
by Michael_L
Working on NHD‐2.4‐240320SF‐CTXL#‐FTN1, have problem in initialization

Started by sli25Board TFTs

Replies: 6
Views: 7426
Last post June 04, 2015, 09:52:25 PM
by sli25
Problem in bringing up NHD‐2.4‐240320SF‐CTXL#‐FTN1 on Renesas RL78/G14

Started by sli25Board TFTs

Replies: 3
Views: 6060
Last post May 28, 2015, 02:59:03 PM
by Michael_L
problem with NHD‐2.23‐12832UCB3

Started by luisvalsecaBoard OLEDs

Replies: 1
Views: 3376
Last post January 24, 2017, 02:52:53 PM
by Saurabh_B