Project feasible (DMA-I2S-SPI-SDIO)?
Hi,
I was wondering if I can get some feedback on the following project, mainly if the requirements I have are feasible?
I was thinking on using an STM32F4 or STM32F7.
The project consist of the following parts:
- An external DAC that is controlled through I2S by the MCU. Data will be read from the memory of the MCU and played by the DAC. The sample rate is 48 kHz, 32 or 24 bit. DMA will be used to send data to the DAC through the I2S interface.
- Concurrently, an external ADC will be read out by the MCU through SPI (also using DMA). The ADC will be a 24 bit ADC with 8 channels, read out at a sample rate of 16 kHz. 400 ms of data will be gathered at a time, resulting in `8 ch * 32 bit (I assume the DMA will use 32 bit instead of 24 bit?) * 16000 samples / sec * 400 ms` = 1638 kbit. The datarate will thus be 4096 kbit/s. There are several options to where the data will could be written:
- Data written to external memory. Possibly an SD card with SDIO. Could this be achieved through DMA (adc--spi over dma-->mcu--sdio over dma-->SD card)?
- Data written to a large, internal RAM buffer. This RAM buffer will be 1638kb = ~205kB.
- Data written to another external controller through SPI, similar to 2a.
I am not looking for an implementation, just a feel if this is possible to create (seeing the 'high' data/sample rates) on an STM32F4 or STM32F7, since I don't have experience with DMA.
Thanks!
