Skip to main content
Ljunh.1
Associate II
February 5, 2021
Solved

STM32F767 3wire(9ibt) SPI 9BIT DATA SIZE problem

I'm currently using a stm32f767 board and I'm going to try lcd this time.

I need to use spi 9bit to write my lcd, but I set the data size to 9bit in the settings window.

I want to implement it as ST7701.

Below is the mode and code I set.

​

Please check if there is no problem.

​

0693W000007E2V2QAK.jpg​

​Send D/C bits to the first bit together.

​

0693W000007E2SdQAK.jpg​

I set it up like this.

​

0693W000007E2V7QAK.jpgRESET CS pins, 8-bit data, TxData = cmd | 0x100 and send to HAL_SPI_Transmit_DMA.

​

​CS pin SET check is done like this.

0693W000007E2W0QAK.jpg 

0693W000007E2VHQA0.jpg​

​Is this the right way to do a 9-bit transmission?

This topic has been closed for replies.
Ljunh.1
Ljunh.1Best answer
Associate II
February 16, 2021

I just solved it with gpio instead of using spi.

5 replies

waclawek.jan
Super User
February 5, 2021

And what do you see on the SPI pins?

JW

Ljunh.1
Ljunh.1AuthorBest answer
Associate II
February 16, 2021

I just solved it with gpio instead of using spi.

KAgga.1
Associate III
August 3, 2023

Hello @Ljunh.1 ,
I'm also facing an issue while interfacing ST7701s RGB+SPI(9-Bit) based display.
Could you help by sharing the configuration or demo project.

Regards,
Keshav Aggarwal

Msolinas
Senior
August 10, 2023

hi Ljunh.1, I waste my time to start ST7701. after 4 days passed to check and recheck the code. I'm using stm32h7 and GPIO for SPI9bit. I attached my code, can you say me whats wrong?! Is RGB DE mode thanks..