1

How do I trigger automatic conversion on the ADC on the DUE? If this was the uno, I could just do sbi(ADCSRA,ADATE); sbi(ADCSRA,ADSC); but for the due, I seem to have to use adc_configure_trigger(ADC, ADC_TRIG_SW, 0); Though I am not seeing an auto trigger option, only software/external triggers. Will it just know to start conversion once it sees data coming through?

3
  • Adc has register ADC_MR (adc mode register) and also flag FREERUN... Commented Mar 22, 2022 at 20:23
  • so would setting adc_configure_trigger(ADC, ADC_MR, 1); set up automatic trigger? Commented Mar 28, 2022 at 12:08
  • I'm not sure, maybe. Or maybe adc_configure_trigger(ADC, ADC_TRIG_SW, ADC_MR_FREERUN_ON); Commented Mar 28, 2022 at 12:12

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.