2021-02-03 05:04 PM
I am working on a test on the stm32f469i_Discovery board.
On the stm32f469i, the MIPI interface operates with the OT8009A LCD.
Instead of OT8009A LCDs, it is planning to connect the stm32f469 with other LCDs.
The LCD control IC uses the ILI9806E while the KD050FWFIA019.
I got the initialization data from LCD provider, and I found out that it's for I2C communication.
I think it's data. I2C communication data needs to be changed to the MIPI protocol.
I don't know how. If anyone can help me, please give me some advice.
Solved! Go to Solution.
2021-02-04 11:17 AM
Use this commands to construct send command and data
// HAL_DSI_LongWrite(&hdsi, 0, DSI_DCS_LONG_PKT_WRITE, 1, Par1, lcdRegData);
HAL_DSI_ShortWrite(&hdsi, 0, DSI_DCS_SHORT_PKT_WRITE_P1, Par1, Par2);
for example send comd 08 and data 0x10
HAL_DSI_ShortWrite(&hdsi, 0, DSI_DCS_SHORT_PKT_WRITE_P1, 0x08, 0x10);
for more data us elong write and array
2021-02-04 09:29 AM
I had looked at using that discovery board to connect and evaluate my target LCD (parallel 16-bit interface). I ended up deciding not to as it would have been extremely unlikely to get it to work due to signal integrity challenges. In fact, I think I found that the pins I needed weren't even pinned out to the expansion header for the board. I had planned to do a PCB that plugged into the header and went to the flex from there. I just ended up laying out a target board with the actual device placed down.
The code you pasted is pretty standard for LCDs and it's most likely SPI not I2C but it depends on what the LCD maker implemented. There is also a power moding sequence you need to go thru with power, reset, etc before you send that sequence of commands to the LCD.
Good luck!
Keith
2021-02-04 11:17 AM
Use this commands to construct send command and data
// HAL_DSI_LongWrite(&hdsi, 0, DSI_DCS_LONG_PKT_WRITE, 1, Par1, lcdRegData);
HAL_DSI_ShortWrite(&hdsi, 0, DSI_DCS_SHORT_PKT_WRITE_P1, Par1, Par2);
for example send comd 08 and data 0x10
HAL_DSI_ShortWrite(&hdsi, 0, DSI_DCS_SHORT_PKT_WRITE_P1, 0x08, 0x10);
for more data us elong write and array
2021-02-07 04:34 PM
2021-02-08 04:19 AM
Ask LCD Provider for how dsi mode your display need. I read your main and you use adaptive command mode, but pdf ILI defines i mean only video modes
for 16 18 and 24 bit stream.
2022-08-04 12:33 AM
I PKunK.1
Have you fuond a solution to your ILI init procedure?
2022-08-05 09:27 AM
Cross linking as retrospective search is worthless..
https://community.st.com/s/question/0D53W00000dzsg3SAA/see-if-the-init-code-conversion-is-correct
2022-08-05 09:30 AM