This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Using external SPI ADC on nRF5340

Hi, 

I need close to 1Msps rates for my application and am planning on using a ADS7887 SPI ADC from TI.  My question is on how to drive the SPIM and if an example exists to do this.

These SPI ADCs start the 16 bit collection on a lower going chip select.  I assume that the way to collect data is to configure EasyDMA to collect two bytes and to have a timer drive the SPI task at a rate of approx 1Msps?  So I would have to collect to start the SPI task, collect two bytes, restart the tast etc.

Or is there some way to configure the SPIM for this specific purpose where the chip select could be driven automatically so I can simply say collect 10K samples and the processor would handle the SPI CS signaling? 

Thanks

Related