ADC icon indicating copy to clipboard operation
ADC copied to clipboard

ADC_DMA & HARDWARE_SPI_DMA

Open MaurinElectroTextile opened this issue 4 years ago • 0 comments

Hello, I'm using your ADC library with Teensy 4.0 It is working like a charm, thanks for sharing such good work ;-) I'm already using your DUAL_ADCS technic in order to scan a 16x16 matrix of analog sensors. But because I want to optimize the CPU consumption I'm wandering if I can implement your ADC_DMA ping-pong solution: ADC/examples/adc_dma/adc_dma.ino. The tricky point is that I'm using shift registers so I need to send commands over the hardware SPI alternatively with the analog readings. So my question is: Could it be possible to use the DMA for ADC readings as well as the hardware SPI? The code I'm doing so far : https://github.com/eTextile/Synth/blob/master/Firmware/main/scan.cpp Thanks a lot for your help

MaurinElectroTextile avatar May 15 '21 18:05 MaurinElectroTextile