9 bit SPI for TFT
Hi, I have a TFT screen that is using 3-wire 9-bit SPI (DC bit as 9th bit) has anyone got and experience or examples of this with HAL? I think I have it explained below, the problem is when I test on the oscilloscope the SPI data is reversed as MSB is always sent 1st...
STM32 SPI - 16 Bit mode
Command bit
00000000 11111111
<<7
= 01111111 11000000 (9 bit command bit with "0" DC bit)
Data bit
00000000 11111111
<<7 | (1 << 8
= 11111111 11000000 (9 bit data bit with "1" DC bit)
HAL SPI Data sent MSB on oscilloscope (so reversed)
= 00000011 11111110 (9 bit command bit)
= 00000011 11111111 (9 bit data bit)
