ATmega328P vs STM32F103C8T6

ATmega328P is a 32KB 20MHz Microcontroller from Microchip; STM32F103C8T6 is a 64KB 72MHz Microcontroller from STMicroelectronics. Always check both datasheets before substituting one for the other.

ParameterATmega328PSTM32F103C8T6
ManufacturerMicrochipSTMicroelectronics
CategoryMicrocontrollersMicrocontrollers
Max Frequency20MHz72MHz
Max Supply Voltage5.5V3.6V
Memory Size32KB64KB
Memory TypeFLASH,FLASH,
Min Supply Voltage1.8V2V
Number of ADC Channels810
Max Operating Temperature85°C85°C
Min Operating Temperature-40°C-40°C
Core ArchitecturePICARM
Data Bus Width8b32b
InterfaceI2C, SPI, UART, USARTI2C, SPI, USB, CAN, USART
Number of I/Os2337
Number of Timers/Counters33
Package/CaseTQFPLQFP
RAM Size2KB20KB
Height1.2mm1.4mm
Nominal Supply Current—1.7uA
Number of Channels—10
Number of I2C Channels1—
Number of PWM Channels6—
Number of SPI Channels2—
Number of UART Channels1—
Contact PlatingTin—
MountSurface Mount—
Number of A/D Converters—2
Number of Programmable I/O23—
Oscillator TypeInternal—
PeripheralsBrown-out Detect/Reset, POR, PWM, WDT—
Svhc—No SVHC (25-Jun-2025)
Watchdog TimerYes—
Length—7mm
Width—7mm

Highlighted rows differ. “—” means the parameter is not listed for that part.