L02 - AVR 8-bit Architecture

(Micro) processor, computer, controller

AVR Architecture

RISC Harvard Architecture

General 8-Bit AVR Architecture Family

Many variants of the AVR 8-bit μ\muC exist, differ in

Pipeline

Execution timing

alt

ATmega 169P

8-bit AVR Microcontroller with 16K Bytes In-System Programmable Flash ATmega169P

Device Families

families in this context refers to a similar group of devices. It is common that a general datasheet will discuss the group of devices in one document, while a supplemental device-specific detail datasheet might exist as well. Look for both.

ATmega169P Full Architecture

Source: AVR Data sheet

Program Memory Map

program memory

Data Memory Map (DMP)

data memory

Special Function Registers (SFRs)

I/O Registers

Data Memory

SRAM Access Time

(Overview, will review instructs in detail later)

alt

EEPROM Space

EEPROM

Non-Volatile Memory Burnout during code development

Take precaution to avoid "burn out" of non-volatile memory during code development with careless quantities of (repetitive) erase and writes to the same locations. Write protective, well-tested low-level routines first, and consider ways to test and debug code without using EEPROM at first. You can rely on logging (print) and emulation code (fake reading and writing). Later, we will learn about wear-leveling approaches to distribute writes in non-volatile memory.