ADC
ADC copied to clipboard
Frequency controlled conversions
It is possible to trigger ADC conversions at a fixed frequency. Teensy 3.x have the PDB, Teensy 4 has something like that.
The goal is to have frequency controlled conversions for all boards. DMA functionality is discussed in a different issue (#42 ), but it may be related to this at some point.
@pedvide - @KurtE The simple answer is yes if have been following the discussion on the ADC pins thread . Kurt has been working the ADC DMA stuff and I have an interrupt version of the using fixed frequencies.
A brief description of the sketch is on post: https://forum.pjrc.com/threads/58387-Teensy-4-0-which-pins-for-which-ADC?p=224813&viewfull=1#post224813 which I added you too. Think the final sketch which does run with the ADC Lib (tested with Teensy4 branch) is in post: https://forum.pjrc.com/threads/58387-Teensy-4-0-which-pins-for-which-ADC?p=224915&viewfull=1#post224915
Real difference is that is set up to have 2 timers. One is Q4_3 and other is Q4_0 quad timer.