Skip to main content
Jean Paul Talledo Vilela
Associate II
November 6, 2017
Question

SPI/DMA Setup for Burst SPI reads

  • November 6, 2017
  • 5 replies
  • 1947 views
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
This topic has been closed for replies.

5 replies

marcosolano9
Visitor II
December 4, 2018

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

waclawek.jan
Super User
December 4, 2018

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

JW

marcosolano9
Visitor II
December 4, 2018

mine was a sarcastic question ... thanks

Chopra.Deepak
Associate II
July 26, 2019

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
Visitor II
July 26, 2019

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
June 17, 2020

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