cancel
Showing results for 
Search instead for 
Did you mean: 

SPI receive data from external ADC on STM32F4

Bogdan
Senior
Posted on December 29, 2017 at 22:50

Hello,

i am working on a design which uses a stm32f427 device, and 3 external adc chips.

The ADC chips have 3 pins, SDO, SCK and CS.

The SDO,SCK wil be shared from the STM32F4 with all 3 chips,  the 3 chip select signals will be managed independent by separate gpio port.

But i was wondering, i am quessing my SPI should be configured as SPI_Direction_1Line_Rx ?

When pooling down the selected CS device, this starts to send data 

How is the generation of the clock SCK managed?

1 REPLY 1
Jan Waclawek
Senior II
Posted on December 29, 2017 at 23:22

In this mode clock starts as soon as SPI is enabled and stops only when SPI is disabled.

It's easier to use normal 2-line mode where clock is issued when data are transmitted, you don't need to assign MOSI (Tx) pin at the GPIO.

JW