cancel
Showing results for 
Search instead for 
Did you mean: 

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

Ljunh.1
Associate II

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?

1 ACCEPTED SOLUTION

Accepted Solutions

I just solved it with gpio instead of using spi.

View solution in original post

5 REPLIES 5

And what do you see on the SPI pins?

JW

I just solved it with gpio instead of using spi.

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

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.. 

Msolinas
Senior

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..