Files
micropython/ports/samd/mcu/samd51/pin-af-table.csv
Jim Mussared 4d568a5bd7 samd/boards/make-pins.py: Update to use tools/boardgen.py.
This replaces the previous make-pin-table.py with an implementation based
on boardgen.py.

- MICROPY_PY_MACHINE_PIN_BOARD_CPU macro is removed. This isn't optional
  on other ports, so no need for it to be optional on SAMD.
- pin_af_table is removed, and lookups just search the cpu dict instead
  (this saves N*wordsize bytes of firmware size to have this extra table).
- pins.csv is now BOARD,CPU to match other ports.

This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2023-11-03 14:18:32 +11:00

2.8 KiB

1# The pin_cap_table is a subset from table 6-1 of the data sheet.
2# It contain the information about pin mux set and pad
3# for some of the peripheral devices with many possible assignments.
4# The columns represent the peripheral class, as defined in pin_cap_t. The
5# column number is equivalent to the mux class.
6# The eic and adc columns contain the decimal number for the respecitive
7# quantity, the columns for sercom, tc and tcc have in each cell
8# the device number in the first, and the pad number in the second
9# digit. If a signal is not available, the cell in the csv table is left empty.
10# The first column is the pin id, not the number of the board pin.
11# Rows not starting with pa, pb, pc or pd are ignored.
12# When editing the table with a spread sheet, take care to import the data as text.
13Pin,EIC,ADC0,ADC1,SERCOM1,SERCOM2,TC,TCC1,TCC2
14PB03,9,15,,,51,61,,
15PA00,0,,,,10,20,,
16PA01,1,,,,11,21,,
17PC00,0,,10,,,,,
18PC01,1,,11,,,,,
19PC02,2,,4,,,,,
20PC03,3,,5,,,,,
21PA02,2,0,,,,,,
22PA03,3,10,,,,,,
23PB04,4,,6,,,,,
24PB05,5,,7,,,,,
25PD00,0,,14,,,,,
26PD01,1,,15,,,,,
27PB06,6,,8,,,,,
28PB07,7,,9,,,,,
29PB08,8,2,0,,40,40,,
30PB09,9,3,1,,41,41,,
31PA04,4,4,,,00,00,,
32PA05,5,5,,,01,01,,
33PA06,6,6,,,02,10,,
34PA07,7,7,,,03,11,,
35PC04,4,,,60,,,00,
36PC05,5,,,61,,,,
37PC06,6,,,62,,,,
38PC07,9,,,63,,,,
39PA08,,8,2,00,21,00,00,14
40PA09,9,9,3,01,20,01,01,15
41PA10,10,10,,02,22,10,02,16
42PA11,11,11,,03,23,11,03,17
43PB10,10,,,,42,50,04,10
44PB11,12,,,,43,51,05,11
45PB12,12,,,40,,40,30,00
46PB13,13,,,41,,41,31,01
47PB14,14,,,42,,50,40,02
48PB15,15,,,43,,51,41,03
49PD08,3,,,70,61,,01,
50PD09,4,,,71,60,,02,
51PD10,5,,,72,62,,03,
52PD11,6,,,73,63,,04,
53PD12,7,,,,,,05,
54PC10,10,,,62,72,,00,14
55PC11,11,,,63,73,,01,15
56PC12,12,,,70,61,,02,16
57PC13,13,,,71,60,,03,17
58PC14,14,,,72,62,,04,10
59PC15,15,,,73,63,,05,11
60PA12,12,,,20,41,20,06,12
61PA13,13,,,21,40,21,07,13
62PA14,14,,,22,42,30,20,12
63PA15,15,,,23,43,31,21,13
64PA16,0,,,10,31,20,10,04
65PA17,1,,,11,30,21,11,05
66PA18,2,,,12,32,30,12,06
67PA19,3,,,13,33,31,13,07
68PC16,0,,,60,01,,00,
69PC17,1,,,61,00,,01,
70PC18,2,,,62,02,,02,
71PC19,3,,,63,03,,03,
72PC20,4,,,,,,04,
73PC21,5,,,,,,05,
74PC22,6,,,10,31,,05,
75PC23,7,,,11,30,,07,
76PD20,10,,,12,32,,10,
77PD21,11,,,13,33,,11,
78PB16,0,,,50,,60,30,04
79PB17,1,,,51,,61,31,05
80PB18,2,,,52,72,,10,
81PB19,3,,,53,73,,11,
82PB20,4,,,30,71,,12,
83PB21,5,,,31,70,,13,
84PA20,4,,,52,32,70,14,00
85PA21,5,,,53,33,71,15,01
86PA22,6,,,30,51,40,16,02
87PA23,7,,,31,50,41,17,03
88PA24,8,,,32,52,50,22,
89PA25,9,,,33,53,51,,
90PB22,22,,,12,52,70,,
91PB23,7,,,13,53,71,,
92PB24,8,,,00,21,,,
93PB25,9,,,01,20,,,
94PB26,12,,,20,41,,12,
95PB27,13,,,21,40,,13,
96PB28,14,,,22,42,,14,
97PB29,15,,,23,43,,15,
98PC24,8,,,02,22,,,
99PC25,9,,,03,23,,,
100PC26,10,,,,,,,
101PC27,11,,,10,,,,
102PC28,12,,,11,,,,
103PA27,11,,,,,,,
104PA30,14,,,72,12,60,20,
105PA31,15,,,73,13,61,21,
106PB30,14,,,70,51,00,40,06
107PB31,15,,,71,50,01,41,07
108PC30,14,,12,,,,,
109PC31,15,,13,,,,,
110PB00,9,12,,,52,70,,
111PB01,1,13,,,53,71,,
112PB02,2,14,,,50,60,22,