Author Topic: NHD‐C0220BiZ‐FS(RGB)‐FBW‐3VM Initialisation  (Read 401 times)


  • Newbie
  • *
  • Posts: 5
  • Karma: 0
    • View Profile
Hi all,
I found a issue with this initialisation command sequence
Code: [Select]
/*filling buffer with LCD initialization command sequence*/
g_I2c_LCD_Cpu.i2cBuffer.i2cTxBuffer[0] =  0x00;     /*SendLCD_command to the display*/
g_I2c_LCD_Cpu.i2cBuffer.i2cTxBuffer[1] =  FUNC_SET_TBL0;
g_I2c_LCD_Cpu.i2cBuffer.i2cTxBuffer[2] =  FUNC_SET_TBL1;
g_I2c_LCD_Cpu.i2cBuffer.i2cTxBuffer[3] =  0x14;     /*Set BIAS - 1/5*/
g_I2c_LCD_Cpu.i2cBuffer.i2cTxBuffer[4] =  0x73; /* Set contrast low byte*/
g_I2c_LCD_Cpu.i2cBuffer.i2cTxBuffer[5] =  0x5E; /*ICON display on, Booster on, Contrast high byte*/
g_I2c_LCD_Cpu.i2cBuffer.i2cTxBuffer[6] =  0x6D;     /*Follower circuit (internal), amp ratio (6)*/
[b][b] g_I2c_LCD_Cpu.i2cBuffer.i2cTxBuffer[7] =  0x0C; /*Display on*/
g_I2c_LCD_Cpu.i2cBuffer.i2cTxBuffer[8] =  0x01; /*Clear display*/
g_I2c_LCD_Cpu.i2cBuffer.i2cTxBuffer[9] =  0x06; /*Entry mode set - increment*/[/b][/b]

/*write text to device as soon as it is ready*/
while(I2c_write(&g_I2c_LCD_Cpu.drivers.i2cDevLCD, &g_I2c_LCD_Cpu.i2cBuffer.i2cTxBuffer[0], 10) == IfxI2c_I2c_Status_nak);
This command sequence works fine, but sometimes after resetting the board i'm getting a blank screen.
I've probed the I2C lines and found that the highlighted commands are not getting properly sent to the LCD.
If i call this init function twice i didn't get the blank screen, but i couldn't able to get the exact root cause for why those 3 commands are not properly sent.


NHD-C0220BiZ-FSW-FBW-3V3M stucking at "39"

Started by amitjagtapBoard Character LCDs

Replies: 1
Views: 1177
Last post March 18, 2019, 05:35:11 AM
by amitjagtap
NHD-C0220BiZ Sometimes Ignoring "Clear Display" Command

Started by dstoverBoard Character LCDs

Replies: 2
Views: 8543
Last post March 27, 2014, 05:41:27 PM
by Michael_L
NHD-C0220BiZ-FSW-FBW-3V3M NAKs all odd numberd ASCII characters

Started by majorninthBoard Character LCDs

Replies: 7
Views: 9224
Last post May 28, 2015, 04:51:31 PM
by Michael_L
NHD-C0220Biz-FSW adds character 0x11 at begining of line

Started by whAtlGaBoard Character LCDs

Replies: 3
Views: 5682
Last post July 11, 2016, 08:20:40 AM
by Saurabh_B
NHD-C0220BiZ- Series 2x20 Display mounting on PCB

Started by m.sankarBoard Character LCDs

Replies: 3
Views: 8138
Last post March 24, 2014, 08:08:00 AM
by Michael_L