main
Ray Publish 0.1.0 50c125a

ATSAMD21G18A-AF

Microchip Tech · Microcontroller Units (MCUs/MPUs/SOCs) · TQFP-48(7x7)

ATSAMD21G18A-AF from Microchip Tech, in a TQFP-48(7x7). Pinout and pin descriptions extracted from the manufacturer datasheet (extract_pins, cross-checked by a second model). Symbol, footprint, and 3D from KiCad-official CAD.

Pinout

Pin Name Type Function
1 PA00 bidirectional GPIO on VDDANA supply with EXTINT[0]; also XIN32 for the 32kHz crystal oscillator, SERCOM1 PAD[0], TCC2/WO[0].
2 PA01 bidirectional GPIO on VDDANA supply with EXTINT[1]; also XOUT32 for the 32kHz crystal oscillator, SERCOM1 PAD[1], TCC2/WO[1].
3 PA02 bidirectional GPIO on VDDANA supply with EXTINT[2], ADC AIN[0], PTC Y[0] and DAC VOUT.
4 PA03 bidirectional GPIO on VDDANA supply with EXTINT[3], ADC/DAC VREFA, ADC AIN[1], PTC Y[1].
5 GNDANA power_in Analog ground for the VDDANA domain.
6 VDDANA power_in Analog supply input powering the analog I/O pins (PA00-PA07, PB00-PB09).
7 PB08 bidirectional GPIO on VDDANA supply with EXTINT[8], ADC AIN[2], PTC Y[14], SERCOM4 PAD[0], TC4/WO[0].
8 PB09 bidirectional GPIO on VDDANA supply with EXTINT[9], ADC AIN[3], PTC Y[15], SERCOM4 PAD[1], TC4/WO[1].
9 PA04 bidirectional GPIO on VDDANA supply with EXTINT[4], ADC VREFB, ADC AIN[4], AC AIN[0], PTC Y[2], SERCOM0 PAD[0].
10 PA05 bidirectional GPIO on VDDANA supply with EXTINT[5], ADC AIN[5], AC AIN[1], PTC Y[3], SERCOM0 PAD[1].
11 PA06 bidirectional GPIO on VDDANA supply with EXTINT[6], ADC AIN[6], AC AIN[2], PTC Y[4], SERCOM0 PAD[2].
12 PA07 bidirectional GPIO on VDDANA supply with EXTINT[7], ADC AIN[7], AC AIN[3], PTC Y[5], SERCOM0 PAD[3], I2S SD[0].
13 PA08 bidirectional GPIO on VDDIO supply with NMI, ADC AIN[16], PTC X[0], SERCOM0/2 PAD[0], I2S SD[1]; supports I2C.
14 PA09 bidirectional GPIO on VDDIO supply with EXTINT[9], ADC AIN[17], PTC X[1], SERCOM0/2 PAD[1], I2S MCK[0]; supports I2C.
15 PA10 bidirectional GPIO on VDDIO supply with EXTINT[10], ADC AIN[18], PTC X[2], SERCOM0/2 PAD[2], I2S SCK[0], GCLK_IO[4].
16 PA11 bidirectional GPIO on VDDIO supply with EXTINT[11], ADC AIN[19], PTC X[3], SERCOM0/2 PAD[3], I2S FS[0], GCLK_IO[5].
17 VDDIO power_in Digital I/O supply input for the neighbouring I/O pins (paired with GND pin 18).
18 GND power_in Digital ground (paired with VDDIO pin 17).
19 PB10 bidirectional GPIO on VDDIO supply with EXTINT[10], SERCOM4 PAD[2], TC5/WO[0], TCC0/WO[4], I2S MCK[1], GCLK_IO[4].
20 PB11 bidirectional GPIO on VDDIO supply with EXTINT[11], SERCOM4 PAD[3], TC5/WO[1], TCC0/WO[5], I2S SCK[1], GCLK_IO[5].
21 PA12 bidirectional GPIO on VDDIO supply with EXTINT[12], SERCOM2/4 PAD[0], TCC2/WO[0], TCC0/WO[6], AC CMP[0]; supports I2C.
22 PA13 bidirectional GPIO on VDDIO supply with EXTINT[13], SERCOM2/4 PAD[1], TCC2/WO[1], TCC0/WO[7], AC CMP[1]; supports I2C.
23 PA14 bidirectional GPIO on VDDIO supply with EXTINT[14]; also XIN for the 0.4-32MHz crystal oscillator, SERCOM2/4 PAD[2], TC3/WO[0], GCLK_IO[0].
24 PA15 bidirectional GPIO on VDDIO supply with EXTINT[15]; also XOUT for the crystal oscillator, SERCOM2/4 PAD[3], TC3/WO[1], GCLK_IO[1].
25 PA16 bidirectional GPIO on VDDIO supply with EXTINT[0], PTC X[4], SERCOM1/3 PAD[0], TCC2/WO[0], TCC0/WO[6], GCLK_IO[2]; supports I2C.
26 PA17 bidirectional GPIO on VDDIO supply with EXTINT[1], PTC X[5], SERCOM1/3 PAD[1], TCC2/WO[1], TCC0/WO[7], GCLK_IO[3]; supports I2C.
27 PA18 bidirectional GPIO on VDDIO supply with EXTINT[2], PTC X[6], SERCOM1/3 PAD[2], TC3/WO[0], TCC0/WO[2], AC CMP[0].
28 PA19 bidirectional GPIO on VDDIO supply with EXTINT[3], PTC X[7], SERCOM1/3 PAD[3], TC3/WO[1], TCC0/WO[3], I2S SD[0], AC CMP[1].
29 PA20 bidirectional GPIO on VDDIO supply with EXTINT[4], PTC X[8], SERCOM5/3 PAD[2], TC7/WO[0], TCC0/WO[6], I2S SCK[0], GCLK_IO[4].
30 PA21 bidirectional GPIO on VDDIO supply with EXTINT[5], PTC X[9], SERCOM5/3 PAD[3], TC7/WO[1], TCC0/WO[7], I2S FS[0], GCLK_IO[5].
31 PA22 bidirectional GPIO on VDDIO supply with EXTINT[6], PTC X[10], SERCOM3/5 PAD[0], TC4/WO[0], TCC0/WO[4], GCLK_IO[6]; supports I2C.
32 PA23 bidirectional GPIO on VDDIO supply with EXTINT[7], PTC X[11], SERCOM3/5 PAD[1], TC4/WO[1], TCC0/WO[5], USB SOF 1kHz, GCLK_IO[7]; supports I2C.
33 PA24 bidirectional GPIO on VDDIO supply with EXTINT[12], SERCOM3/5 PAD[2], TC5/WO[0], TCC1/WO[2], USB DM; no drive strength option, pull-up recommended if unconnected.
34 PA25 bidirectional GPIO on VDDIO supply with EXTINT[13], SERCOM3/5 PAD[3], TC5/WO[1], TCC1/WO[3], USB DP; no drive strength option, pull-up recommended if unconnected.
35 GND power_in Digital ground (paired with VDDIO pin 36).
36 VDDIO power_in Digital I/O supply input (paired with GND pin 35).
37 PB22 bidirectional GPIO on VDDIO supply with EXTINT[6], SERCOM5 PAD[2], TC7/WO[0], TCC3/WO[0], GCLK_IO[0].
38 PB23 bidirectional GPIO on VDDIO supply with EXTINT[7], SERCOM5 PAD[3], TC7/WO[1], TCC3/WO[1], GCLK_IO[1].
39 PA27 bidirectional GPIO on VDDIO supply with EXTINT[15], TCC3/WO[6], GCLK_IO[0].
40 RESET input Active-low external reset input.
41 PA28 bidirectional GPIO on VDDIO supply with EXTINT[8], TCC3/WO[7], GCLK_IO[0].
42 GND power_in Ground for the VDDIN/core domain.
43 VDDCORE power_out Regulated output supply of the internal voltage regulator for the core.
44 VDDIN power_in Input supply for the internal voltage regulator and the PA30/PA31 I/O cluster.
45 PA30 bidirectional GPIO on VDDIO supply with EXTINT[10]; also SWCLK serial wire debug clock, SERCOM1 PAD[2], TCC1/WO[0], TCC3/WO[4].
46 PA31 bidirectional GPIO on VDDIO supply with EXTINT[11]; also SWDIO serial wire debug data (active only with a debugger), SERCOM1 PAD[3], TCC1/WO[1], TCC3/WO[5].
47 PB02 bidirectional GPIO on VDDANA supply with EXTINT[2], ADC AIN[10], PTC Y[8], SERCOM5 PAD[0], TC6/WO[0], TCC3/WO[2].
48 PB03 bidirectional GPIO on VDDANA supply with EXTINT[3], ADC AIN[11], PTC Y[9], SERCOM5 PAD[1], TC6/WO[1], TCC3/WO[3].

