Skip to main content
Visitor II
August 13, 2024
Question

ST7735S display not working

  • August 13, 2024
  • 2 replies
  • 2040 views

Hi,

I am using the STM32H563 and WF18GTLAADNN0 display with SPI for interfacing and the ST7735 library from Controllerstech. However, the application is not functioning.

 

Could you confirm if any driver initialization steps have been omitted?

 

Hardware Circuit: Please note that the VDD_MCU for the circuit below is 3.3V.

MathanRaja_0-1723549002360.png

 

To verify SPI communication:

I am using a 3-wire SPI setup.

 

MathanRaja_1-1723549002370.png

 

MathanRaja_2-1723549002374.png

 

 

MathanRaja_3-1723549002381.png

 

Connection:

LCD_SDA = SPI4_MOSI

LCD_SCL = SPI4_SCK

LCD_NCS, LCD_RS, LCD_Reset = GPIO_OUTPUT

 

I am experiencing significant noise, making it difficult to read data on the SDA line. While executing the write command, the CS pin goes low.

 

MathanRaja_4-1723549002385.png

 

To identify the data value, I toggled the CS pin during data transfer.

MathanRaja_5-1723549002388.png

 

When I sent 0x75, I received the same value in the waveform.

MathanRaja_6-1723549002390.png

 

 

MathanRaja_7-1723549002392.png

 

thanks

Mathan

    This topic has been closed for replies.

    2 replies

    Super User
    August 13, 2024

    Why is RS toggling? Perhaps it's floating, or perhaps it's not connected to what you think it is. In any case, it shouldn't be toggling.

    I don't see edges on NCS around your command. NCS should be low before the command and high after. Zoom out enough to see them and ensure they're valid.

     

    Visitor II
    August 13, 2024

    Full view of CS pin & without RS toggle

    MathanRaja_0-1723559014293.pngMathanRaja_1-1723559053254.png

     

    Super User
    August 13, 2024

    > Full view of CS pin & without RS toggle

    RS is still toggling. CS is not low during the transaction. Those are both issues. Or am I missing something here?

    TDK_0-1723561647408.png

     

    Visitor II
    August 22, 2024

    Hi, 

    Here I attached the waveform after fixing the RS toggle issue. still, the LCD is not working.

    ST7735_WriteCommand(0x75);
    
    ST7735_WriteData(&dummy, sizeof(dummy));
    
    ST7735_WriteCommand(0x97);

    waveform for the above code

    MathanRaja_4-1724314226132.png

    Thanks

    Mathan

    Visitor II
    August 22, 2024

    Hi,

    ST7735_Init(0);

    fillScreen(BLACK);

    testAll()

    while running testAll(). I got below image

    ;Image.png

    Thanks

    Mathan