I find myself struggling to remember the Analog to Digital converter PIN mappings on the nRF52840.
To help, I created this simple table. This is for the aQFN73 variant, which comes on the Seeed XIAO nRF52840 I use the most.

| ADC | PIN | Name |
| AIN0 | A12 | P0.02 |
| AIN1 | B13 | P0.03 |
| AIN2 | J1 | P0.04 |
| AIN3 | K2 | P0.05 |
| AIN4 | B11 | P0.28 |
| AIN5 | A10 | P0.29 |
| AIN6 | B9 | P0.30 |
| AIN7 | A8 | P0.31 |
You can find all the pin mappings on the Nordic Semiconductors’ website:
https://docs.nordicsemi.com/bundle/ps_nrf52840/page/pin.html
Hopefully this will serve as a useful reference!




Leave a comment