Question
DMA based SPI communication with NSS
Posted on March 06, 2012 at 13:40
Hello,
while studying the STM32F4xx datasheet i found the following passage:25.3.1: ''The NSS signal is driven low when the master starts the communication and is kept low until the SPI is disabled.''This leads me to the conclusion, that it is nearly impossible to use SPI in conjuction with DMA. At least, if you need to deselect a slave-part after each transmitted word/byte. This is the case for my application, where an adc gets read out via SPI. It needs to be deselected and selected to start a new conversion. Does anybody know, how this could be realized with the STM32Fxxx? A pure sw-solution is possible, but it would be great using DMA instead of CPU/IRQ to copy the data into RAM.Thanks. #nss-spi-dma