Unable to start NHD-3.12-25664UCB2 OLED display.
I am using Cortex-M3 LPC1768 controller. I did connection as per data sheet and started initialization code but OLED Display didn't power up. I am providing 3.3v supply on VDD. i want to use M6800 parallel interface for that i am giving 3.3V on BS0 & BS1 pins. Please help me how to initialize OLED display. I am following datasheet of ssd1322 and initialization code from NHD site. This is my initialization code. Please suggest me for delay also
void OLED_Init_25664()
{
// CLR_RES;
// GLCD_Delay(100);
SET_RES;
GLCD_Delay(100);
Set_Command_Lock_25664(0x12);
Set_Display_On_Off_25664(0x01);
Set_Column_Address_25664(0x1C,0x5B);
Set_Row_Address_25664(0x00,0x3F);
Set_Display_Clock_25664(0x91);
Set_Multiplex_Ratio_25664(0x3F);
Set_Display_Offset_25664(0x00);
Set_Start_Line_25664(0x00);
Set_Remap_Format_25664(0x14);
Set_GPIO_25664(0x00);
Set_Function_Selection_25664(0x01);
Set_Display_Enhancement_A_25664(0xA0,0xFD);
Set_Contrast_Current_25664(0x9F);
Set_Master_Current_25664(0x0F);
// Set_Gray_Scale_Table_25664();
Set_Linear_Gray_Scale_Table_25664();
Set_Phase_Length_25664(0xE2);
Set_Display_Enhancement_B_25664(0x20);
Set_Precharge_Voltage_25664(0x1F);
Set_Precharge_Period_25664(0x08);
Set_VCOMH_25664(0x07);
Set_Display_Mode_25664(0x02);
Set_Partial_Display_25664(0x01,0x00,0x00);
Set_Display_On_Off_25664(0x01);
}
Thanks in advance
-
Hi Ankush,
It is possible the NHD-3.12-25664UCB2 display may have initialized properly, but since there appears to be no pixel data written to the screen or functions after the initialization, it is hard to determine if this is the case.
Try running the 0xA5 command in order to turn all pixels on at their highest intensity or creating your own function that can write pixel data to the display's RAM in order to verify if the initialization sequence was run successfully.
Best,0
Please sign in to leave a comment.
Comments
1 comment