SparkFun SAMD21 Dev Breakout Pinout

SparkFun SAMD21 Dev Breakout pinout for expansion headers, serial buses and SAMD21 pin functions.

Main pinout

Full-size SparkFun SAMD21 Dev Breakout with Arduino R3 footprint, USB OTG and a LiPo charger. USB is at the top in the main view. The details show the internal contacts, connectors and rear test points.

100%Drag to pan · Ctrl/⌘ + wheel to zoomSwipe up/down to scroll the page · Swipe sideways to pan · Use two fingers to pan and zoom
Show alternate functions

Pin index

Pin index

Quickly scan every header pin, port name, supported function and usage note.

75 visible
PinMCU pinTypesNotes
NCFirst hole of the power block, reserved for Arduino R3. Position without electrical connection.
PowerLevel reference for shields. Regulated rail of 3.3 V, common to IOREF and to the power of connectors SPI and SWD.
ControlRestart active at low level. Share net with S1, JP6.10 and the two contacts RESET of JP7.
PowerRegulated 3.3 V rail shared by IOREF and the power connections on the SPI and SWD headers.
PowerVUSB rail after the 500 mA fuse F1. Its voltage depends on the USB power state and the OTG circuit.
GNDCommon board ground.
GNDCommon board ground.
PowerExternal power before the regulator. Schematic v10 specifies 4.5–5.5 V at VIN when using the charger.
Analog10 bit DAC voltage output and 12 bit ADC input AIN0.
AnalogPWMAnalogue input in PB08.
AnalogPWMAnalogue input in PB09.
AnalogExternal analog reference B of the ADC and input AIN4.
AnalogAnalogue input in PA05.
AnalogAnalogue input in PB02.
UARTReception of Serial1 by SERCOM0 PAD3.
UARTTransmission of Serial1 by SERCOM0 PAD2.
GPIOInput/digital output in PA14.
GPIOPWMInput/digital output in PA09.
GPIOPWMInput/digital output in PA08.
GPIOPWMInput/digital output in PA15.
GPIOPWMInput/digital output in PA20.
GPIOInput/digital output in PA21.
GPIOPWMInput/digital output in PA06.
GPIOPWMInput/digital output in PA07.
GPIOPWMPeripheral selection in the SERCOM1 alternative SPI mapping. It is configured by firmware.
GPIOPWMData output of the alternative SPI, SERCOM1 PAD0. It is configured by firmware.
GPIOPWMData input of the alternative SPI, SERCOM1 PAD3. It is configured by firmware.
GPIOPWMAlternative SPI clock, SERCOM1 PAD1. This contact also governs the LED blue D4.
GNDCommon board ground.
AnalogExternal analogue reference A of ADC and DAC.
I2CI²C data for SERCOM3 PAD0. Index 20 in Arduino.
I2CI²C clock by SERCOM3 PAD1. Index 21 by Arduino.
Debugbidirectional debug data. JP5.1 and JP6.2 are connected to PA31.
DebugDebug clock. JP5.2 and JP6.4 are attached to PA30.
UARTSerial reception for SERCOM5 PAD3. Index 31 in Arduino.
UARTSerial transmission by SERCOM5 PAD2. Index 30 in Arduino.
GPIOPWMGPIO 38 of Arduino, also defined as ATN in the variant.
GNDCommon board ground.
ControlDetection USB OTG. Connects to the stage that governs Q1 and to PA28 by R2.
USBPositive line of the USB native, connected to PA25.
USBNegative line of the USB native, connected to PA24.
PowerContact VBUS of Micro-USB, on the side of the fuse connector F1 of 500 mA.
PowerRegulated 3.3 V rail shared by IOREF and the power connections on the SPI and SWD headers.
Debugbidirectional debug data. JP5.1 and JP6.2 are connected to PA31.
GNDCommon board ground.
DebugDebug clock. JP5.2 and JP6.4 are attached to PA30.
GNDCommon board ground.
NCNominal position SWO/TDO. Position without electrical connection.
NCKey position with hole in this PCB. Position without electrical connection.
NCNominal position NC/TDI. Position without electrical connection.
NCNominal position GND Detect. Position without electrical connection.
ControlRestart active at low level. Share net with S1, JP6.10 and the two contacts RESET of JP7.
SPIData entry of the default SPI at SERCOM4 PAD0. Index 22 at Arduino.
PowerRegulated 3.3 V rail shared by IOREF and the power connections on the SPI and SWD headers.
SPIDefault SPI clock at SERCOM4 PAD3. Index 24 at Arduino.
SPIData output of the default SPI at SERCOM4 PAD2. Index 23 at Arduino.
ControlRestart active at low level. Share net with S1, JP6.10 and the two contacts RESET of JP7.
GNDCommon board ground.
GNDTwo pin input ground. common board ground.
PowerPositive terminal of the two-pin input. External power before the regulator. Schematic v10 specifies 4.5–5.5 V at VIN when using the charger.
PowerCenter-positive contact of the optional jack. External power before the regulator. Schematic v10 specifies 4.5–5.5 V at VIN when using the charger.
GNDOptional jack sleeve contact. common board ground.
GNDOptional jack switching contact. common board ground.
GNDTerminal of the JST mounted. Common board ground.
PowerTerminal of the fitted JST connector. Positive terminal of the single-cell LiPo battery. JP4, JP8, and JP9 are in parallel.
GNDAuxiliary battery 2.54 mm pitch. common board ground.
GNDAlternative footprint for the 2 mm pitch JST connector, visible from the rear. Common board ground.
PowerAuxiliary battery hole, 2.54 mm pitch. Positive terminal of the single-cell LiPo battery. JP4, JP8, and JP9 are in parallel.
PowerAlternative footprint for the 2 mm pitch JST connector, visible from the rear. Positive terminal of the single-cell LiPo battery. JP4, JP8 and JP9 are wired in parallel.
GNDGround for optional programming resistance. common board ground.
ControlSignal-side terminal of the optional programming resistor. PROG input on the MCP73831. With SJ1 open, R3 accepts an external resistor to ground.
ControlTop R-Prog pad in the rotated detail. SJ1 extreme leading to R1, the current programming resistance of 3.9 kΩ.
ControlLower R-Prog pad in the rotated detail view. PROG input on the MCP73831. With SJ1 open, R3 accepts an external resistor to ground.
GNDCommon board ground.
ControlCathode of D3, LED red feed. SJ2 closed factory binds it to ground.

