Skip to main content
Bogdan
Senior
December 29, 2017
Question

SPI receive data from external ADC on STM32F4

  • December 29, 2017
  • 1 reply
  • 501 views
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?

    This topic has been closed for replies.

    1 reply

    Jan Waclawek
    Visitor II
    December 29, 2017
    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