ATmega328
≈ 2 min read
Names in other languages
- ČeštinaATmega328
- EnglishATmega328
- EspañolAtmega328
- MagyarATmega328
- PortuguêsATmega328
- PortuguêsATmega328
- RomânăAtmega328
- 中文ATmega328
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
-28N) -32) The ATmega328 is a single-chip microcontroller created by Atmel in the megaAVR family (later Microchip Technology acquired Atmel in 2016). It has a modified Harvard architecture 8-bit RISC processor core.
How it works
-28N) -32) The ATmega328 is a single-chip microcontroller created by Atmel in the megaAVR family (later Microchip Technology acquired Atmel in 2016). It has a modified Harvard architecture 8-bit RISC processor core. [[Image:ATmega328P 28-PDIP fixed.svg|thumb|upright=1.4|Pinout of ATmega 48A/PA/88A/PA/168A/PA/328/P in 28-PDIP (datasheet ) Reliability qualification shows that the projected data retention failure rate is much less than over 20 years at 85 °C or 100 years at 25 °C.
Evidence and sources
Programming mode is entered when PAGEL (PD7), XA1 (PD6), XA0 (PD5), BS1 (PD4) is set to zero. RESET pin to 0 V and V CC to 0 V. V CC is set to 4.5–5.5 V. Wait 60 μs, and RESET is set to 11.5–12.5 V. Wait more than 310 μs. Set XA1:XA0:BS1:DATA = , pulse XTAL1 for at least 150 ns , pulse WR to zero. This starts the chip erase. Wait until RDY/BSY (PD1) goes high. XA1:XA0:BS1:DATA = , XTAL1 pulse, pulse WR to zero. This is the flash write command. And so on.
Serial data to the MCU is clocked on the rising edge and data from the MCU is clocked on the falling edge. Power is applied to V CC while RESET and SCK are set to zero. Wait for at least 20 ms and then the programming enable serial instruction 0xAC, 0x53, 0x00, 0x00 is sent to the MOSI pin. The second byte (0x53) will be echoed back by the MCU.
Text derived from https://en.wikipedia.org/w/index.php?oldid=1361447896 under CC BY-SA 4.0; modifications have been made.