32-bit ARM-Based microcontroller SAM D21E / SAM D21G /SAM D21J

I have a Seeeduino XIAO PDF to schematic which uses a ATSAMD21G18-QFN48 chip. Pin D1 on the Seeeduino is pin 9 on the chip; which is labeled as PA4/EIC/REF/AIN4/SCOM0PAD0/TC0.

screenshot with highlighted pin in question

What would the REF pin be used for; and how would the pin be addressed in the code?

Based on this post is sound like it is ADC related.

There is no indication about this on the https://wiki.seeedstudio.com/Seeeduino-XIAO/ website. Only this image: Seeeduino XIAO pin layout


1 Answer 1


PA04 pin can be a normal GPIO or a voltage reference pin (similar to VDDANA). So, the ADC input will be compared to this VREF pin in the application if needed. If you have configured it as GPIO, then it will behave as a normal IO pin. It depends on how you configure it. enter image description here enter image description here enter image description here


Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.