2018-12-07 01:28 AM
I'm working on STM32F107 microcontroller standard library and interfacing external ADC through SPI.
In SPI configuration , there are two data size, 8 bit and 16 bit as in below lines -
#define SPI_DataSize_16b ((uint16_t)0x0800)
#define SPI_DataSize_8b ((uint16_t)0x0000)
#define IS_SPI_DATASIZE(DATASIZE) (((DATASIZE) == SPI_DataSize_16b) || \
((DATASIZE) == SPI_DataSize_8b))
So how can I configure 24 data size?
please share the code
2018-12-07 01:48 AM
You can not. Either do 3 byte or one half-woard and one byte transaction. You couls also set up a DMA transfer of 3 bytes.