In this chapter, we’ll review the ATmega328P-PU 8-bit microcontroller. It has three types of memory: 32kB ISP (in-system programming) flash memory where sketches are stored, 1kB EEPROM (electrically erasable programmable read-only memory) for long-term data storage and 2kB SRAM (static random-access memory) for storing variables when a sketch is running. Information in flash memory and EEPROM is retained when power to the microcontroller is removed.
There are three communication modes: a serial programmable USART ...