ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
ComparisonATMega328 "Normal Arduino"STM32 "bluepill"Diffrence
2
"Free" GPIOs20277 more
3
5V or less compatible ADCAll 6None-
4
5V or less compatible GPIO pinsAll 20Only 18 (only in read)-
5
ADC bits10 "2^10 =1024"12 "2^12=4096"better
6
ADC pins6104 more
7
CAN busNoneYesbetter
8
EEPROM1024bytesVirtual-
9
FLASH memory32Kb64Kb or 128Kbtwice or quadruple
10
IIC ports121 more
11
Logic level5V or 3.3VOnly 3.3V-
12
MCU Frequency16Mhz>=72MHz4times faster
13
PWM pins61610 more
14
PWM resolution8 "2^8=256"16 "2^16=65536"ultimately-better
15
RTC builtinNOYesbetter
16
Serial ports132 more
17
SPI ports121 more
18
SRAM2Kb20kb10 times more
19
USBNOYesbetter
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100