cancel
Showing results for 
Search instead for 
Did you mean: 

See if the Init Code conversion is correct?

PKunK.1
Associate III

It received the initial code for the ILI9806E.

The codes you received are as follows.

write_command(0xFF); // Change to Page 1 CMD

write_data(0xFF);

write_data(0x98);

write_data(0x06);

write_data(0x04);

write_data(0x01);

write_command(0x08); //Output SDA

write_data(0x10);

write_command(0x20);//set DE/VSYNC mode

write_data(0x00);

I changed it as below to use it 469 for STM32.

uint8_t p1PageChange[] = {0xFF, 0x98, 0x06, 0x04, 0x01}; /* page1 */

HAL_DSI_LongWrite(&hdsi, LCM_ID_ILI9806E, DSI_DCS_LONG_PKT_WRITE, 5, 0xFF, p1PageChange);

HAL_DSI_ShortWrite(&hdsi, LCM_ID_ILI9806E, DSI_DCS_SHORT_PKT_WRITE_P1, 0x08, 0x10);

HAL_DSI_ShortWrite(&hdsi, LCM_ID_ILI9806E, DSI_DCS_SHORT_PKT_WRITE_P1, 0x20, 0x01);

It's not working at all to make these changes and initialize them.

I want to ask if the code I changed is wrong.

5 REPLIES 5
MKris.5
Associate II

Hi @PKunK.1 (Customer)​ ,

Can you please share me the ILI9806E code for initializing the ILI9806E module.

I can't change the LCD orientation . Currently set it as 480p width and 800p height. i wanna change it to 800 width and 480 height.

Thanks,

meimurgan

DVacc.1
Associate II

Hi MKris.5, have you found a correct init procedure to initialize ILI9806E?

Thanks

Dan

So this doesn't turn into a blind leading the blind exercise, perhaps we can cite relevant documents, and where various code was lifted from? Implementation details so it's not a crystal ball analysis of scant information.

The Model of STM32 involved.

The Data Sheet for the ILI9806E

The Data Sheet for the Panel being driven

The timing expectation, etc

The PLL, LTDC and DSI settings.

The DSI on the STM32 side need enough bandwidth to mean and/or exceed the delivery/production rate of the LTDC

The expectations on the ILI9606E vs Display

Perhaps confirm connectivity via changing register(s) that alter how you see the screen/display. Perhaps Invert/Flip type things which might be most obvious.

write_command(0x20);//set DE/VSYNC mode

write_data(0x00);

 

HAL_DSI_ShortWrite(&hdsi, LCM_ID_ILI9806E, DSI_DCS_SHORT_PKT_WRITE_P1, 0x20, 0x01);

writing different values?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
DVacc.1
Associate II

Thanks for your help!

I'm using the configuration in the ioc file attached.

the display remains black, only the te pin goes high after the relative command (0x35, 0x00).

for example the command 0x23 (all pixel on) has no effect.

Thanks

Dan

Hi Dan

Were you able to get this working?

I am having the same issues you had at the time of your post.

My project has this display and a STM32 MCU.

If you got your project working, do you mind sharing your IOC file and display configuration.

Thanks

Gustavo