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

Frequency controlled conversions #43

Open
pedvide opened this issue Dec 24, 2019 · 1 comment
Open

Frequency controlled conversions #43

pedvide opened this issue Dec 24, 2019 · 1 comment
Assignees

Comments

@pedvide
Copy link
Owner

pedvide commented Dec 24, 2019

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.

@mjs513
Copy link
Collaborator

mjs513 commented Dec 29, 2019

@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.

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

No branches or pull requests

3 participants