SAMD机器模块的引线¶
将设备功能分配给引脚非常灵活。相同的功能可用于不同的引脚。分配选择的表示由一个表给出,该表是MCU引脚MUX表的一个子集,并且由于可用引脚集的不同而特定于每个板。每个板的表格结构相同,但行集合不同。
Adafruit ItsyBitsy M0 Express引脚分配表¶
Pin |
GPIO |
Pin名称 |
IRQ |
ADC |
Serial |
Serial |
TCC/TC |
TCC/TC |
---|---|---|---|---|---|---|---|---|
0 |
PA11 |
D0 |
11 |
19 |
0/3 |
2/3 |
1/1 |
0/3 |
1 |
PA10 |
D1 |
10 |
18 |
0/2 |
2/2 |
1/0 |
0/2 |
2 |
PA14 |
D2 |
14 |
2/2 |
4/2 |
3/0 |
0/4 |
|
3 |
PA09 |
D3 |
9 |
17 |
0/1 |
2/1 |
0/1 |
1/3 |
4 |
PA08 |
D4 |
16 |
0/0 |
2/0 |
0/0 |
1/2 |
|
5 |
PA15 |
D5 |
15 |
2/3 |
4/3 |
3/1 |
0/5 |
|
7 |
PA21 |
D7 |
5 |
5/3 |
3/3 |
7/1 |
0/7 |
|
9 |
PA07 |
D9 |
7 |
7 |
0/3 |
1/1 |
||
10 |
PA18 |
D10 |
2 |
1/2 |
3/2 |
3/0 |
0/2 |
|
11 |
PA16 |
D11 |
0 |
1/0 |
3/0 |
2/0 |
0/6 |
|
12 |
PA19 |
D12 |
3 |
1/3 |
3/3 |
3/1 |
0/3 |
|
13 |
PA17 |
D13 |
1 |
1/1 |
3/1 |
2/1 |
0/7 |
|
14 |
PA02 |
A0 |
2 |
0 |
||||
15 |
PB08 |
A1 |
8 |
2 |
4/0 |
4/0 |
||
16 |
PB09 |
A2 |
9 |
3 |
4/1 |
4/1 |
||
17 |
PA04 |
A3 |
4 |
4 |
0/0 |
0/0 |
||
18 |
PA05 |
A4 |
5 |
5 |
0/1 |
0/1 |
||
19 |
PB02 |
A5 |
2 |
5/0 |
6/0 |
|||
20 |
PA22 |
SDA |
6 |
3/0 |
5/0 |
4/0 |
0/4 |
|
21 |
PA23 |
SCL |
7 |
3/1 |
5/1 |
4/1 |
0/5 |
|
22 |
PB10 |
MOSI |
10 |
4/2 |
5/0 |
0/4 |
||
23 |
PA12 |
MISO |
12 |
2/0 |
4/0 |
2/0 |
0/6 |
|
24 |
PB11 |
SCK |
11 |
4/3 |
5/1 |
0/5 |
||
25 |
PA00 |
DOTSTAR_CLK |
0 |
1/0 |
2/0 |
|||
26 |
PA01 |
DOTSTAR_DATA |
1 |
1/1 |
2/1 |
|||
27 |
PB22 |
FLASH_MOSI |
6 |
5/2 |
7/0 |
|||
28 |
PB03 |
FLASH_MISO |
3 |
5/1 |
6/1 |
|||
29 |
PB23 |
FLASH_SCK |
7 |
5/3 |
7/1 |
列的说明:
Pin-如果Pin为数字,则
machine.Pin(n)
处预期的数字。这不是GPIO编号,而是板特定定义文件中给出的板引脚编号。GPIO - GPIO-GPIO编号。
Pin Name-作为
machine.Pin("name")
参数的Pin的名称。IRQ - 分配给该GPIO的IRQ编号,由
Pin.irq()
. When 内部使用。使用Pin.irq()
时,不同引脚必须使用不同的IRQADC - 分配给管脚的ADC通道。使用ADC时,不同引脚不得使用相同的ADC通道。
Serial-两列可选串行信号分配。两者都可以使用。单元格内容为设备#/pad#。焊盘#是该串行设备的相应内部信号。详情如下。
TCC/TC -两列为PWM的TCC模块分配。单元格内容为device#/output#。对于PWM,使用设备0、1和2。TC设备对3/4用于
ticks_us()
。
SAMD21 UART分配¶
必须根据以下规则选择UART设备和信号:
TX信号必须位于焊盘编号为2或0的引脚,如串行设备为0或2的引脚D1。
RX引脚可以分配给其他焊盘之一。
Adafruit ItsyBitsy M0 Express示例:
引脚D0/D1处的uart 0这是RX/TX标记引脚处的默认uart
插脚D12/D10处的uart 1
插脚D0/D1处的uart 2
插脚D11/D13处的uart 3
插脚D2/D5处的uart 4
插脚SCL/SDA处的uart 5
或其他组合。
SAMD21 I2C分配¶
必须根据以下规则选择I2C设备和信号:
SDA信号必须位于焊盘编号为0的引脚处。
SCL信号必须位于焊盘编号为1的引脚处。
Adafruit ItsyBitsy M0 Express示例:
引脚A3/A4处的I2C 0
引脚D11/D13处的I2C 1
引脚D4/D3处的I2C 2
引脚SDA/SCL处的I2C 3这是SDA/SCL标记引脚处的默认I2C设备
插脚A1/A2处的I2C 4
引脚SDA/SCL处的I2C 5,
或其他组合。
SAMD21 SPI分配¶
必须根据以下规则选择I2C设备和信号:
以下焊盘编号对适用于MOSI/SCK:0/1、2/3、3/1和0/3。
MISO信号必须位于焊盘编号与MOSI或SCK不同的引脚处。
Adafruit ItsyBitsy M0 Express示例:
SPI 0和引脚 D0/D4/D1
SPI 1和引脚 D11/D12/D13
SPI 2 和引脚 D0/D4/D1
SPI 3和引脚D11/D12/D13
引脚MOSI/MISO/SCK处的SPI 4这是MOSI/MSO/SCK标记引脚处的默认SPI设备。
或其他组合。
SAMD21 PWM分配¶
TCC/TC设备编号0、1和2可用于PWM。设备0有四个通道,设备1和2有两个通道。因此总共可以使用3个不同的PWM频率和8个不同的占空比值。
Adafruit ItsyBitsy M0 Express板的DAC输出在引脚A0处可用。
Adafruit ItsyBitsy M4 Express引脚分配表¶
Pin |
GPIO |
Pin名称 |
IRQ |
ADC |
ADC |
Serial |
Serial |
TC |
PWM |
PWM |
---|---|---|---|---|---|---|---|---|---|---|
2 |
PA02 |
A0 |
2 |
0 |
||||||
5 |
PA05 |
A1 |
5 |
5 |
0/1 |
0/1 |
||||
40 |
PB08 |
A2 |
8 |
2 |
0 |
4/0 |
4/0 |
|||
41 |
PB09 |
A3 |
9 |
3 |
1 |
4/1 |
4/1 |
|||
4 |
PA04 |
A4 |
4 |
4 |
0/0 |
0/0 |
||||
6 |
PA06 |
A5 |
6 |
6 |
0/2 |
1/0 |
||||
16 |
PA16 |
D0 |
0 |
1/0 |
3/1 |
2/0 |
1/0 |
0/4 |
||
17 |
PA17 |
D1 |
1 |
1/1 |
3/0 |
2/1 |
1/1 |
0/5 |
||
7 |
PA07 |
D2 |
7 |
7 |
0/3 |
1/1 |
||||
54 |
PB22 |
D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 |
0/7 |
1/3 |
||
12 |
PA12 |
SDA |
12 |
2/0 |
4/1 |
2/0 |
0/6 |
1/2 |
||
30 |
PA30 |
SWCLK |
14 |
7/2 |
1/2 |
6/0 |
2/0 |
|||
31 |
PA31 |
SWDIO |
15 |
7/3 |
1/3 |
6/1 |
2/1 |
|||
24 |
PA24 |
USB_DM |
8 |
3/2 |
5/2 |
5/0 |
2/2 |
|||
25 |
PA25 |
USB_DP |
9 |
3/3 |
5/3 |
5/1 |
||||
3 |
PA03 |
3 |
10 |
|||||||
27 |
PA27 |
11 |
列的说明:
Pin - 如果Pin为数字,则
machine.Pin(n)
处预期的数字。这不是GPIO编号,而是板特定定义文件中给出的板引脚编号。GPIO -GPIO编号。
Pin名称机器需要的参数Pin的名称。
machine.Pin("name")
.IRQ - 分配给该GPIO的IRQ编号,由
Pin.irq()
内部使用。使用Pin.irq()
时,不同引脚必须使用不同的IRQADC - 分配给引脚的ADC0/1通道。使用ADC时,不同引脚不得使用相同的ADC设备和通道。
Serial - 两列可选串行信号分配。两者都可以使用。单元格内容为设备#/pad#。焊盘#是该串行设备的相应内部信号。详情如下。
TC - 这些设备当前未分配给Pin。TC设备对0/1用于
ticks_us()
。PWM -两列为PWM的TCC模块分配单元内容为设备#/输出#。详情如下。
SAMD51 UART分配¶
必须根据以下规则选择UART设备和信号:
TX信号必须位于焊盘编号为0的引脚处,如具有串行设备3的引脚D1。
RX引脚可以分配给其他焊盘之一。
Adafruit ItsyBitsy 4 Express示例:
插脚A4/A1处的uart 0
引脚D1/D0处的uart 1这是RX/TX标记引脚处的默认uart
引脚SCL/SDA处的uart 2这是SDA/SCL标记引脚处的默认I2C设备
插脚D0/D1处的uart 3
引脚SDA/SCL处的uart 4
插脚D12/D13处的uart 5
或其他组合。
SAMD51 I2C分配¶
必须根据以下规则选择I2C设备和信号:
SDA信号必须位于焊盘编号为0的引脚处。
SCL信号必须位于焊盘编号为1的引脚处。
Adafruit ItsyBitsy M0 Express示例:
插脚A3/A4处的I2C 0
引脚D0/D1处的I2C 1
引脚SDA/SCL处的I2C 2
引脚D1/D0处的I2C 3
引脚A2/A3处的I2C 4
引脚D12/D13处的I2C 5
或其他组合。
SAMD51 SPI分配¶
必须根据以下规则选择SPI设备和信号:
以下焊盘编号对适用于MOSI/SCK:0/1和3/1。
MISO信号必须位于焊盘编号与MOSI或SCK不同的引脚处。
Adafruit ItsyBitsy M0 Express示例:
引脚MOSI/MISO/SCK处的SPI 1这是MOSI/MSO/SCK标记引脚处的默认SPI设备。
SPI 3和引脚D13/D11/D12
SPI 5和引脚D12/D3/D13
或其他组合。
SAMD51 PWM分配¶
TCC/PWM设备编号0至4可用于PWM。设备0有六个通道,设备1有四个通道,装置2有三个通道,而装置3和4有两个通道。因此,总共可以使用多达5个不同的PWM频率,以及多达17个不同的占空比值。请注意,这些数字并不适用于每个电路板。
Adafruit ItsyBitsy M4 Express板的DAC输出在引脚A0和A1处可用。
Adafruit Feather M4 Express引脚分配表¶
Pin |
GPIO |
Pin名称 |
IRQ |
ADC |
ADC |
Serial |
Serial |
TC |
PWM |
PWM |
---|---|---|---|---|---|---|---|---|---|---|
2 |
PA02 |
A0 |
2 |
0 |
||||||
5 |
PA05 |
A1 |
5 |
5 |
0/1 |
0/1 |
||||
40 |
PB08 |
A2 |
8 |
2 |
0 |
4/0 |
4/0 |
|||
41 |
PB09 |
A3 |
9 |
3 |
1 |
4/1 |
4/1 |
|||
4 |
PA04 |
A4 |
4 |
4 |
0/0 |
0/0 |
||||
38 |
PB06 |
A5 |
6 |
8 |
||||||
49 |
PB17 |
D0 |
1 |
5/1 |
6/1 |
3/1 |
0/5 |
|||
48 |
PB16 |
D1 |
0 |
5/0 |
6/0 |
3/0 |
0/4 |
|||
14 |
PA14 |
D4 |
14 |
2/2 |
4/2 |
3/0 |
2/0 |
1/2 |
||
16 |
PA16 |
D5 |
0 |
1/0 |
3/1 |
2/0 |
1/0 |
0/4 |
||
18 |
PA18 |
D6 |
2 |
1/2 |
3/2 |
3/0 |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USB_DM |
8 |
3/2 |
5/2 |
5/0 |
2/2 |
|||
25 |
PA25 |
USB_DP |
9 |
3/3 |
5/3 |
5/1 |
||||
33 |
PB01 |
VDIV |
1 |
13 |
5/3 |
7/1 |
||||
0 |
PA00 |
0 |
1/0 |
2/0 |
||||||
1 |
PA01 |
1 |
1/1 |
2/1 |
||||||
6 |
PA06 |
6 |
6 |
0/2 |
1/0 |
|||||
7 |
PA07 |
7 |
7 |
0/3 |
1/1 |
|||||
15 |
PA15 |
15 |
2/3 |
4/3 |
3/1 |
2/1 |
1/3 |
|||
27 |
PA27 |
11 |
||||||||
32 |
PB00 |
9 |
12 |
5/2 |
7/0 |
|||||
34 |
PB02 |
2 |
14 |
5/0 |
6/0 |
2/2 |
||||
36 |
PB04 |
4 |
6 |
|||||||
37 |
PB05 |
5 |
7 |
|||||||
39 |
PB07 |
7 |
9 |
|||||||
44 |
PB12 |
12 |
4/0 |
4/0 |
3/0 |
0/0 |
||||
45 |
PB13 |
13 |
4/1 |
4/1 |
3/1 |
0/1 |
||||
46 |
PB14 |
14 |
4/2 |
5/0 |
4/0 |
0/2 |
||||
47 |
PB15 |
15 |
4/3 |
5/1 |
4/1 |
0/3 |
||||
62 |
PB30 |
14 |
7/0 |
5/1 |
0/0 |
4/0 |
0/6 |
|||
63 |
PB31 |
15 |
7/1 |
5/0 |
0/1 |
4/1 |
0/7 |
有关表列的定义,请参阅表中Adafruit ItsyBitsy M4 ExpressAdafruit ItsyBitsy M4 Express引脚分配表的说明
板上的默认设备为:
引脚D0/D1处的UART 5,标记为RX/TX
引脚PA12/PA13处的I2C 2,标记为SDA/SCL
引脚PA23/PA22/PA17处的SPI 1,标记为MOSI、MISO和SCK
引脚PA02和PA05上的DAC输出,标记为A0和A1
SEEED XIAO引脚分配表¶
Pin |
GPIO |
Pin名称 |
IRQ |
ADC |
Serial |
Serial |
TCC/TC |
TCC/TC |
---|---|---|---|---|---|---|---|---|
2 |
PA02 |
A0_D0 |
2 |
0 |
||||
4 |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|
PA20 |
4 |
5/2 |
3/2 |
7/0 |
0/4 |
||
21 |
PA21 |
5 |
5/3 |
3/3 |
7/1 |
0/7 |
||
22 |
PA22 |
6 |
3/0 |
5/0 |
4/0 |
0/4 |
||
23 |
PA23 |
7 |
3/1 |
5/1 |
4/1 |
0/5 |
||
27 |
PA27 |
15 |
||||||
28 |
PA28 |
8 |
||||||
34 |
PB02 |
2 |
10 |
5/0 |
6/0 |
|||
35 |
PB03 |
3 |
11 |
5/1 |
6/1 |
|||
42 |
PB10 |
10 |
4/2 |
5/0 |
0/4 |
|||
43 |
PB11 |
11 |
4/3 |
5/1 |
0/5 |
|||
54 |
PB22 |
6 |
5/2 |
7/0 |
||||
55 |
PB23 |
7 |
5/3 |
7/1 |
有关表格列的定义,请参阅Adafruit ItsyBitsy M0 Express Adafruit ItsyBitsy M0 Express引脚分配表表格中的说明。
板上的默认设备为:
引脚PB08/PB09处的UART 4,标记为A6_D6/A7_D7
引脚PA08/PA09处的I2C 2,标记为A4_D4/A5_D5
引脚PA06/PA05/PA07处的SPI 0,标记为A10_D10、A9_D9和A8_D8
引脚PA02上的DAC输出,标记为A0_D0
Adafruit Feather M0 Express引脚分配表¶
Pin |
GPIO |
Pin名称 |
IRQ |
ADC |
Serial |
Serial |
TCC/TC |
TCC/TC |
---|---|---|---|---|---|---|---|---|
2 |
PA02 |
A0 |
2 |
0 |
||||
40 |
PB08 |
A1 |
8 |
2 |
4/0 |
4/0 |
||
41 |
PB09 |
A2 |
9 |
3 |
4/1 |
4/1 |
||
4 |
PA04 |
A3 |
4 |
4 |
0/0 |
0/0 |
||
5 |
PA05 |
A4 |
5 |
5 |
0/1 |
0/1 |
||
34 |
PB02 |
A5 |
2 |
10 |
5/0 |
6/0 |
||
11 |
PA11 |
D0 |
11 |
19 |
0/3 |
2/3 |
1/1 |
0/3 |
10 |
PA10 |
D1 |
10 |
18 |
0/2 |
2/2 |
1/0 |
0/2 |
14 |
PA14 |
D2 |
14 |
2/2 |
4/2 |
3/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P |
13 |
3/3 |
5/3 |
5/1 |
1/3 |
|
0 |
PA00 |
0 |
1/0 |
2/0 |
||||
1 |
PA01 |
1 |
1/1 |
2/1 |
||||
3 |
PA03 |
3 |
1 |
|||||
28 |
PA28 |
8 |
有关表格列的定义,请参阅Adafruit ItsyBitsy M0 Express Adafruit ItsyBitsy M0 Express引脚分配表表格中的说明
板上的默认设备为:
引脚PB23/PB22处的UART 5,标记为RX/TX
引脚PA22/PA23处的I2C 3,标记为SDA/SCL
引脚PA10/PA12/PA11处的SPI 4,标记为MOSI、MISO和SCK
引脚PA02上的DAC输出,标记为A0
Adafruit Trinket M0引脚分配表¶
Pin |
GPIO |
Pin名称 |
IRQ |
ADC |
Serial |
Serial |
TCC/TC |
TCC/TC |
---|---|---|---|---|---|---|---|---|
8 |
PA08 |
D0 |
16 |
0/0 |
2/0 |
0/0 |
1/2 |
|
2 |
PA02 |
D1 |
2 |
0 |
||||
9 |
PA09 |
D2 |
9 |
17 |
0/1 |
2/1 |
0/1 |
1/3 |
7 |
PA07 |
D3 |
7 |
7 |
0/3 |
1/1 |
||
6 |
PA06 |
D4 |
6 |
6 |
0/2 |
1/0 |
||
1 |
PA01 |
DOTSTAR_CLK |
1 |
1/1 |
2/1 |
|||
0 |
PA00 |
DOTSTAR_DATA |
0 |
1/0 |
2/0 |
|||
10 |
PA10 |
LED |
10 |
18 |
0/2 |
2/2 |
1/0 |
0/2 |
30 |
PA30 |
SWCLK |
10 |
1/2 |
1/0 |
|||
31 |
PA31 |
SWDIO |
11 |
1/3 |
1/1 |
|||
24 |
PA24 |
USB_DM |
12 |
3/2 |
5/2 |
5/0 |
1/2 |
|
25 |
PA25 |
USB_DP |
13 |
3/3 |
5/3 |
5/1 |
1/3 |
|
3 |
PA03 |
3 |
1 |
|||||
4 |
PA04 |
4 |
4 |
0/0 |
0/0 |
|||
5 |
PA05 |
5 |
5 |
0/1 |
0/1 |
|||
11 |
PA11 |
11 |
19 |
0/3 |
2/3 |
1/1 |
0/3 |
|
14 |
PA14 |
14 |
2/2 |
4/2 |
3/0 |
0/4 |
||
15 |
PA15 |
15 |
2/3 |
4/3 |
3/1 |
0/5 |
||
16 |
PA16 |
0 |
1/0 |
3/0 |
2/0 |
0/6 |
||
17 |
PA17 |
1 |
1/1 |
3/1 |
2/1 |
0/7 |
||
18 |
PA18 |
2 |
1/2 |
3/2 |
3/0 |
0/2 |
||
19 |
PA19 |
3 |
1/3 |
3/3 |
3/1 |
0/3 |
||
22 |
PA22 |
6 |
3/0 |
5/0 |
4/0 |
0/4 |
||
23 |
PA23 |
7 |
3/1 |
5/1 |
4/1 |
0/5 |
||
27 |
PA27 |
15 |
||||||
28 |
PA28 |
8 |
有关表格列的定义,请参阅Adafruit ItsyBitsy M0 ExpressAdafruit ItsyBitsy M0 Express引脚分配表表格中的说明
板上的默认设备为:
引脚PA07/PA06处的UART 0,标记为D3/D4
引脚PA08/PA09处的I2C 2,标记为D0/D2
引脚PA06/PA09/PA08处的SPI 0,标记为D4、D2和D0
引脚PA02上的DAC输出,标记为D1
SAMD21 Xlained PRO引脚分配表¶
Pin |
GPIO |
Pin名称 |
IRQ |
ADC |
Serial |
Serial |
TCC/TC |
TCC/TC |
---|---|---|---|---|---|---|---|---|
32 |
PB00 |
EXT1_PIN3 |
0 |
8 |
5/2 |
7/0 |
||
33 |
PB01 |
EXT1_PIN4 |
1 |
9 |
5/3 |
7/1 |
||
38 |
PB06 |
EXT1_PIN5 |
6 |
14 |
||||
39 |
PB07 |
EXT1_PIN6 |
7 |
15 |
||||
34 |
PB02 |
EXT1_PIN7 |
2 |
10 |
5/0 |
6/0 |
||
35 |
PB03 |
EXT1_PIN8 |
3 |
11 |
5/1 |
6/1 |
||
36 |
PB04 |
EXT1_PIN9 |
4 |
12 |
||||
37 |
PB05 |
EXT1_PIN10 |
5 |
13 |
||||
8 |
PA08 |
EXT1_PIN11 |
16 |
0/0 |
2/0 |
0/0 |
1/2 |
|
9 |
PA09 |
EXT1_PIN12 |
9 |
17 |
0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4 |
3 |
1 |
||||
15 |
PA15 |
EXT3_PIN6 |
15 |
2/3 |
4/3 |
3/1 |
0/5 |
|
12 |
PA12 |
EXT3_PIN7 |
12 |
2/0 |
4/0 |
2/0 |
0/6 |
|
13 |
PA13 |
EXT3_PIN8 |
13 |
2/1 |
4/1 |
2/0 |
0/7 |
|
28 |
PA28 |
EXT3_PIN9 |
8 |
|||||
27 |
PA27 |
EXT3_PIN10 |
15 |
|||||
49 |
PB17 |
EXT3_PIN15 |
1 |
5/1 |
6/1 |
0/5 |
||
54 |
PB22 |
EXT3_PIN16 |
6 |
5/2 |
7/0 |
|||
48 |
PB16 |
EXT3_PIN17 |
9 |
5/0 |
6/0 |
0/4 |
||
55 |
PB23 |
EXT3_PIN18 |
7 |
5/3 |
7/1 |
|||
62 |
PB30 |
LED |
14 |
5/0 |
0/0 |
1/2 |
||
30 |
PA30 |
SWCLK |
10 |
1/2 |
1/0 |
|||
31 |
PA31 |
SWDIO |
11 |
1/3 |
1/1 |
|||
24 |
PA24 |
USB_DM |
12 |
3/2 |
5/2 |
5/0 |
1/2 |
|
25 |
PA25 |
USB_DP |
13 |
3/3 |
5/3 |
5/1 |
1/3 |
|
0 |
PA00 |
0 |
1/0 |
2/0 |
||||
1 |
PA01 |
1 |
1/1 |
2/1 |
||||
14 |
PA14 |
14 |
2/2 |
4/2 |
3/0 |
0/4 |
||
22 |
PA22 |
6 |
3/0 |
5/0 |
4/0 |
0/4 |
||
23 |
PA23 |
7 |
3/1 |
5/1 |
4/1 |
0/5 |
||
63 |
PB31 |
15 |
5/1 |
0/1 |
1/3 |
有关表格列的定义,请参阅Adafruit ItsyBitsy M0 Express Adafruit ItsyBitsy M0 Express引脚分配表表格中的说明。
此板上没有标记默认设备的引脚。DAC输出在引脚PA02上,标记为EXT3_PIN3
Minisam M4引脚分配表¶
Pin |
GPIO |
Pin名称 |
IRQ |
ADC |
ADC |
Serial |
Serial |
TC |
PWM |
PWM |
---|---|---|---|---|---|---|---|---|---|---|
16 |
PA16 |
D0 |
0 |
1/0 |
3/1 |
2/0 |
1/0 |
0/4 |
||
17 |
PA17 |
D1 |
1 |
1/1 |
3/0 |
2/1 |
1/1 |
0/5 |
||
19 |
PA19 |
D3 |
3 |
1/3 |
3/3 |
3/1 |
1/3 |
0/7 |
||
20 |
PA20 |
D4 |
4 |
5/2 |
3/2 |
7/0 |
1/4 |
0/0 |
||
21 |
PA21 |
D5 |
5 |
5/3 |
3/3 |
7/1 |
1/5 |
0/1 |
||
2 |
PA02 |
A0_D9 |
2 |
0 |
||||||
40 |
PB08 |
A1_D10 |
8 |
2 |
0 |
4/0 |
4/0 |
|||
41 |
PB09 |
A2_D11 |
9 |
3 |
1 |
4/1 |
4/1 |
|||
4 |
PA04 |
A3_D12 |
4 |
4 |
0/0 |
0/0 |
||||
5 |
PA05 |
A4_D13 |
5 |
5 |
0/1 |
0/1 |
||||
6 |
PA06 |
A5 |
6 |
6 |
0/2 |
1/0 |
||||
7 |
PA07 |
A6_D2 |
7 |
7 |
0/3 |
1/1 |
||||
3 |
PA03 |
AREF |
3 |
10 |
||||||
0 |
PA00 |
BUTTON |
0 |
1/0 |
2/0 |
|||||
34 |
PB02 |
DOTSTAR_CLK |
2 |
14 |
5/0 |
6/0 |
2/2 |
|||
35 |
PB03 |
DOTSTAR_DATA |
9 |
15 |
5/1 |
6/1 |
||||
15 |
PA15 |
LED |
15 |
2/3 |
4/3 |
3/1 |
2/1 |
1/3 |
||
55 |
PB23 |
MISO |
7 |
1/3 |
5/3 |
7/1 |
||||
54 |
PB22 |
MOSI |
22 |
1/2 |
5/2 |
7/0 |
||||
1 |
PA01 |
SCK |
1 |
1/1 |
2/1 |
|||||
13 |
PA13 |
SCL |
13 |
2/1 |
4/0 |
2/1 |
0/7 |
1/3 |
||
12 |
PA12 |
SDA |
12 |
2/0 |
4/1 |
2/0 |
0/6 |
1/2 |
||
30 |
PA30 |
SWCLK |
14 |
7/2 |
1/2 |
6/0 |
2/0 |
|||
31 |
PA31 |
SWDIO |
15 |
7/3 |
1/3 |
6/1 |
2/1 |
|||
24 |
PA24 |
USB_DM |
8 |
3/2 |
5/2 |
5/0 |
2/2 |
|||
25 |
PA25 |
USB_DP |
9 |
3/3 |
5/3 |
5/1 |
||||
8 |
PA08 |
8 |
2 |
0/0 |
2/1 |
0/0 |
0/0 |
1/4 |
||
9 |
PA09 |
9 |
9 |
3 |
0/1 |
2/0 |
0/1 |
0/1 |
1/5 |
|
10 |
PA10 |
10 |
10 |
0/2 |
2/2 |
1/0 |
0/2 |
1/6 |
||
11 |
PA11 |
11 |
11 |
0/3 |
2/3 |
1/1 |
0/3 |
1/7 |
||
14 |
PA14 |
14 |
2/2 |
4/2 |
3/0 |
2/0 |
1/2 |
|||
18 |
PA18 |
2 |
1/2 |
3/2 |
3/0 |
1/2 |
0/6 |
|||
22 |
PA22 |
6 |
3/0 |
5/1 |
4/0 |
1/6 |
0/2 |
|||
23 |
PA23 |
7 |
3/1 |
5/0 |
4/1 |
1/7 |
0/3 |
|||
27 |
PA27 |
11 |
||||||||
42 |
PB10 |
10 |
4/2 |
5/0 |
0/4 |
1/0 |
||||
43 |
PB11 |
12 |
4/3 |
5/1 |
0/5 |
1/1 |
有关表列的定义,请参阅表中Adafruit ItsyBitsy M4 Express Adafruit ItsyBitsy M4 Express引脚分配表的说明。
板上的默认设备为:
引脚PA16/PA17处的UART 1,标记为D0/D1
引脚PA12/PA13处的I2C 2,标记为SDA/SCL
引脚PB22/PB23/PA01处的SPI 1,标记为MOSI、MISO和SCK
引脚PA02和PA05上的DAC输出,标记为A0_D9和A4_D13
参见WIO端子引脚分配表¶
Pin |
GPIO |
Pin名称 |
IRQ |
ADC |
ADC |
Serial |
Serial |
TC |
PWM |
PWM |
---|---|---|---|---|---|---|---|---|---|---|
33 |
PB01 |
CS |
1 |
13 |
5/3 |
7/1 |
||||
59 |
PB27 |
RX |
13 |
2/1 |
4/0 |
1/3 |
||||
58 |
PB26 |
TX |
12 |
2/0 |
4/1 |
1/2 |
||||
79 |
PC15 |
3V3_ENABLE |
15 |
7/3 |
6/3 |
0/5 |
1/1 |
|||
78 |
PC14 |
5V_ENABLE |
14 |
7/2 |
6/2 |
0/4 |
1/0 |
|||
40 |
PB08 |
A0_D0 |
8 |
2 |
0 |
4/0 |
4/0 |
|||
41 |
PB09 |
A1_D1 |
9 |
3 |
1 |
4/1 |
4/1 |
|||
7 |
PA07 |
A2_D2 |
7 |
7 |
0/3 |
1/1 |
||||
36 |
PB04 |
A3_D3 |
4 |
6 |
||||||
37 |
PB05 |
A4_D4 |
5 |
7 |
||||||
38 |
PB06 |
A5_D5 |
6 |
8 |
||||||
4 |
PA04 |
A6_D6 |
4 |
4 |
0/0 |
0/0 |
||||
39 |
PB07 |
A7_D7 |
7 |
9 |
||||||
6 |
PA06 |
A8_D8 |
6 |
6 |
0/2 |
1/0 |
||||
90 |
PC26 |
BUTTON_1 |
10 |
|||||||
91 |
PC27 |
BUTTON_2 |
11 |
1/0 |
||||||
92 |
PC28 |
BUTTON_3 |
12 |
1/1 |
||||||
107 |
PD11 |
BUZZER |
6 |
7/3 |
6/3 |
0/4 |
||||
47 |
PB15 |
GPCLK0 |
15 |
4/3 |
5/1 |
4/1 |
0/3 |
|||
44 |
PB12 |
GPCLK1 |
12 |
4/0 |
4/0 |
3/0 |
0/0 |
|||
45 |
PB13 |
GPCLK2 |
13 |
4/1 |
4/1 |
3/1 |
0/1 |
|||
48 |
PB16 |
I2C_BCLK |
0 |
5/0 |
6/0 |
3/0 |
0/4 |
|||
20 |
PA20 |
I2S_LRCLK |
4 |
5/2 |
3/2 |
7/0 |
1/4 |
0/0 |
||
21 |
PA21 |
I2S_SDIN |
5 |
5/3 |
3/3 |
7/1 |
1/5 |
0/1 |
||
22 |
PA22 |
I2S_SDOUT |
6 |
3/0 |
5/1 |
4/0 |
1/6 |
0/2 |
||
50 |
PB18 |
LCD_MISO |
2 |
5/2 |
7/2 |
1/0 |
||||
51 |
PB19 |
LCD_MOSI |
3 |
5/3 |
7/3 |
1/1 |
||||
52 |
PB20 |
LCD_SCK |
4 |
3/0 |
7/1 |
1/2 |
||||
53 |
PB21 |
LCD_CS |
5 |
3/1 |
7/0 |
1/3 |
||||
70 |
PC06 |
LCD_D/C |
6 |
6/2 |
||||||
71 |
PC07 |
LCD_RESET |
9 |
6/3 |
||||||
74 |
PC10 |
LCD_XL |
10 |
6/2 |
7/2 |
0/0 |
1/4 |
|||
76 |
PC12 |
LCD_XR |
12 |
7/0 |
6/1 |
0/2 |
1/6 |
|||
77 |
PC13 |
LCD_YD |
13 |
7/1 |
6/0 |
0/3 |
1/7 |
|||
75 |
PC11 |
LCD_YU |
11 |
6/3 |
7/3 |
0/1 |
1/5 |
|||
15 |
PA15 |
LED_BLUE |
15 |
2/3 |
4/3 |
3/1 |
2/1 |
1/3 |
||
69 |
PC05 |
LED_LCD |
5 |
6/1 |
||||||
94 |
PC30 |
MIC |
14 |
12 |
||||||
32 |
PB00 |
MISO |
9 |
12 |
5/2 |
7/0 |
||||
34 |
PB02 |
MOSI |
2 |
14 |
5/0 |
6/0 |
2/2 |
|||
35 |
PB03 |
SCK |
9 |
15 |
5/1 |
6/1 |
||||
12 |
PA12 |
SCL0 |
12 |
2/0 |
4/1 |
2/0 |
0/6 |
1/2 |
||
13 |
PA13 |
SDA0 |
13 |
2/1 |
4/0 |
2/1 |
0/7 |
1/3 |
||
16 |
PA16 |
SCL1 |
0 |
1/0 |
3/1 |
2/0 |
1/0 |
0/4 |
||
17 |
PA17 |
SDA1 |
1 |
1/1 |
3/0 |
2/1 |
1/1 |
0/5 |
||
117 |
PD21 |
SD_DET |
11 |
1/3 |
3/3 |
1/1 |
||||
83 |
PC19 |
SD_CS |
3 |
6/3 |
0/3 |
0/3 |
||||
82 |
PC18 |
SD_MISO |
2 |
6/2 |
0/2 |
0/2 |
||||
80 |
PC16 |
SD_MOSI |
0 |
6/0 |
0/1 |
0/0 |
||||
81 |
PC17 |
SD_SCK |
1 |
6/1 |
0/0 |
0/1 |
||||
30 |
PA30 |
SWCLK |
14 |
7/2 |
1/2 |
6/0 |
2/0 |
|||
31 |
PA31 |
SWDIO |
15 |
7/3 |
1/3 |
6/1 |
2/1 |
|||
108 |
PD12 |
SWITCH_B |
7 |
0/5 |
||||||
116 |
PD20 |
SWITCH_U |
10 |
1/2 |
3/2 |
1/0 |
||||
104 |
PD08 |
SWITCH_X |
3 |
7/0 |
6/1 |
0/1 |
||||
105 |
PD09 |
SWITCH_Y |
4 |
7/1 |
6/0 |
0/2 |
||||
106 |
PD10 |
SWITCH_Z |
5 |
7/2 |
6/2 |
0/3 |
||||
24 |
PA24 |
USB_DM |
8 |
3/2 |
5/2 |
5/0 |
2/2 |
|||
25 |
PA25 |
USB_DP |
9 |
3/3 |
5/3 |
5/1 |
||||
0 |
PA00 |
0 |
1/0 |
2/0 |
||||||
1 |
PA01 |
1 |
1/1 |
2/1 |
||||||
2 |
PA02 |
2 |
0 |
|||||||
3 |
PA03 |
3 |
10 |
|||||||
5 |
PA05 |
5 |
5 |
0/1 |
0/1 |
|||||
8 |
PA08 |
8 |
2 |
0/0 |
2/1 |
0/0 |
0/0 |
1/4 |
||
9 |
PA09 |
9 |
9 |
3 |
0/1 |
2/0 |
0/1 |
0/1 |
1/5 |
|
10 |
PA10 |
10 |
10 |
0/2 |
2/2 |
1/0 |
0/2 |
1/6 |
||
11 |
PA11 |
11 |
11 |
0/3 |
2/3 |
1/1 |
0/3 |
1/7 |
||
14 |
PA14 |
14 |
2/2 |
4/2 |
3/0 |
2/0 |
1/2 |
|||
18 |
PA18 |
2 |
1/2 |
3/2 |
3/0 |
1/2 |
0/6 |
|||
19 |
PA19 |
3 |
1/3 |
3/3 |
3/1 |
1/3 |
0/7 |
|||
23 |
PA23 |
7 |
3/1 |
5/0 |
4/1 |
1/7 |
0/3 |
|||
27 |
PA27 |
11 |
||||||||
42 |
PB10 |
10 |
4/2 |
5/0 |
0/4 |
1/0 |
||||
43 |
PB11 |
12 |
4/3 |
5/1 |
0/5 |
1/1 |
||||
46 |
PB14 |
14 |
4/2 |
5/0 |
4/0 |
0/2 |
||||
49 |
PB17 |
1 |
5/1 |
6/1 |
3/1 |
0/5 |
||||
54 |
PB22 |
22 |
1/2 |
5/2 |
7/0 |
|||||
55 |
PB23 |
7 |
1/3 |
5/3 |
7/1 |
|||||
56 |
PB24 |
8 |
0/0 |
2/1 |
||||||
57 |
PB25 |
9 |
0/1 |
2/0 |
||||||
60 |
PB28 |
14 |
2/2 |
4/2 |
1/4 |
|||||
61 |
PB29 |
15 |
2/3 |
4/3 |
1/5 |
|||||
62 |
PB30 |
14 |
7/0 |
5/1 |
0/0 |
4/0 |
0/6 |
|||
63 |
PB31 |
15 |
7/1 |
5/0 |
0/1 |
4/1 |
0/7 |
|||
64 |
PC00 |
0 |
10 |
|||||||
65 |
PC01 |
1 |
11 |
|||||||
66 |
PC02 |
2 |
4 |
|||||||
67 |
PC03 |
3 |
5 |
|||||||
68 |
PC04 |
4 |
6/0 |
0/0 |
||||||
84 |
PC20 |
4 |
0/4 |
|||||||
85 |
PC21 |
5 |
0/5 |
|||||||
86 |
PC22 |
6 |
1/0 |
3/1 |
0/5 |
|||||
87 |
PC23 |
7 |
1/1 |
3/0 |
0/7 |
|||||
88 |
PC24 |
8 |
0/2 |
2/2 |
||||||
89 |
PC25 |
9 |
0/3 |
2/3 |
||||||
95 |
PC31 |
15 |
13 |
|||||||
96 |
PD00 |
0 |
14 |
|||||||
97 |
PD01 |
1 |
15 |
有关表列的定义,请参阅表中Adafruit ItsyBitsy M4 Express Adafruit ItsyBitsy M4 Express引脚分配表的说明。
默认引脚分配:-引脚PB27和PB26处的UART 2,引脚PA12和PA13处的标记RX和TX-I2C 4,引脚PA16和PA17处的标记SCL0和SDA0-I2C 3,引脚PB00、PB02和PB03处的标记为SCL1和SDA1-SPI 5,引脚MISO、MOSI和SCK
该板似乎没有默认引脚分配。
Sparkfun SAMD51 Thing Plus引脚分配表¶
Pin |
GPIO |
Pin名称 |
IRQ |
ADC |
ADC |
Serial |
Serial |
TC |
PWM |
PWM |
---|---|---|---|---|---|---|---|---|---|---|
2 |
PA02 |
A0 |
2 |
0 |
||||||
40 |
PB08 |
A1 |
8 |
2 |
0 |
4/0 |
4/0 |
|||
41 |
PB09 |
A2 |
9 |
3 |
1 |
4/1 |
4/1 |
|||
4 |
PA04 |
A3 |
4 |
4 |
0/0 |
0/0 |
||||
5 |
PA05 |
A4 |
5 |
5 |
0/1 |
0/1 |
||||
34 |
PB02 |
A5 |
2 |
14 |
5/0 |
6/0 |
2/2 |
|||
13 |
PA13 |
D0 |
13 |
2/1 |
4/0 |
2/1 |
0/7 |
1/3 |
||
12 |
PA12 |
D1 |
12 |
2/0 |
4/1 |
2/0 |
0/6 |
1/2 |
||
6 |
PA06 |
D4 |
6 |
6 |
0/2 |
1/0 |
||||
15 |
PA15 |
D5 |
15 |
2/3 |
4/3 |
3/1 |
2/1 |
1/3 |
||
20 |
PA20 |
D6 |
4 |
5/2 |
3/2 |
7/0 |
1/4 |
0/0 |
||
21 |
PA21 |
D7 |
5 |
5/3 |
3/3 |
7/1 |
1/5 |
0/1 |
||
7 |
PA07 |
D9 |
7 |
7 |
0/3 |
1/1 |
||||
18 |
PA18 |
D10 |
2 |
1/2 |
3/2 |
3/0 |
1/2 |
0/6 |
||
16 |
PA16 |
D11 |
0 |
1/0 |
3/1 |
2/0 |
1/0 |
0/4 |
||
19 |
PA19 |
D12 |
3 |
1/3 |
3/3 |
3/1 |
1/3 |
0/7 |
||
17 |
PA17 |
D13 |
1 |
1/1 |
3/0 |
2/1 |
1/1 |
0/5 |
||
10 |
PA10 |
FLASH_CS |
10 |
10 |
0/2 |
2/2 |
1/0 |
0/2 |
1/6 |
|
11 |
PA11 |
FLASH_MISO |
11 |
11 |
0/3 |
2/3 |
1/1 |
0/3 |
1/7 |
|
8 |
PA08 |
FLASH_MOSI |
8 |
2 |
0/0 |
2/1 |
0/0 |
0/0 |
1/4 |
|
9 |
PA09 |
FLASH_SCK |
9 |
9 |
3 |
0/1 |
2/0 |
0/1 |
0/1 |
1/5 |
43 |
PB11 |
MISO |
12 |
4/3 |
5/1 |
0/5 |
1/1 |
|||
44 |
PB12 |
MOSI |
12 |
4/0 |
4/0 |
3/0 |
0/0 |
|||
55 |
PB23 |
RXD |
7 |
1/3 |
5/3 |
7/1 |
||||
35 |
PB03 |
RXLED |
9 |
15 |
5/1 |
6/1 |
||||
45 |
PB13 |
SCK |
13 |
4/1 |
4/1 |
3/1 |
0/1 |
|||
23 |
PA23 |
SCL |
7 |
3/1 |
5/0 |
4/1 |
1/7 |
0/3 |
||
22 |
PA22 |
SDA |
6 |
3/0 |
5/1 |
4/0 |
1/6 |
0/2 |
||
30 |
PA30 |
SWCLK |
14 |
7/2 |
1/2 |
6/0 |
2/0 |
|||
31 |
PA31 |
SWDIO |
15 |
7/3 |
1/3 |
6/1 |
2/1 |
|||
54 |
PB22 |
TXD |
22 |
1/2 |
5/2 |
7/0 |
||||
27 |
PA27 |
TXLED |
11 |
|||||||
24 |
PA24 |
USB_DM |
8 |
3/2 |
5/2 |
5/0 |
2/2 |
|||
25 |
PA25 |
USB_DP |
9 |
3/3 |
5/3 |
5/1 |
||||
0 |
PA00 |
0 |
1/0 |
2/0 |
||||||
1 |
PA01 |
1 |
1/1 |
2/1 |
||||||
3 |
PA03 |
3 |
10 |
|||||||
14 |
PA14 |
14 |
2/2 |
4/2 |
3/0 |
2/0 |
1/2 |
|||
32 |
PB00 |
9 |
12 |
5/2 |
7/0 |
|||||
33 |
PB01 |
1 |
13 |
5/3 |
7/1 |
|||||
36 |
PB04 |
4 |
6 |
|||||||
37 |
PB05 |
5 |
7 |
|||||||
38 |
PB06 |
6 |
8 |
|||||||
39 |
PB07 |
7 |
9 |
|||||||
42 |
PB10 |
10 |
4/2 |
5/0 |
0/4 |
1/0 |
||||
46 |
PB14 |
14 |
4/2 |
5/0 |
4/0 |
0/2 |
||||
47 |
PB15 |
15 |
4/3 |
5/1 |
4/1 |
0/3 |
||||
48 |
PB16 |
0 |
5/0 |
6/0 |
3/0 |
0/4 |
||||
49 |
PB17 |
1 |
5/1 |
6/1 |
3/1 |
0/5 |
||||
62 |
PB30 |
14 |
7/0 |
5/1 |
0/0 |
4/0 |
0/6 |
|||
63 |
PB31 |
15 |
7/1 |
5/0 |
0/1 |
4/1 |
0/7 |
有关表列的定义,请参阅表中Adafruit ItsyBitsy M4 Express Adafruit ItsyBitsy M4 Express引脚分配表的说明。
板上的默认设备为:
引脚PB23/PB22处的UART 1,标记为RXD/TXD
引脚PA22/PA23处的I2C 5,标记为SDA/SCL
引脚PB12/PB11/PB13处的SPI 4,标记为MOSI、MISO和SCK
引脚PA02和PA05上的DAC输出,标记为A0和A4
用于创建管脚分配表的脚本¶
上面显示的表是用目标板上运行的Python小脚本创建的:
from samd import pininfo
from machine import Pin
import os
def print_entry(e, txt):
print(txt, end=": ")
if e == 255:
print(" - ", end="")
else:
print("%d/%d" % (e >> 4, e & 0x0f), end="")
def print_pininfo(pin, info):
print("%3d" % pin, end=" ")
print("P%c%02d" % ("ABCD"[pin // 32], pin % 32), end="")
print(" %12s" % info[0], end="")
print(" IRQ:%2s" % (info[1] if info[1] != 255 else "-"), end="")
print(" ADC0:%2s" % (info[2] if info[2] != 255 else "-"), end="")
if len(info) == 7:
print_entry(info[3], " Serial1")
print_entry(info[4], " Serial2")
print_entry(info[5], " PWM1" if (info[5] >> 4) < 3 else " TC")
print_entry(info[6], " PWM2")
else:
print(" ADC1:%2s" % (info[3] if info[3] != 255 else "-"), end="")
print_entry(info[4], " Serial1")
print_entry(info[5], " Serial2")
print_entry(info[6], " TC")
print_entry(info[7], " PWM1")
print_entry(info[8], " PWM2")
print()
def tblkey(i):
name = i[1][0]
if name != "-":
if len(name) < 3:
return " " + name
else:
return name
else:
return "zzzzzzz%03d" % i[0]
def table(num = 127):
pintbl = []
for i in range(num):
try:
pintbl.append((i, pininfo(i)))
except:
pass
# print("not defined")
pintbl.sort(key=tblkey)
for item in pintbl:
print_pininfo(item[0], item[1])
table()