Key specifications

Parameter Value
Manufacturer Microchip Tech
Package TQFP-48(7x7)
Category Single Chip Microcomputer/Microcontroller
Pins 48

Electrical characteristics

Limits as printed in the datasheet (page.json metadata.characteristics carries them as data).

Parameter Symbol Min Typ Max Unit Conditions Page
Operating voltage (SAM D21) VDD 1.62 3.63 V SAM D21 operating voltage 2
Operating temperature -40 125 °C F = -40 - 125°C Matte Sn Plating (ordering code) 16
CPU clock frequency Fmax 48 MHz Arm Cortex-M0+ CPU running at up to 48 MHz 1
VDDIO supply voltage VDDIO 1.62 3.63 V Powers I/O lines, OSC8M and XOSC 35
VDDIN supply voltage VDDIN 1.62 3.63 V Powers I/O lines and the internal regulator 35
VDDANA supply voltage VDDANA 1.62 3.63 V Powers I/O lines and ADC, AC, DAC, PTC, OSCULP32K, OSC32K, XOSC32K 35
VDDCORE internal regulated voltage VDDCORE 1.2 V Internal regulated voltage output 35

Materials and finish

As the datasheet states them (page.json metadata.appearance; the 3D model's colours follow it).

Part Material Colour / plating Datasheet says Page
contacts tin including indium tin oxide (ITO) sensor grids. The PTC requires one pin per X-line and one pin per Y-line. In the self-capacitance mode, the PTC requires only one pin (Y-line) for each touch sensor. 859

CAD (KiCad official)

  • Symbol: ATSAMD21G18A-AF
  • Footprint: Package_QFP:TQFP-48_7x7mm_P0.5mm
  • 3D model: TQFP-48(7x7) (KiCad packages3D, STEP)
  • 3D model files: atsamd21g18a-af-etched.step / atsamd21g18a-af-etched.glb carry the MPN laser-etched on the die in a toggleable Adom.LaserEtch group (Fusion-ready); atsamd21g18a-af.step / atsamd21g18a-af.glb are the bare package body.

Provenance

Data extracted from the manufacturer datasheet, not a distributor listing:

  • Datasheet: Microchip Tech datasheet (1148 pp, sha256 18ca1ccab5aa330f, retrieved 2026-11-13, tier: manufacturer)
  • Extractor: parts-factory 2.0.0 / extract_pins 0.3, primary claude-sonnet-5-5 (text), consensus claude-sonnet-5-5 (agreed), guards: pin_guards 0.1: passed. Pins are checked against the footprint pad set and their cited datasheet pages before publish.
  • CAD: KiCad official libraries (CC-BY-SA 4.0).

Datasheet PDF