ATSAMD21G16B-AF - 48MHz Cortex-M0+ 64KB MCU | Microchip
MPN: ATSAMD21G16B-AF ✓ ActiveATSAMD21G16B-AF Overview
A microcontroller is a programmable system-on-chip that integrates a processor core, nonvolatile program memory, volatile data memory, and peripheral interfaces onto one device. The ATSAMD21G16B belongs to the SAM D21 family, a low-power embedded-control series built around the Arm Cortex-M0+ instruction set. Its combination of 48 MHz processing performance, 64 KB Flash, and 8 KB SRAM makes it suitable for compact control systems that require deterministic embedded software and a moderate range of general-purpose I/O.
Key device attributes include an Arm Cortex-M0+ core operating at up to 48 MHz, 64 KB of Flash organized as 64K x 8, and 8 KB of SRAM. The part is offered in a 48-pin TQFP package with a 7 x 7 mm body. According to Microchip's SAM D21 documentation, the series provides identical peripheral modules, a consistent linear address map, and hex-compatible code across compatible family members, which simplifies migration within the SAM D21 portfolio.
The ATSAMD21G16B-AF is identified as a functional-safety-oriented SAM D21G variant, distinguishing it from the general-purpose ATSAMD21G16 product listing. The B revision and functional-safety designation suit regulated embedded-control applications where device qualification, documentation, and consistent peripheral architecture are important. The family operates at a maximum clock frequency of 48 MHz and is specified for 3.3 V operation.
Typical uses include compact industrial controllers, low-power sensor nodes, building-control modules, appliance-control boards, and embedded subsystems that need a 48-pin interface count. The 7 x 7 mm TQFP footprint supports dense PCB layouts, while 64 KB Flash accommodates application firmware, configuration tables, and boot code. The 8 KB SRAM supports working memory, stack operations, buffers, and peripheral data handling.
When designing the PCB, confirm the exact 48-pin symbol and pin multiplexing in the Microchip pin-description tables before routing the board. Place decoupling capacitors close to the supply pins, route sensitive analog and communication signals away from switching nodes, and program unused I/O pins for their recommended termination states. Firmware development typically begins with the SAM D21 peripheral configuration and clock initialization sequence.
Drop-in alternatives for ATSAMD21G16B-AF — same package, pin-to-pin compatible. Different-package parts requiring PCB rework are excluded.
Variants in this series
Same-series models that are drop-in compatible with ATSAMD21G16B-AF (same form factor and footprint) — differing in Package, RoHS Status, Operating Temperature, DAC, USB.
ATSAMD21G16B-AU
✅ Drop-InContact for price
View Datasheet →ATSAMD21G16B-AFT
✅ Drop-InContact for price
View Datasheet →ATSAMD21G16B-AUT
✅ Drop-InContact for price
View Datasheet →ATSAMD21G16B-MF
✅ Drop-InContact for price
View Datasheet →ATSAMD21G16B-MFT
✅ Drop-InContact for price
View Datasheet →ATSAMD21G16B-AF Maximum Ratings & Electrical Characteristics
| Product Type | 32-bit low-power ARM Cortex-M0+ microcontroller |
| Manufacturer | Microchip Technology |
| CPU Core | Arm Cortex-M0+ |
| Maximum CPU Frequency | 48 MHz |
| Flash Memory | 64 KB (64K x 8) |
| SRAM | 8 KB |
| Supply Voltage | 3.3 V |
| Package | 48-pin TQFP, 7 x 7 mm |
| Mounting Type | Surface mount |
| Maximum Operating Temperature | 125 °C |
| Functional Safety Classification | Functional Safety (FuSa) SAM D21G variant |
| Product Family | SAM D21G |
| Bit Architecture | 32-bit |
| CoreMark Performance | 2.46 CoreMark/MHz |
ATSAMD21G16B-AF 48-pin tqfp, 7 x 7 mm Pin Configuration Guide
Pin configuration for ATSAMD21G16B-AF (48-pin tqfp, 7 x 7 mm package). This digital IC includes GPIO, communication interfaces (UART, SPI, I2C), and power pins. Refer to the manufacturer datasheet for alternate pin functions and configuration options. Essential for embedded system design and PCB layout.
No detailed pinout data available for ATSAMD21G16B-AF.
Refer to the datasheet for full pin configuration.
Typical Applications
ATSAMD21G16B-AF is suitable for 6 applications: Industrial Sensor and Control Node, Building Control and HVAC Module, Low-Power Connected Edge Device, Appliance and Embedded Control Board, Functional-Safety-Oriented Embedded System, Compact Communication Gateway.
Industrial Sensor and Control Node
The ATSAMD21G16B-AF fits compact industrial sensor nodes that combine periodic measurement, local filtering, and actuator control. Its 48 MHz Arm Cortex-M0+ core provides deterministic execution for communication stacks and control loops, while 64 KB of Flash accommodates application firmware and configuration tables. The 8 KB SRAM is sufficient for working variables, stack usage, and packet buffers in a network-attached node. The 48-pin TQFP package exposes the GPIO and peripheral options needed for sensors, local displays, and digital outputs. A 125 °C maximum operating temperature supports designs where the electronics are positioned near heat-generating equipment, provided the complete operating-temperature limits are confirmed in Microchip datasheet 40001882A.
Recommended
Building Control and HVAC Module
The ATSAMD21G16B-AF is appropriate for building-control modules that supervise sensors, maintain set points, and coordinate heating, cooling, or ventilation outputs. The 48 MHz Cortex-M0+ core can handle time-critical control logic alongside serial communication, and 64 KB of Flash provides room for firmware, calibration values, and device schedules. Its 8 KB SRAM supports communication buffers without requiring an external memory device. The 48-TQFP footprint offers a practical balance between I/O access and board area for a controller mounted in an enclosure. Use the 3.3 V supply rating and 125 °C temperature indication as part of the enclosure and power-supply design, and validate long-duration accuracy at the highest expected ambient temperature.
Recommended
Low-Power Connected Edge Device
The ATSAMD21G16B-AF supports low-power connected edge devices that sample local inputs, apply configuration, and transmit compact data packets. Its Cortex-M0+ architecture, 64 KB Flash, and 8 KB SRAM are well matched to embedded sensing and gateway-lite workloads that do not require a high-end application processor. The device belongs to the low-power SAM D21 family, allowing sleep-mode and clock-control techniques to be evaluated during energy-budget development. Its 48-pin TQFP package provides flexible routing for a radio interface, sensors, status indicators, and service connections. Actual standby performance depends on the active peripherals and firmware configuration, so measure current consumption in each operating mode on the final board rather than relying only on catalog figures.
Recommended
Appliance and Embedded Control Board
The ATSAMD21G16B-AF can serve as the primary controller in an appliance or equipment-control board that requires deterministic digital I/O and moderate firmware storage. The 48 MHz processor handles state-machine logic, user-interface responses, and peripheral servicing, while 64 KB of Flash stores the complete application and 8 KB of SRAM supports runtime data. The 48-pin TQFP package gives designers access to more I/O than a small 32-pin device while remaining compact at 7 x 7 mm. For motor-adjacent or switching-power applications, keep sensitive control paths separated from high-current edges and provide local supply bypassing. Confirm the exact clock, pin, and peripheral configuration for the selected ordering code during schematic review.
Recommended
Functional-Safety-Oriented Embedded System
The ATSAMD21G16B-AF is appropriate for embedded subsystems whose procurement requirements specify a Functional Safety SAM D21G variant. Its 32-bit Cortex-M0+ core, 48 MHz maximum operating frequency, 64 KB Flash, and 8 KB SRAM provide a common foundation for safety-related monitoring and control functions. The 48-pin TQFP package supports integration of sensors, communication links, and discrete outputs while maintaining a compact board outline. Use the 125 °C maximum temperature indication to support thermal design, and review the manufacturer's functional-safety documentation, safety manual assumptions, and device-specific qualification records before using the part in a safety function. The suffix designation alone does not replace system-level hazard analysis.
Recommended
Compact Communication Gateway
The ATSAMD21G16B-AF is suitable for a compact protocol gateway that receives serial commands, validates local data, and forwards status information. The 48 MHz Cortex-M0+ core provides sufficient throughput for lightweight communication tasks, and the 64 KB Flash capacity is practical for protocol stacks, configuration, and update buffers. Its 8 KB SRAM can hold active packet data and protocol state in many designs. The 48-pin TQFP package offers sufficient connections for a host serial interface, secondary communications port, status LEDs, and service inputs. Keep communication traces away from noisy analog sections, provide a clean 3.3 V rail, and validate line-driver levels independently from the microcontroller supply. Pin-multiplexing assignments must be taken from the device-specific pin tables.
Recommended
Recommended Products Summary
Engineering reference data for ATSAMD21G16B-AF — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | ATSAMD21G16B-AU | ATSAMD21G16B-AFT | ATSAMD21G16B-AUT | ATSAMD21G16B-MF | ATSAMD21G16B-MFT |
|---|---|---|---|---|---|---|
| Manufacturer | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 48-TQFP (7x7) | 48-TQFP (7x7) | 48-TQFP (7x7) | 48-TQFP (7x7) | 48-TQFP (7x7) | 48-TQFP (7x7) |
| CPU Core | Arm Cortex-M0+ | Arm Cortex-M0+ | Arm Cortex-M0+ | Arm Cortex-M0+ | Arm Cortex-M0+ | Arm Cortex-M0+ |
| Maximum CPU Frequency | 48 MHz | 48 MHz | 48 MHz | 48 MHz | 48 MHz | 48 MHz |
| Flash Memory | 64 KB | 64 KB | 64 KB | 64 KB | 64 KB | 64 KB |
| SRAM | 8 KB | 8 KB | 8 KB | 8 KB | 8 KB | 8 KB |
Key Differentiators
- Specific functional-safety SAM D21G designation (vs ATSAMD21G16B-AU)
- High operating-temperature indication for embedded industrial control (vs ATSAMD21G16B-AFT)
- Compact 48-pin interface density in a small package (vs ATSAMD21G16)
- Consistent SAM D21 peripheral architecture (vs ATSAMD21G16B-MF)
Design Notes
Create the 48-pin TQFP footprint from the package drawing in Microchip datasheet 40001882A and verify lead pitch, toe geometry, and courtyard dimensions with the PCB assembly team. Because several pins support alternate peripheral functions, freeze the pin-multiplexing plan before routing. Place all supply decoupling capacitors close to their associated pins, keep the ground return path short, and avoid routing high-speed or switching signals beneath the device footprint.
Design the 3.3 V rail for both the 48 MHz operating condition and the required peripheral load. Use the device-specific electrical tables in Microchip datasheet 40001882A for maximum supply voltage, current, and frequency-dependent operating limits. Add local bulk capacitance for transient load changes and ensure the regulator has adequate headroom. Verify brownout and reset behavior during power ramps because firmware execution before supply stabilization can cause unintended pin states.
Assign analog, communication, and high-speed switching pins deliberately rather than accepting the first available routing. Keep sensitive analog inputs away from digital outputs and inductors, provide a quiet analog ground reference where required, and maintain short return paths for serial interfaces. Program unused GPIO pins to a safe state during reset and startup. For timing-sensitive interfaces, check the maximum peripheral clock and pin-multiplexing constraints in the SAM D21 device tables.
Do not substitute the 32-pin ATSAMD21G16 for this 48-pin device without a complete PCB and firmware review. Similarly, do not assume that every ATSAMD21G16B ordering code is interchangeable: packing, temperature grade, qualification, and functional-safety attributes can differ. Rebuild the firmware project with the exact alternative's device definition, verify clock limits, boot configuration, and pin multiplexing, and run regression tests on every peripheral used by the product.
Compliance Information
The product is described as green by the manufacturer distribution listing, but the listing does not provide explicit RoHS, REACH, AEC-Q100, lead-free, halogen-free, or conflict-minerals declarations. Confirm the applicable compliance documents with Microchip before making a certification claim.