Specifications

Microcontroller
ATSAMD21G18A, Arm Cortex-M0+ of 32 bits to 48 MHz. TQFP48.
Memory
256 KB flash and 32 KB of SRAM.
Analogue conversion
ADC of 12 bits and DAC of 10 bits in A0.
Power supply
Logic of 3.3 V. USB, input VIN or LiPo of a cell. Regulator U3 of 600 mA nominals.
Battery
LiPo battery rated at 3.7 V nominal and up to 4.2 V. The MCP73831 uses the 3.9 kΩ resistor R1 to set a nominal charge current of about 256 mA.
Arduino R3 · JP7
Power blocks (8), analog (6) and digital (10 + 8), at a 2.54 mm pitch. SPI independent from 2×3 to 2.54 mm.
Debugging · JP6
Cortex Debug 2×5 to 1.27 mm. SWDIO and SWCLK also come out for JP5.

References

Datasheets

Manufacturer references and technical documentation.

ChipRoleManufacturerNotesLink
DEV-13672 v10Electrical schematicSparkFunReview v10, 12 November 2015.Datasheet
DEV-13672 v10Design EAGLESparkFunCoordinates, numbering and nets of PCB.Datasheet
DEV-13672Graphic PinoutSparkFunsilkscreen, connector position and functions.Datasheet
DEV-13672Connection guideSparkFunPower, USB and Arduino connections.Datasheet
ATSAMD21G18DatasheetAtmelTable 6-1 for the SAMD21G multiplexer.Datasheet
MCP73831Battery chargerMicrochipU1. Cell load control.Datasheet
AP2112K-3.3RegulatorDiodes IncorporatedU3. Regulation at 3.3 V.Datasheet
SparkFun SAMD21 DevOption ArduinoSparkFunCorrespondence with functions Arduino, Serial, SPI and Wire.Datasheet

Board notes

Headers with the USB top
A left is powered and A0 to A5, and right SCL to D8 and D7 to D0. JP5 is lowered from 38 to SWDIO. JP6 turns 90° clockwise. Pad 1 is the square marked 3.3V. JP6.6, 7, 8 and 9 are not connected.
SPI
The 2×3 connector uses SERCOM4 and has 3.3 V. On the front, the inner row has RST, SCK and MISO from left to right. The outer row has GND, MOSI and 3V3. Its detail turns 90° clockwise. D10 to D13 offer another allocation by SERCOM1.
Power supply
Header JP1 and the JP3 jack footprint share VIN. When charging through VIN, use the 4.5–5.5 V range shown in the v10 schematic. VUSB is downstream of F1 and reaches VIN through the switching circuit. IOREF is tied to 3.3 V.
Battery and bridges
JP4 is the fitted JST connector. JP8 shares its footprint and is visible from the back. JP9 is the adjacent pair of holes. Closing SJ1 adds R1 to the charging circuit. Opening SJ1 allows a programming resistor to be fitted at R3. Opening SJ2 disconnects the power LED from ground.
USB and signalling
The Micro-USB AB uses PA24 and PA25 for data and exposes SerialUSB in Arduino. The mounting tabs of the connector are to ground. S1 restarts the board. D4 blue follows D13, D5 green indicates TX, D6 yellow indicates RX, D2 red indicates load and D3 red indicates power.
Alternative functions
Sx/y indicates SERCOMx PADy. TCx/y and TCCx/y indicates output WOy. Multiplexer functions can share pad and are chosen with firmware. Pins marked with ~ show PWM screened.
Pictures
SparkFun Electronics, gallery DEV-13672. Front 13672-04 and back 13672-03. Rotated extensions retain the proportions of the sockets.