cancel
Showing results for 
Search instead for 
Did you mean: 

ST7735S display not working

Mathan Raja
Associate III

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

6 REPLIES 6
TDK
Guru

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.

 

If you feel a post has answered your question, please click "Accept as Solution".

Full view of CS pin & without RS toggle

MathanRaja_0-1723559014293.pngMathanRaja_1-1723559053254.png

 

> 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

 

If you feel a post has answered your question, please click "Accept as Solution".

To identify the correct data transfer I made the CS pin high and Low. I will check the RS signals (Why it is toggling?). then I will come back to you. 

Mathan Raja
Associate III

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

Hi,

ST7735_Init(0);

fillScreen(BLACK);

testAll()

while running testAll(). I got below image

;Image.png

Thanks

Mathan