Page 1 of 1

ST7789 Initialization problem with PIC32MX270F256D MCU

Posted: Sun Feb 20, 2022 9:08 pm
by Sasi
Hello Ben,

I'd like to ask for a little help.
I tried to install a firmware that uses the ST7789 display on the PIC32MX270F256D MCU.
This code on STM32F446RE run before, the display have worked correctly.

If I use the PIC32, the MCU sends the following command immediately after the SWRESET (01h) and SLPOUT (11h) commands during initialization. For some reason, there is no delay after the first two instructions. There is no time left for the display to process these instructions. The display isn't working.
PIC32MX270F256D_ST7789_Init.jpg
PIC32MX270F256D_ST7789_Init.jpg (23.83 KiB) Viewed 2266 times
For STM32, there is a pause of about 150 ms after the SWRESET instruction and about 500 ms after the SLPOUT instruction when the initialization component macro has run. The display is working.
ST7789_with_PIC32MX270F256D.fcfx
(8.9 KiB) Downloaded 353 times
ST7789_with_STM32F446RE.fcfx
(9.28 KiB) Downloaded 346 times
Thank you in advance for your help.

Best Regards,

Sasi

Re: ST7789 Initialization problem with PIC32MX270F256D MCU

Posted: Tue Feb 22, 2022 4:08 pm
by Sasi
Hello,

The source of the problem is in the "PIC32BIT_CAL_Delay.c" file.
Works fine after the next modification.
PIC32BIT_CAL_Delay_c_repair.jpg
PIC32BIT_CAL_Delay_c_repair.jpg (65.63 KiB) Viewed 2238 times
(Thus, the "DELAY command" will also work if the "delay value" is greater than 127 ms.)
Please fix it.
Best Regards,
Sasi