I am using an LPC4333 and am implementing voltage and current monitoring using the built in ADCs. There are 16 different signals to monitor so the inputs pins are multiplexed using 2-way logic to enable me to switch between the two banks of 8 signals.
I would like to call just one function periodically which starts the sampling and fills a structure with the results. A call from a central processor to retrieve the data will then be given the most up to date results.
There is no specific requirment to sample the signals quickly, a few times a second is fine, but the processor has plenty of other thing to do so I want to use interrupt or dma to retrieve the sampled data. However, I am not sure how to implement it. The examples I have found online seem to be for one channel only. Would you recommend I use interrupts or DMA? Any suggestions?
Many thanks, Jonathan