Slide 1 Slide 2 Slide 3 Slide 4 Slide 5 Slide 6 Slide 7 Slide 8 Slide 9 Slide 10 Slide 11 Slide 12 Slide 13 Slide 14 Product List
ADC-Slide10

Here is another operation example; using the DMA together with the AD converter in Scan Mode. In this case the CPU starts the DMA and sets up the AD converter. The AD converter is set to Scan Mode, so each time a channel has been converted an interrupt is generated triggering the DMA. The DMA reads the value from the result register, puts it into RAM and automatically increments the destination address. The next channel is converted and again the DMA transfers the waiting result into RAM. Via this solution it is possible to implement a very fast scan mode without any usage of the CPU core; the CPU core can then handle other tasks during this time instead. Once the whole scan of several channels is complete, the DMA generates an interrupt back to the CPU signaling that the data is ready and the CPU can read the data from RAM.

PTM Published on: 2012-04-11