In this Section

↩ Return Home

↩ Return to Resources

Overview

📄Microchip SAMD Datasheet

See Table 6-1 in the SAMD datasheet linked above for all possible pin configurations on the SAMD51 microcontrollers.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/76c1f389-0fec-4a13-b2b4-38583b551634/Untitled.png

Example

Let's say we want UART hardware-enabled communication but have already used the default Tx and Rx pins on the board for something else.

Table 6-1 can seem daunting at first, so here's an example of how to read it.

Untitled

Checking the datasheet (Table 34-1), we know UART pins need to have PAD[0],PAD[1],PAD[2] listed in the 14th and/or 15th column in Table 6-1. The screenshot above shows two other pins that we should be able to use for UART. Pins #35 and #36 (PA16 and PA17) are on the payload breakout, but we should still be able to use them!

To demonstrate, we'll use a PyCubed board and connect to it over REPL:

Press any key to enter the REPL. Use CTRL-D to reload.
Adafruit CircuitPython x.y.z; PyCubedv02 with samd51j19
>>> import board
>>> import busio
>>> uart = busio.UART(board.SDA2,board.SCL2)
>>>

It works! 🎉 Weird, huh?