Content originally posted in LPCWare by DT1 on Fri Mar 21 09:27:44 MST 2014
Just to be clear, like rocketdawg said :
Quote:
you have an external ADC device connected to the uC via SPI.
you want a periodic sample based upon a timer.
The DMA is between a peripheral (SPI) and RAM
But, I want it fully automatic. When I start the trigger (configured to reset on matching interrupt and to continue), I want it to periodically acquire all the samples from the SSP without any interrupts, except the last one indicating that DMA is complete.
The more I try and read, the more it feels like I'll need to implement the timer ISR and to execute a DMA enable at each interrupt, but ideally, that's not what I want.
Is it possible?
PS: the reason I want it fully automatic is because my sampling rate is quite high (500k samples per sec (12bits, but considered 16 for the SPI), SPI SCLK at 10MHz. So that leaves me ~400ns to do stuff in between samples, which is not that big...)