cancel
Showing results for 
Search instead for 
Did you mean: 

SPI Compatible ADC how to configure in Stm32?

MDeva.1
Associate II

Hello,

I have to interface the ADS7046 12-Bit, 3-MSPS, Single-Ended Input, Small-Size, Low-Power SAR ADC. Spi compatible ADC 12 bit resolution and MSPS.

1.How to set its data size in spi configuration?

2.In datasheet they did not give the clock polarity which then I have to set?0693W00000Ho2cAQAR.png2.Its maximum clock is 3MHz how to set ? I have to set less than 3Mhz clock to spi.

3.CS pin is GPIO is set ,in that I have to also manage the clock of GPIO?

4.First two bits is getting zero after that 12 bit is sampled after it get two zero. Then I have shifting the data to remove. the zeros.

2 REPLIES 2
PatrickF
ST Employee

Hi,

please precise which platform (board or STM32 part number) you are using. Then we can dispatch your question to the right topic.

Regards.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

I am working on Nucle-h745ziq board. And stm32cubeide am using. ​I am confused that fsmaple frequency is 3MHz. Spi compatible frequency is maximum 60Mhz.so which frequency I have to configure to spi?