Hi,
I'm using a SED 1565 display. Yes! I'm sending all "0" to screen for refreshing the screen. My Intializing code is as under:
void Init_Display( void )
{
A0_HIGH;
LCD_DESELECT;
Delay_us(5);
LCD_RESET;
Delay_us(5);
LCD_RESET;
Delay_us(5);
LCD_RESET;
Delay_us(5);
LCD_RUN;
Delay_us(5);
LCD_RUN;
Write_Display( CMD, RESET_DISPLAY ); //0xE2
Write_Display( CMD, RESET_DISPLAY ); //0xE2
Write_Display( CMD, LCD_BIAS_1_9 ); //0xA2
Write_Display( CMD, ADC_SELECT_NORMAL ); //0xA0
Write_Display( CMD, COMMON_OUTPUT_NORMAL ); //0xC0
Write_Display( CMD, V5_RESISTOR_RATIO ); //0x23
Write_Display( CMD, ELECTRONIC_VOLUME_SET ); //0x81
Write_Display( CMD, ELECTRONIC_VOLUME_INIT ); //0x2F
Write_Display( CMD, ( POWER_CONTROL_SET | VOLTAGE_REGULATOR | VOLTAGE_FOLLOWER | BOOSTER_CIRCUIT ) ); //0x28 | 0x02 | 0x01 | 0x04
Write_Display( CMD, DISPLAY_ON ); //0xAF
Write_Display( CMD, ALL_POINTS_ON ); //0xA5
Delay_us(300000);
Write_Display( CMD, ALL_POINTS_OFF ); //0xA4
//Write_Display( CMD,CMD_NOP);
clear_display();
} //end Init_Display()
I see the display on after it send the "DISPLAY_ON" command. The command ALL_POINTS_ON works fine because all the pixels turn dark. At the command ALL_POINTS_OFF, the display is same as the DISPLAY_ON.
But at the "clear_display" subroutine seems to not send the data to the LCD.
Also, my IAR board is running on a 3.3V Voltage supply.
Thanks