Newhaven Display Forum

Newhaven Products => Graphic LCDs => Topic started by: vinvald on February 17, 2018, 09:43:58 AM

Title: NHD-320240WG-BXTFH-VZ# initialization problem
Post by: vinvald on February 17, 2018, 09:43:58 AM
Hi
I'm trying to running the NHD-320240WG-BXTFH-VZ# with the stm32f429 using 3.3v voltages and 8080 modes.
I have not idea what is the problem, but i don't get any reaction from the lcd. All 17 pins are connected.
I checked the signals with logic analyzer and their looked fine. Sometimes one random line turns on and stays in
this state for a moment after turning off the power. Thanks in advance.

Code: [Select]
void NHD_LCD_display_write_command(uint8_t data)
{
NHD_LCD_set_data(data);
set_A0();
reset_cs();
reset_wr();
set_wr();
set_cs();
}

void NHD_LCD_display_write_data(uint8_t data)
{
NHD_LCD_set_data(data);
reset_A0();
reset_cs();
reset_wr();
set_wr();
set_cs();
}

void NHD_LCD_display_init()
{
set_r();
set_cs();
set_wr();
NHD_LCD_display_reset();

NHD_LCD_display_write_command(0x40);
NHD_LCD_display_write_data(0x30);
NHD_LCD_display_write_data(0x87);
NHD_LCD_display_write_data(0x07);
NHD_LCD_display_write_data(0x27);
NHD_LCD_display_write_data(0x50);
NHD_LCD_display_write_data(0xEF);
NHD_LCD_display_write_data(0x28);
NHD_LCD_display_write_data(0x00);
NHD_LCD_display_write_command(0x44);
NHD_LCD_display_write_data(0x00);
NHD_LCD_display_write_data(0x00);
NHD_LCD_display_write_data(0xEF);
NHD_LCD_display_write_data(0xB0);
NHD_LCD_display_write_data(0x04);
NHD_LCD_display_write_data(0xEF);
NHD_LCD_display_write_data(0x00);
NHD_LCD_display_write_data(0x00);
NHD_LCD_display_write_data(0x00);
NHD_LCD_display_write_data(0x00);

NHD_LCD_display_write_command(0x5A);
NHD_LCD_display_write_data(0x00);

NHD_LCD_display_write_command(0x5B);
NHD_LCD_display_write_data(0x00);

NHD_LCD_display_write_command(0x5D);
NHD_LCD_display_write_data(0x04);
NHD_LCD_display_write_data(0x86);

NHD_LCD_display_write_command(0x4C);
//
    ///to do: clear the screen
//
NHD_LCD_display_write_command(0x59);
NHD_LCD_display_write_data(0x14);
}

        NHD_LCD_display_init();
NHD_LCD_display_write_command(0x46);
NHD_LCD_display_write_data(0xB0);
NHD_LCD_display_write_data(0x04);
NHD_LCD_display_write_command(0x42);
for(i = 0; i < 4800; i++)
{
NHD_LCD_display_write_data(0xFF);

}
for(i = 0; i < 4800; i++)
{
NHD_LCD_display_write_data(0x00);

}

Thanks.
Title: Re: NHD-320240WG-BXTFH-VZ# initialization problem
Post by: Ted_M on May 21, 2018, 11:37:49 AM
Hi Vinvald,

Have you been able to resolve this issue?