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

how to use esp32s2' adc to sample from 2 channel with different frequency? (IDFGH-12676) #13667

Open
3 tasks done
Jeeeeeiel opened this issue Apr 22, 2024 · 1 comment
Open
3 tasks done
Labels
Status: Opened Issue is new

Comments

@Jeeeeeiel
Copy link

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

hello everyone.I'm now using idf5.1 in a project to sample two input voltages through adc continuous mode.And the ESP-IDF Programming Guidesays one adc unit can only run in one mode at a time, in same sample frequency.
But!!!!! what i need is to sample channel0 quickly and sample channel1 slowly.So how can i do this with same adc uint?Thx a lot.

mcu: esp32s2
framework: idf5.1
adc unit: 1
adc channel: 0, 1

@espressif-bot espressif-bot added the Status: Opened Issue is new label Apr 22, 2024
@github-actions github-actions bot changed the title how to use esp32s2' adc to sample from 2 channel with different frequency? how to use esp32s2' adc to sample from 2 channel with different frequency? (IDFGH-12676) Apr 22, 2024
@Jeeeeeiel
Copy link
Author

Jeeeeeiel commented Apr 22, 2024

one solution: stop adc continuous mode and read analog value from channel0, then start adc continuous mode to sample from channel1 alternately?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Opened Issue is new
Projects
None yet
Development

No branches or pull requests

2 participants