2017-09-30 02:02 AM
Test Nucleo board,(SPI_FullDuplex_ComPolling)
I tried to modify SPI example code to drive LCD,
But I have no idea how to send 9bit data ,
I found data size setting, SPI_DATASIZE_9BIT?
Clk send 9bit clock, but data all wrong,
How to correctly send data ?
#lcd #stm32 #spi #hal_spi_transmitreceive #9bit2017-10-01 09:58 AM
Use functions that write to the SPI data register with 16-bit width, not 8-bit width?
2017-12-06 06:02 AM
uint16_t TxData;
TxData = 0xFF |0x100;
HAL_SPI_Transmit(&hspi1,(uint8_t*)&TxData,1,0x1000); //Send 0x1FFTxData = 0xFF;
HAL_SPI_Transmit(&hspi1,(uint8_t*)&TxData,1,0x1000); //Send 0x0FF