Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADC_DMA & HARDWARE_SPI_DMA #76

Open
MaurinElectroTextile opened this issue May 15, 2021 · 0 comments
Open

ADC_DMA & HARDWARE_SPI_DMA #76

MaurinElectroTextile opened this issue May 15, 2021 · 0 comments

Comments

@MaurinElectroTextile
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant