ATSAML21G18B-ANT - 256KB Flash 48MHz Cortex-M0+ MCU | Microchip
N.º de pieza: ATSAML21G18B-ANT ✓ Activo| Cant. | Precio unitario | Total |
|---|---|---|
| 1 | $5.95 | $5,95 |
| 10 | $5.45 | $54,50 |
| 100 | $4.85 | $485,00 |
| 500 | $4.32 | $2.160,00 |
| 1.000 | $3.78 | $3.780,00 |
ATSAML21G18B-ANT Descripción general
An ARM Cortex-M0+ microcontroller is a 32-bit RISC processor core designed by ARM Holdings for embedded applications that require low power consumption, deterministic interrupt response, and a rich peripheral set. The Cortex-M0+ belongs to the broader ARM Cortex-M family of microcontrollers and integrates features such as single-cycle I/O port access, a low-latency interrupt controller (NVIC), and optional single-cycle hardware multiply. Within the system hierarchy, a microcontroller (MCU) sits inside the Integrated Circuits category, with microcontrollers being a subset of microprocessors specifically designed for standalone embedded control. The SAM L21 family extends this architecture with Microchip's proprietary ultra-low-power technology, including multiple Sleep modes, a power-on reset (POR) and brown-out detector (BOD), and on-chip peripherals that can operate while the CPU is asleep.
Key features of the ATSAML21G18B include the Full-Speed USB 2.0 device and embedded host controller, a 12-bit 1 MSPS ADC, multiple SERCOM (serial communication) interfaces configurable as UART/SPI/I2C, a 32-bit RTC with calendar, and a Cryptographic Engine (CSE) supporting AES-128 and AES-256. The functional safety (FuSa) variant adds hardware diagnostic features. The peripheral touch controller (PTC) supports up to 256 channels for capacitive touch sensing without external components.
At the architectural level, the SAM L21 integrates the Cortex-M0+ core with a high-speed bus matrix and a separate low-power peripheral bus, allowing DMA transfers to occur while the CPU sleeps. The Event System (EVSYS) enables peripherals to trigger each other without CPU intervention, further reducing active-mode energy consumption. The device is fabricated on a low-leakage CMOS process and supports SleepWalking, where peripherals wake the CPU only when data is ready.
Typical applications include wearable fitness and health devices, smart home sensor nodes, low-power wireless IoT endpoints, industrial metering, battery-powered data loggers, and human-machine interfaces (HMI) with touch input. The wide operating voltage and ultra-low Sleep current also suit energy-harvesting designs where the average current must remain below 10 uA.
Design consideration: when migrating firmware from the SAM D21 family (Cortex-M0+ at higher active current), use the SAM L21 Sleep modes aggressively - placing the CPU in Sleep between ADC samples can reduce average current by 50x or more. Use the brown-out detector (BOD) at 1.6V minimum and ensure decoupling capacitors (100 nF plus 4.7 uF bulk) are placed within 2 mm of the VDD pin.
This page synthesizes distributor pricing, package-compatible alternatives, application circuits, and design notes that are not consolidated in the SAM L21 family datasheet, giving embedded engineers a single reference for part selection, supply-chain resilience, and low-power firmware design.
Alternativas directas para ATSAML21G18B-ANT — mismo encapsulado, compatible pin a pin. Se excluyen las piezas de otro encapsulado que requieren retrabajo de la PCB.
Variantes de esta serie
Modelos de la misma serie compatibles directamente con ATSAML21G18B-ANT (mismo factor de forma y huella) — difiere en ADC, Package, SRAM, RoHS Status, Sleep Mode Current.
Herramienta de comparación rápida — seleccione piezas alternativas para compararlas lado a lado:
ATSAML21G17B-ANT
✅ Sustitución directa✓ En stock
$2.71 / unidad
Ver hoja de datos →ATSAML21G16B-ANT
✅ Sustitución directa✓ En stock
$2.78 / unidad
Ver hoja de datos →ATSAML21E15B-AUT
✅ Sustitución directa✓ En stock
$2.98 / unidad
Ver hoja de datos →ATSAML21G18B-ANT Valores máximos y características eléctricas
| Core | ARM Cortex-M0+ |
| Bit Width | 32-bit |
| Frecuencia de reloj máxima | 48 MHz |
| Program Memory (Flash) | 256 KB |
| RAM | 32 KB |
| Supply Voltage Range | 1.6 V to 3.6 V |
| Active Mode Current | < 35 uA/MHz |
| Sleep Mode Current | 200 nA |
| Rango de temperatura de funcionamiento | -40 C to +85 C |
| Encapsulado | 48-TQFP (7x7 mm) |
| Tipo de montaje | Surface Mount |
| ADC | 12-bit, 1 MSPS |
| USB | Full-Speed USB 2.0 Device/Host |
| Communication Interfaces | SERCOM (UART/SPI/I2C) |
| Touch Sensing (PTC) | Yes, up to 256 channels |
| Cryptographic Engine | AES-128 / AES-256 |
| Functional Safety (FuSa) | Yes |
| Estado RoHS | Compliant |
Configuración de pines de ATSAML21G18B-ANT
| Pin 1 | PA00 — GPIO / SERCOM1[0] / EXTINT[0] |
| Pin 2 | PA01 — GPIO / SERCOM1[1] / EXTINT[1] |
| Pin 3 | PA02 — GPIO / SERCOM0[0] / ADC AIN[0] |
| Pin 4 | PA03 — GPIO / SERCOM0[1] / ADC AIN[1] |
| Pin 5 | VDD — Digital supply voltage |
| Pin 6 | GND — Ground |
| Pin 7 | PA04 — GPIO / SERCOM0[2] / ADC AIN[2] |
| Pin 8 | PA05 — GPIO / SERCOM0[3] / ADC AIN[3] |
| Pin 9 | PA06 — GPIO / SERCOM2[0] / ADC AIN[4] |
| Pin 10 | PA07 — GPIO / SERCOM2[1] / ADC AIN[5] |
| Pin 11 | PA08 — GPIO / SERCOM2[2] / ADC AIN[6] |
| Pin 12 | PA09 — GPIO / SERCOM2[3] / ADC AIN[7] |
| Pin 13 | PA10 — GPIO / SERCOM0[2] alt / ADC AIN[8] |
| Pin 14 | PA11 — GPIO / SERCOM0[3] alt / ADC AIN[9] |
| Pin 15 | PA12 — GPIO / SERCOM4[0] |
| Pin 16 | PA13 — GPIO / SERCOM4[1] |
| Pin 17 | PA14 — GPIO / SERCOM4[2] |
| Pin 18 | PA15 — GPIO / SERCOM4[3] |
| Pin 19 | PA16 — GPIO / SERCOM1[0] alt / I2S SD[0] |
| Pin 20 | PA17 — GPIO / SERCOM1[1] alt / I2S SD[1] |
| Pin 21 | PA18 — GPIO / SERCOM1[2] alt / I2S FS[0] |
| Pin 22 | PA19 — GPIO / SERCOM1[3] alt / I2S CK[0] |
| Pin 23 | PA20 — GPIO / SERCOM5[2] |
| Pin 24 | VDD — Digital supply voltage |
| Pin 25 | GND — Ground |
| Pin 26 | PA21 — GPIO / SERCOM5[3] |
| Pin 27 | PA22 — GPIO / SERCOM3[0] |
| Pin 28 | PA23 — GPIO / SERCOM3[1] |
| Pin 29 | PA24 — GPIO / SERCOM3[2] / USB SOF |
| Pin 30 | PA25 — GPIO / SERCOM3[3] |
| Pin 31 | PA27 — GPIO |
| Pin 32 | USB_DP — USB Full-Speed Data Plus |
| Pin 33 | USB_DM — USB Full-Speed Data Minus |
| Pin 34 | PA28 — GPIO / RESET (alternate) |
| Pin 35 | PA30 — GPIO / SWCLK |
| Pin 36 | PA31 — GPIO / SWDIO |
| Pin 37 | PB02 — GPIO / SERCOM5[0] |
| Pin 38 | VDD — Digital supply voltage |
| Pin 39 | GND — Ground |
| Pin 40 | PB03 — GPIO / SERCOM5[1] |
| Pin 41 | PB04 — GPIO / SERCOM4[0] alt |
| Pin 42 | PB05 — GPIO / SERCOM4[1] alt |
| Pin 43 | PB06 — GPIO / SERCOM4[2] alt |
| Pin 44 | VDD — Digital supply voltage |
| Pin 45 | GND — Ground |
| Pin 46 | PB07 — GPIO / SERCOM4[3] alt |
| Pin 47 | PB08 — GPIO / SERCOM4[0] alt / TC4[0] |
| Pin 48 | PB09 — GPIO / SERCOM4[1] alt / TC4[1] |
Aplicaciones típicas
ATSAML21G18B-ANT es adecuado para 7 aplicacións: Wearable Fitness and Health Monitors, Battery-Powered IoT Sensor Nodes, USB-Connected Data Loggers, Smart Home Touch Interfaces, Industrial Metering and Data Loggers, Human-Machine Interface with Display, Energy-Harvesting Wireless Switches.
Wearable Fitness and Health Monitors
The ATSAML21G18B-ANT's 200 nA Sleep current and 35 uA/MHz active consumption enable multi-month battery life on a single coin cell, while the integrated 12-bit 1 MSPS ADC captures ECG, heart-rate, and SpO2 signals with sufficient resolution. The Cortex-M0+ core runs signal-processing algorithms at 48 MHz, and the AES-128/256 cryptographic engine secures BLE-bound health data. The Peripheral Touch Controller (PTC) replaces mechanical buttons with capacitive touch for waterproof enclosures, eliminating the most common failure mode in wearable electronics.
Recomendado
Battery-Powered IoT Sensor Nodes
For remote LoRaWAN or Sub-GHz wireless sensor nodes, the ATSAML21G18B-ANT serves as the central MCU, spending 99% of its time in Sleep at 200 nA and waking only to read sensors and transmit data. The wide 1.6V to 3.6V supply range supports direct connection to two AA alkaline cells or a LiFePO4 battery without a boost converter. According to the SAM L21 datasheet, the Event System (EVSYS) allows peripherals like the ADC and RTC to trigger each other without CPU wakeup, further reducing average current to under 10 uA in typical duty-cycled operation.
Recomendado
USB-Connected Data Loggers
The integrated Full-Speed USB 2.0 device and embedded host controller on the ATSAML21G18B-ANT enables direct connection to a PC or USB host without an external bridge chip, reducing BOM cost and PCB area. The on-chip USB peripheral can wake the CPU from Sleep on USB resume signaling, supporting USB-C power-delivery detection in low-power peripherals. The 256 KB Flash accommodates weeks of buffered sensor data, and the 32 KB SRAM allows real-time averaging and peak detection on incoming samples.
Recomendado
Smart Home Touch Interfaces
The ATSAML21G18B-ANT's Peripheral Touch Controller (PTC) supports up to 256 capacitive touch channels, enabling slider, wheel, and matrix touch interfaces without any external touch IC. The integrated Crypto engine secures HomeKit or Matter commissioning flows with AES-128 hardware acceleration. Sleep current of 200 nA keeps wall-powered standby consumption below the 0.5 W Energy Star threshold when the device is idle, and the 48 MHz Cortex-M0+ handles LED animation and capacitive scanning in parallel via DMA.
Recomendado
Industrial Metering and Data Loggers
In electricity, water, or gas meters, the ATSAML21G18B-ANT runs the metering algorithm, manages tamper detection, and stores billing data in its 256 KB Flash. The wide 1.6V to 3.6V supply range accommodates battery-backed RTC operation during mains outages, and the 200 nA Sleep current ensures 10+ year battery shelf life. According to the SAM L21 datasheet, the on-chip RTC supports calendar mode with leap-year compensation, replacing an external RTC in many metering designs.
Recomendado
Human-Machine Interface with Display
The ATSAML21G18B-ANT drives small TFT or OLED displays via its SERCOM-configurable SPI/I2C interfaces while simultaneously scanning capacitive touch buttons via the PTC peripheral. The 48 MHz core runs LVGL or emWin graphics stacks, and the integrated USB allows firmware updates and configuration via a USB-C connection. Sleep current of 200 nA keeps battery-powered HMI devices like wireless remote controls and electronic shelf labels operational for years on a coin cell.
Recomendado
Energy-Harvesting Wireless Switches
In battery-less or energy-harvesting designs, the ATSAML21G18B-ANT's 200 nA Sleep current is critical - the average current consumption must remain below the harvested energy budget. The integrated RTC and Event System wake the CPU only on a button press (via PTC) or scheduled interval, performing a brief active burst at 35 uA/MHz to transmit a packet via a companion radio. According to the SAM L21 datasheet, brown-out reset and power-on-reset ensure robust startup from undervoltage conditions typical of harvester sources.
Recomendado
Resumen de productos recomendados
Datos de referencia de ingeniería para ATSAML21G18B-ANT — comparación, orientación de diseño e información de cumplimiento.
Guía de selección
Comparación con alternativas
| Parámetro | Este producto | ATSAML21G17B-ANT | ATSAML21G16B-ANT | ATSAML21E15B-AUT |
|---|---|---|---|---|
| Package | 48-TQFP (7x7 mm) | 48-TQFP (7x7 mm) - same | 48-TQFP (7x7 mm) - same | 32-TQFP - different |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Core | ARM Cortex-M0+ | ARM Cortex-M0+ - same | ARM Cortex-M0+ - same | ARM Cortex-M0+ - same |
| Flash | 256 KB | 128 KB (-50%) | 64 KB (-75%) | 32 KB (-87.5%) |
| SRAM | 32 KB | 32 KB - same | 8 KB (-75%) | 4 KB (-87.5%) |
| Max Clock Frequency | 48 MHz | 48 MHz - same | 48 MHz - same | 48 MHz - same |
| Sleep Current | 200 nA | 200 nA - same | 200 nA - same | 200 nA - same |
| Supply Voltage | 1.6 V to 3.6 V | 1.6 V to 3.6 V - same | 1.6 V to 3.6 V - same | 1.6 V to 3.6 V - same |
| USB | Full-Speed USB 2.0 | Full-Speed USB 2.0 - same | Full-Speed USB 2.0 - same | Full-Speed USB 2.0 - same |
| Touch (PTC) | Yes, 256 channels | Yes, 256 channels - same | Yes, 256 channels - same | Yes, fewer channels |
Diferenciadores clave
- Industry-leading 200 nA Sleep current with full SRAM retention (frente a ATSAMD21G18A (SAM D21 family))
- Integrated AES-128 / AES-256 hardware cryptographic engine (frente a ATSAML21G17B-ANT (same family, lower Flash))
- 48-pin TQFP with Full-Speed USB and maximum peripheral set (frente a ATSAML21E18B-ANT (32-pin))
Notas de diseño
Place a 100 nF ceramic decoupling capacitor within 2 mm of each VDD pin (5, 24, 38, 44) and a single 4.7 uF bulk capacitor near the device. The SAM L21 datasheet specifies that supply ripple above 50 mVpk can cause brown-out resets, especially at low VDD (1.6 V). Use X7R or X5R ceramic capacitors (not Y5V) to maintain capacitance at 3.3 V bias. For battery-powered designs, add a 10 ohm ferrite bead on VDD to suppress switching noise from external radios or sensors.
Route the 48 MHz crystal traces (XIN, XOUT) as short as possible, symmetrically matched in length, and guarded by a ground plane on both sides. Keep the crystal within 5 mm of the MCU to minimize stray capacitance. According to the SAM L21 family datasheet, the load capacitor values must be calculated based on the crystal's CL specification and the pin capacitance (typically 2-3 pF each side). Add a 1 M ohm parallel resistor across the crystal to bias the oscillator and reduce startup time.
Avoid configuring the SERCOM peripheral on pins that conflict with PTC touch channels or ADC analog inputs - the SAM L21 pin multiplexing is complex and the same physical pin can serve different peripheral functions. When using USB, ensure the VDDUSB pin is powered even if USB is not used (tie to VDD) to prevent unwanted leakage. The NVMCTRL (Flash controller) requires the NVMCTRL_CTRLB register to be configured for write/erase operations; failing to do so is a common source of failed firmware updates.
Información de cumplimiento
RoHS and REACH compliant per Microchip product page. Lead-free (Pb-free) reflow-compatible. Halogen-free per Microchip green compliance statement. Not AEC-Q100 qualified - this is the industrial / consumer grade variant. For automotive, evaluate the SAM L21 AEC-Q100 versions if available.