0

[Help] QT PY SAMD21 ADC Interrupt Configuration
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

[Help] QT PY SAMD21 ADC Interrupt Configuration

by aconbere on Fri Mar 05, 2021 2:30 pm

I've been learning to program the SAMD21 via the qt-py. While I've had no problem getting the ADC running and checking it synchronously, when I tried to enable interrupts my interrupt handler isn't being called.

You can find my minimal test case here. My assumption is that "I'm doing it wrong". But my timer interrupt handler works great and after reading and rereading the datasheet I'm at a loss.

Hoping someone here could point out where I've gone wrong. Thanks!

Helpful Quick Links:


aconbere
 
Posts: 3
Joined: Sun Jul 30, 2017 11:27 am

Re: [Help] QT PY SAMD21 ADC Interrupt Configuration

by mckenney on Fri Mar 12, 2021 10:35 pm

Code: Select all | TOGGLE FULL SIZE
  ADC->INTENSET.bit.RESRDY == 1;

Typo Alert: I expect you meant:
Code: Select all | TOGGLE FULL SIZE
  ADC->INTENSET.bit.RESRDY = 1;

mckenney
 
Posts: 19
Joined: Sun Sep 30, 2018 11:09 pm

Please be positive and constructive with your questions and comments.