{"id":3012,"date":"2026-05-29T04:38:58","date_gmt":"2026-05-29T04:38:58","guid":{"rendered":"https:\/\/materialparts.com\/atmega328-au\/"},"modified":"2026-05-29T06:56:28","modified_gmt":"2026-05-29T06:56:28","slug":"atmega328-au","status":"publish","type":"post","link":"https:\/\/materialparts.com\/zh\/atmega328-au\/","title":{"rendered":"ATMEGA328-AU"},"content":{"rendered":"<h2>\u4ea7\u54c1\u6982\u89c8<\/h2>\n<p>The Microchip ATMEGA328-AU is an 8-bit AVR RISC microcontroller from the megaAVR family, featuring 32 KB ISP Flash, 2 KB SRAM, and 1 KB EEPROM in a TQFP-32 package. Running at up to 20 MHz with 23 programmable I\/O lines, it includes an 8-channel 10-bit ADC, 6 PWM channels, USART, SPI, and I2C interfaces. Though now Not Recommended for New Designs (NRND), it remains widely available and used in legacy and Arduino platforms.<\/p>\n<h2>\u4e3b\u8981\u89c4\u683c<\/h2>\n<table>\n<tr>\n<td>\u6838\u5fc3<\/td>\n<td>8-bit AVR RISC<\/td>\n<\/tr>\n<tr>\n<td>Max Frequency<\/td>\n<td>20 MHz<\/td>\n<\/tr>\n<tr>\n<td>Flash Memory<\/td>\n<td>32 KB (ISP, Read-While-Write)<\/td>\n<\/tr>\n<tr>\n<td>SRAM<\/td>\n<td>2 KB<\/td>\n<\/tr>\n<tr>\n<td>EEPROM<\/td>\n<td>1 KB<\/td>\n<\/tr>\n<tr>\n<td>I\/O Pins<\/td>\n<td>23<\/td>\n<\/tr>\n<tr>\n<td>ADC<\/td>\n<td>8-channel 10-bit (TQFP\/QFN packages)<\/td>\n<\/tr>\n<tr>\n<td>PWM Channels<\/td>\n<td>6<\/td>\n<\/tr>\n<tr>\n<td>\u8ba1\u65f6\u5668<\/td>\n<td>2\u00d7 8-bit, 1\u00d7 16-bit<\/td>\n<\/tr>\n<tr>\n<td>\u4ea4\u6d41<\/td>\n<td>1\u00d7 USART, 2\u00d7 SPI, 1\u00d7 I2C (TWI)<\/td>\n<\/tr>\n<tr>\n<td>\u7535\u6e90\u7535\u538b<\/td>\n<td>1.8 V ~ 5.5 V<\/td>\n<\/tr>\n<tr>\n<td>\u5305\u88c5<\/td>\n<td>TQFP-32 (7\u00d77 mm)<\/td>\n<\/tr>\n<tr>\n<td>\u5de5\u4f5c\u6e29\u5ea6<\/td>\n<td>-40\u00b0C ~ +85\u00b0C<\/td>\n<\/tr>\n<tr>\n<td>Power Consumption<\/td>\n<td>0.2 mA @ 1 MHz, 1.8V<\/td>\n<\/tr>\n<\/table>\n<h2>\u7279\u70b9<\/h2>\n<ul>\n<li>High-performance AVR RISC architecture with 131 instructions and single-cycle execution<\/li>\n<li>32 KB ISP Flash with Read-While-Write capability<\/li>\n<li>32 general-purpose working registers directly connected to ALU<\/li>\n<li>8-channel 10-bit ADC with hardware oversampling support<\/li>\n<li>Six PWM channels for motor control and LED dimming<\/li>\n<li>Five software-selectable power saving modes (Idle, ADC Noise Reduction, Power-save, Power-down, Standby)<\/li>\n<li>Programmable watchdog timer with independent oscillator<\/li>\n<\/ul>\n<h2>\u5e94\u7528<\/h2>\n<ul>\n<li>Arduino Uno and compatible development boards<\/li>\n<li>Embedded control and automation<\/li>\n<li>Sensor interface and data acquisition<\/li>\n<li>Consumer electronics and appliances<\/li>\n<li>Motor control and LED lighting<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Product Overview The Microchip ATMEGA328-AU is an 8-bit AVR RISC microcontroller from the megaAVR family, featuring 32 KB ISP Flash, 2 KB SRAM, and 1 KB EEPROM in a TQFP-32 package. Running at up to 20 MHz with 23 programmable I\/O lines, it includes an 8-channel 10-bit ADC, 6 PWM channels, USART, SPI, and I2C [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[13,25],"tags":[],"chip_brand":[134],"class_list":["post-3012","post","type-post","status-publish","format-standard","hentry","category-integrated-circuits-ics","category-microcontrollers-mcu","chip_brand-microchip"],"acf":{"brief_explanation":"8-bit AVR MCU, 20MHz, 32KB Flash, 2KB SRAM, TQFP-32, NRND","date_code":"","package_case":"TQFP-32 (7\u00d77\u00d71.05 mm)","in_stock":13010,"datasheet":"https:\/\/ww1.microchip.com\/downloads\/en\/DeviceDoc\/Atmel-7810-Automotive-Microcontrollers-ATmega328P_Datasheet.pdf","price":"$2.15 @ 1pc","product_introduction":"The ATMEGA328-AU from Microchip Technology (formerly Atmel) is an 8-bit AVR RISC-based microcontroller from the megaAVR family, offering 32 KB of In-System Programmable Flash with Read-While-Write capabilities, 2 KB of SRAM, and 1 KB of EEPROM. The device achieves throughputs approaching 1 MIPS per MHz, balancing power consumption and processing speed with up to 20 MIPS at 20 MHz. It features 23 programmable I\/O lines, 32 general-purpose working registers, three flexible timer\/counters with compare modes, internal and external interrupts, a serial programmable USART, a byte-oriented Two-Wire serial interface (I2C), an SPI serial port, and a 6-channel 10-bit A\/D converter. The device operates between 1.8 V and 5.5 V. Note: This device is now classified as Not Recommended for New Designs (NRND); the ATMEGA328PB is the recommended upgrade path.","working_principle":"The ATMEGA328-AU uses a modified Harvard architecture with separate program and data memory spaces connected by dedicated buses. The AVR CPU core features 32 general-purpose 8-bit registers (R0-R31), all directly connected to the Arithmetic Logic Unit (ALU), enabling single-cycle execution of most instructions. Registers R26-R31 serve as 16-bit pointer pairs (X, Y, Z) for indirect addressing. The two-stage pipeline (fetch and execute) enables 1 MIPS per MHz throughput. The Flash memory stores the program and can be reprogrammed in-system via SPI. The 2 KB SRAM provides fast data access, while the 1 KB EEPROM offers non-volatile data storage that survives power cycles. Power management includes five modes: Idle (CPU stopped, peripherals running), ADC Noise Reduction (CPU stopped, ADC active), Power-save (timer running), Power-down (everything stopped except watchdog), and Standby (oscillator running but not driving CPU). Brown-out detection with configurable thresholds prevents erratic operation during voltage dips.","pin_description":"<table><tr><th>Pin<\/th><th>Name<\/th><th>Type<\/th><th>Function<\/th><\/tr><tr><td>1<\/td><td>PD3 (INT1\/OC2B)<\/td><td>I\/O<\/td><td>Port D, external interrupt 1 \/ Timer2 output compare B<\/td><\/tr><tr><td>2-5<\/td><td>PD4-PD7<\/td><td>I\/O<\/td><td>Port D general I\/O, various alternate functions<\/td><\/tr><tr><td>6-7<\/td><td>XTAL1\/XTAL2<\/td><td>Clock<\/td><td>External crystal oscillator connections<\/td><\/tr><tr><td>8<\/td><td>GND<\/td><td>Power<\/td><td>Ground<\/td><\/tr><tr><td>9-10<\/td><td>VCC, GND<\/td><td>Power<\/td><td>Digital supply and ground<\/td><\/tr><tr><td>11-12<\/td><td>PC6 (RESET), PC5 (ADC5\/SCL)<\/td><td>I\/O<\/td><td>Reset pin, ADC5\/I2C clock<\/td><\/tr><tr><td>13-19<\/td><td>PC4-PC0 (ADC4-ADC0\/SDA)<\/td><td>I\/O<\/td><td>Port C, ADC inputs, I2C data<\/td><\/tr><tr><td>20<\/td><td>AVCC<\/td><td>Power<\/td><td>ADC power supply<\/td><\/tr><tr><td>21<\/td><td>AREF<\/td><td>Analog<\/td><td>ADC reference voltage<\/td><\/tr><tr><td>22-28<\/td><td>PB7-PB0<\/td><td>I\/O<\/td><td>Port B, SPI, timer I\/O, crystal<\/td><\/tr><tr><td>29-32<\/td><td>PD0-PD2<\/td><td>I\/O<\/td><td>Port D, USART RX\/TX, INT0<\/td><\/tr><\/table>","application_scenarios":"<ul><li>Arduino ecosystem: Core MCU for Arduino Uno boards, enabling rapid prototyping and education in embedded systems<\/li><li>Sensor nodes: Data acquisition from environmental sensors with low-power sleep modes for battery operation<\/li><li>Motor control: BLDC and stepper motor control using 6-channel PWM and timer capture\/compare<\/li><li>Consumer appliances: Simple control logic in home appliances, white goods, and personal care devices<\/li><li>LED lighting: PWM-based dimming and color mixing controllers for architectural and decorative lighting<\/li><\/ul>","alternative_models":"<table><tr><th>Manufacturer<\/th><th>Part Number<\/th><th>Package<\/th><th>Notes<\/th><\/tr><tr><td>Microchip<\/td><td>ATMEGA328PB-AU<\/td><td>TQFP-32<\/td><td>Recommended replacement, adds 2nd USART, SPI, I2C<\/td><\/tr><tr><td>Microchip<\/td><td>ATMEGA328P-AU<\/td><td>TQFP-32<\/td><td>picoPower version, lower power consumption<\/td><\/tr><tr><td>Microchip<\/td><td>ATMEGA328P-PU<\/td><td>PDIP-28<\/td><td>Through-hole DIP version for breadboard use<\/td><\/tr><tr><td>GigaDevice<\/td><td>GD32E230F8P6<\/td><td>TSSOP-20<\/td><td>ARM Cortex-M23, 72MHz, modern alternative<\/td><\/tr><tr><td>Renesas<\/td><td>RA2E1A4A2CFM#AA0<\/td><td>LQFP-32<\/td><td>ARM Cortex-M23, 32MHz, low-power alternative<\/td><\/tr><tr><td>Microchip<\/td><td>PIC32MX270F256D-50I\/ML<\/td><td>QFN-28<\/td><td>32-bit MIPS, 50MHz, more Flash\/RAM<\/td><\/tr><\/table>"},"_links":{"self":[{"href":"https:\/\/materialparts.com\/zh\/wp-json\/wp\/v2\/posts\/3012","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/materialparts.com\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/materialparts.com\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/materialparts.com\/zh\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/materialparts.com\/zh\/wp-json\/wp\/v2\/comments?post=3012"}],"version-history":[{"count":1,"href":"https:\/\/materialparts.com\/zh\/wp-json\/wp\/v2\/posts\/3012\/revisions"}],"predecessor-version":[{"id":3027,"href":"https:\/\/materialparts.com\/zh\/wp-json\/wp\/v2\/posts\/3012\/revisions\/3027"}],"wp:attachment":[{"href":"https:\/\/materialparts.com\/zh\/wp-json\/wp\/v2\/media?parent=3012"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/materialparts.com\/zh\/wp-json\/wp\/v2\/categories?post=3012"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/materialparts.com\/zh\/wp-json\/wp\/v2\/tags?post=3012"},{"taxonomy":"chip_brand","embeddable":true,"href":"https:\/\/materialparts.com\/zh\/wp-json\/wp\/v2\/chip_brand?post=3012"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}