@@ -33,7 +33,7 @@ USB D+ (D/L)(+), CAN RX (C) TC51 25 | A25 | | Vin | L21 installed. 5V i
3333 functions (ie: digitalRead(), analogRead(), analogWrite(), attachInterrupt(), etc.).
3434* When USB CDC is enabled, Serial refers to SerialUSB, otherwise it refers to Serial1.
3535* Leave pin A30 floating (or use external pullup) during reset.
36- * Tone available on TC5. DO NOT connect voltages higher than 3.3V!
36+ * Tone available on TC5.
3737
3838+ This alternate function is enabled by default (+M functions enabled only when a memory
3939 device is installed). Thus, the associated header pin cannot be used. Solder jumpers
@@ -46,6 +46,60 @@ Silkscreen Legend:
4646 Bottom: A circled pin means analog function
4747```
4848
49+ ## COM Arrangement When Using "L21 Only" Options
50+
51+ The following applies only to the L21 and only when using menu options with (L21 only).
52+ If using the L21 with the other options, use the above ASCII diagram.
53+
54+ The additional options are:
55+
56+ * FOUR_UART_ONE_WIRE_ONE_SPI
57+ * FIVE_UART_NO_WIRE_ONE_SPI
58+ * FIVE_UART_ONE_WIRE_NO_SPI
59+ * SIX_UART_NO_WIRE_NO_SPI
60+
61+ ```
62+ -------------------
63+ | A0 RST |
64+ | A1 Gnd |
65+ | A2 Vbat |
66+ | A3 A31 |
67+ | A4 A30 |
68+ | A5 NC |
69+ | A6 NC |
70+ | A7 A27 | CS (MEM)
71+ TX3 | A8 A23 | SS/RX5
72+ RX3 | A9 A22 | MISO/TX5
73+ TX1 | A10 A19 | SCK
74+ RX1 | A11 A18 | MOSI
75+ TX2 | A14 A17 | SCL/RX5/RX6
76+ RX2 | A15 A16 | SDA/TX5/TX6
77+ | NC NC |
78+ | NC NC |
79+ | Vbus 3.3V|
80+ USB/TX4 | A24 _____ Vcc |
81+ USB/RX4 | A25 | | Vin |
82+ | Gnd | USB | Gnd |
83+ -------------------
84+
85+ * If the memory device is installed, it is connected to SPI (A18, A19, and A22).
86+ If selecting an option without SPI, then A22 will become TX5. Be sure to keep the
87+ memory device CS pin high. You can disconnect A27 from CS by desoldering J13.
88+ * Serial4 is shared with the USB pins. Thus, USB cannot be used is using Serial4. Be
89+ sure to disconnect the USB connector D- and D+ pins by desoldering J4 and J7.
90+ * It is not necessary to use all serial instances, and they can be skipped. For
91+ example, with the FIVE_UART_NO_WIRE_ONE_SPI option, USB can still be used by NOT
92+ calling Serial4.begin(), thus not enabling the Serial4 peripheral. However, Serial5
93+ can still be used.
94+ * Serial5 can be located either on pins A16/A17 or A22/A23. If SPI is enabled, then
95+ Serial5 is on pins A16/A17, otherwise it is on pins A22/A23.
96+ * SERCOM5 has low-power capabilities and can run in power domain PD0, at the expense
97+ of DMA support and a few other features (see core README.md). It is available in two
98+ locations only, A24/A25 and A22/A23. If SPI is enabled, then SERCOM5 is connected to
99+ Serial4 on A24/A25 (must disable USB), otherwise, it uses Serial5 on A22/A23.
100+ * When USB CDC is enabled, Serial refers to SerialUSB, otherwise it refers to Serial1.
101+ ```
102+
49103
50104## Pins descriptions for the MattairTech MT-D21E (rev B)
51105```
@@ -70,7 +124,7 @@ Arduino | Silk | Port | Alternate Function | Comments (! means not used with thi
7012415 | A15 | PA15 | Xout, RX2/SCK1 | !EIC/EXTINT[15] SERCOM2/PAD[3] TC3/WO[1] !TCC0/WO[5] Xout
7112516 | A16 | PA16 | SDA/TX4 w/pullup | EIC/EXTINT[0] PTC/X[4] SERCOM1/PAD[0] SERCOM3/PAD[0] TCC2/WO[0] !TCC0/WO[6]
7212617 | A17 | PA17 | SCL/RX4 w/pullup | EIC/EXTINT[1] PTC/X[5] SERCOM1/PAD[1] SERCOM3/PAD[1] TCC2/WO[1] !TCC0/WO[7]
73- 18 | A18 | PA18 | SPI | EIC/EXTINT[2] PTC/X[6] !SERCOM1/PAD[2] SERCOM3/PAD[2] !TC3/WO[0] !TCC0/WO[2]
127+ 18 | A18 | PA18 | MOSI | EIC/EXTINT[2] PTC/X[6] !SERCOM1/PAD[2] SERCOM3/PAD[2] !TC3/WO[0] !TCC0/WO[2]
7412819 | A19 | PA19 | SCK | EIC/EXTINT[3] PTC/X[7] !SERCOM1/PAD[3] SERCOM3/PAD[3] !TC3/WO[1] !TCC0/WO[3]
7512920 | --- | ---- | NOT A PIN | NOT A PIN
7613021 | --- | ---- | NOT A PIN | NOT A PIN
@@ -95,6 +149,7 @@ Arduino | Silk | Port | Alternate Function | Comments (! means not used with thi
95149* TC5(D21) is available on these pins otherwise. The tone library uses TC5.
96150* A0 and A1 are by default connected to the 32.768KHz crystal.
97151* Leave pin A30 floating (or use external pullup) during reset.
152+ * This table does not list "L21 Only" COM configurations.
98153```
99154
100155
@@ -146,10 +201,10 @@ Arduino | Silk | Port | Alternate Function | Comments (! means not used with thi
146201 * 14 pins can be configured with external interrupts.
147202
148203* ** SERCOM**
149- * 4 SERCOM are available.
150- * Up to 4 UART instances
151- * Up to 2 SPI instances
152- * Up to 2 WIRE (I2C) instances
204+ * 4 SERCOM are available (6 on the L21E) .
205+ * Up to 4 UART instances (6 on the L21E).
206+ * Up to 2 SPI instances.
207+ * Up to 2 WIRE (I2C) instances.
153208 * The WIRE pullup resistors are enabled by default.
154209
155210
@@ -211,7 +266,7 @@ now calls pinPeripheral() with the desired mode. Note that this field is not use
211266select between the two peripherals possible with each of the SERCOM and TIMER functions.
212267PeripheralAttribute is now used for this.
213268
214- ### PeripheralAttribute:
269+ ### PeripheralAttribute
215270This is an 8-bit bitfield used for various peripheral configuration. It is primarily
216271used to select between the two peripherals possible with each of the SERCOM and TIMER
217272functions. TIMER pins are individual, while SERCOM uses a group of two to four pins.
0 commit comments