Close

Power supply and initialization of AMS495QA01

A project log for SBC-T113 RGB/MIPI/LVDS/AMOLED/QSPI/MCU LCD

Allwinner T113-S4 SOC chip is a 2xCortex-A7+1xRISC-V+256M DDR3 processor with RGB_MIPI_LVDS_8080 LCD driver.

eleclabElecLab 03/19/2026 at 01:290 Comments

I designed two OLED screen sockets on the same adaptor board, one is 4.95" AMS495QA01 960x544 and the other is 5.5" E555HBM2 720x1280, which use the same OLED power chip.

static struct LCM_setting_table lcm_initialization_setting[] = {
{0xF0, 2, {0x5A, 0x5A}},
{0xF7, 1, {0x20}},
{0xF8, 20, {0x7F,0x7A,0x89,0x67,0x26,0x38,0x00,0x00,0x09,0x67,0x70,0x88,0x7A,0x76,0x05,0x09,0x23,0x23,0x23,0x00}},
{0xF4, 4, {0x33,0x42,0x00,0x08}},
{0xF5, 5, {0x00,0x06,0x26,0x35,0x03}},
{0xF9, 22, {0x01,0x93,0x93,0xaf,0xd3,0xda,0xcd,0xc5,0xcd,0xbe,0xe2,0xe3,0xdf,0xd6,0xca,0xd3,0xfa,0xed,0xe6,0x2f,0x00,0x2f}},
{0xB1, 3, {0x07,0x00,0x00}},
{0xF9, 0, {0x00}},
{0xB2, 4, {0x12,0x12,0x12,0x12}},
#endif

#if 1 //AMS495QA01
{0xf0, 2, {0x5a,0x5a}},
{0xf1, 2, {0x5a,0x5a}},

{0xb0, 1, {0x02}},
{0xf3, 1, {0x3b}},

{0xf4, 4, {0x33,0x42,0x00,0x08}},
{0xf5, 5, {0x00,0x06,0x26,0x35,0x03}},

{0xf6, 1, {0x02}},
{0xc6, 10, {0x0b,0x00,0x00,0x3c,0x00,0x22,0x00,0x00,0x00,0x00}},

{0xf7, 1, {0x20}},
{0xb2, 4, {0x12,0x12,0x12,0x12}},
{0xb1, 3, {0x07,0x00,0x10}},
{0xf8, 19, {0x7f,0x7a,0x89,0x67,0x26,0x38,0x00,0x00,0x09,0x67,0x70,0x88,0x7a,0x76,0x05,0x09,0x23,0x23,0x23}},

{0xb5, 21, {0xff,0xef,0x35,0x42,0x0d,0xd7,0xff,0x07,0xff,0xff,0xfd,0x00,0x01,0xff,0x05,0x12,0x0f,0xff,0xff,0xff,0xff}},
{0xb4, 1, {0x15}},
{0xb3, 1, {0x00}},
//Brightness Level15
{0xf9, 22, {0x01,0x9f,0x9f,0xbe,0xcf,0xd7,0xc9,0xc2,0xcb,0xbb,0xe1,0xe3,0xde,0xd6,0xd0,0xd3,0xfa,0xed,0xe6,0x2f,0x00,0x2f}},

{0xf9, 1, {0x00}},
/* Undocumented command */
{0x26, 1, {0x00}},
{0xb2, 1, {0x12}},

 {REGFLAG_DELAY, REGFLAG_DELAY, {10} },

//SLP OUT
{0x11,     0,     {0x00} },    // SLPOUT
{REGFLAG_DELAY, REGFLAG_DELAY, {200} },

//DISP ON
{0x29,     0,     {0x00} },    // DSPON
{REGFLAG_DELAY, REGFLAG_DELAY, {120} },

{REGFLAG_END_OF_TABLE, REGFLAG_END_OF_TABLE, {} }
};

Discussions