SAMD21 & SAMD51 pin mux template

Thought this may be useful to those of us developing SAMD based custom boards, I use this to establish a pinout for a new board. Easier than scrolling back and fourth through the datasheet, and it generates #define PIN_XXX, pinMode(PIN_XXX, MODE) and digital/analogWrite(PIN_XXX, val) init code based on the pin setup selected which can be copied and pasted straight into your sketch.
SAMD Pin Mux Template.zip (1.4 MB)

Moved from Introductory Tutorials as this does not meet the requirements for the Introductory Tutorials category.

@mahatmajman ,

Please follow How to submit a tutorial if you wish this topic to be moved back to Introductory Tutorials.

mahatmajman, may be you can explain in more detail what your ZIP contains. Lot of people don't like to download a ZIP.

A link to a google spreadsheet might be a better alternative than a zipped Excel file.

Fair enough, it’s just a .xlsx spreadsheet with all of the SAMD21 and 51 pinmux tables reproduced in a filterable format. You can select input, input pull-up, output or analog output and it will generate the pin setup code for all of your pins. Also included some of the schematic checklist type info that I tend to reference a bit.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.