cancel
Showing results for 
Search instead for 
Did you mean: 

SPI/DMA Setup for Burst SPI reads

Posted on November 06, 2017 at 10:37

Hello

I am interfacing the STM32F407 with the ADE9000 chip that supports burst reads which means, after requesting a data set (write command from STM32F4) I can clock out as many bytes I can, the chip increments the address every 32  clocks.

Can I use DMA with this SPI burst read? can somebody guide me how to setup SPI/DMA for 32 bit data?

#spi #dma
6 REPLIES 6
marcosolano9
Associate II

Hi, do you solved your problem? and how.. i'm intrested.... thanks

32 bits = 2 x 16 bits... What is the problem?

JW

mine was a sarcastic question ... thanks

Chopra.Deepak
Associate II

Hello

are you able to get data of ADE9000 with stm32?because i try many configuration and CPOL = high,CPHA = 2edge (mode3) as per stm32cubemx.if you are able to help me please guide me to communicate with ade9000.i try even many mcu like stm32f030 ,stm32h743 and stm32f429.

marcosolano9
Associate II

little gift for you... this work for me like a charm... (SPL LIBS)

SPI_InitStructure.SPI_CPOL=SPI_CPOL_Low;

SPI_InitStructure.SPI_CPHA=SPI_CPHA_1Edge;

SPI_InitStructure.SPI_Direction=SPI_Direction_2Lines_FullDuplex;

SPI_InitStructure.SPI_Mode=SPI_Mode_Master;

SPI_InitStructure.SPI_DataSize=SPI_DataSize_8b;

SPI_InitStructure.SPI_NSS=SPI_NSS_Soft;

SPI_InitStructure.SPI_BaudRatePrescaler=SPI_BaudRatePrescaler_32; //16=5.25MHz

SPI_InitStructure.SPI_FirstBit=SPI_FirstBit_MSB;

SPI_InitStructure.SPI_CRCPolynomial=7;

SPI_Init(ADE9000_SPI,&SPI_InitStructure);

Woula
Associate II

Hi,

I bought anADE9000 Shield Eval Board. I am trying to interface it with an STM32F429ZI-Disco board. My problem is about data i read through SPI are not as expected according to the register table in the datasheet. I attached my program and my serial port capture. Could you help me please ? 

My SPI Configauration: 

SPI Speed : 10 MHz

SPI Mode 0

CRC Disabled

8 Bit data length

MSB First

Thanks !0693W000001quGXQAY.png