STM32F070CB 9Bit SPI
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-09-30 2:02 AM
Posted on September 30, 2017 at 11:02
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 #9bit
Labels:
- Labels:
-
LCD-LTDC
-
SPI
-
STM32Cube MCU Packages
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-10-01 9:58 AM
Posted on October 01, 2017 at 18:58
Use functions that write to the SPI data register with 16-bit width, not 8-bit width?
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-12-06 6:02 AM
Posted on December 06, 2017 at 15:02
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