In this Section
↩ Return Home
↩ Return to Resources
See Table 6-1 in the SAMD datasheet linked above for all possible pin configurations on the SAMD51 microcontrollers.
Column 6 is the pad name that spans across all the different variations of SAMD51 microcontrollers. These are the pins you can specify using:
import microcontroller pinNum5 = microcontroller.pin.PB04
as opposed to the more-typical "PyCubed" name:
import board pinNum5 = board.AIN7
These are two ways to address the same pin. Use the _________ to see the options.
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.
Checking the datasheet (Table 34-1), we know UART pins need to have PAD,PAD,PAD 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 #17 and #18 (PA08 and PA09) are the default I2C pins on the PyCubed board, but we should still be able to use them!
Note: Table 6-1 shows that we can also use PA08 and PA09 as analog-input pins as well.
To demonstrate, we'll use a PyCubed board and connect to it over REPL: