Datasheet

ATmega48/88/168 Automotive [DATASHEET]
7530K–AVR–07/14
8
3. About Code Examples
This documentation contains simple code examples that briefly show how to use various parts of the device. These code
examples assume that the part specific header file is included before compilation. Be aware that not all C compiler vendors
include bit definitions in the header files and interrupt handling in C is compiler dependent. Please confirm with the C
compiler documentation for more details.
4. AVR CPU Core
4.1 Introduction
This section discusses the AVR
®
core architecture in general. The main function of the CPU core is to ensure correct
program execution. The CPU must therefore be able to access memories, perform calculations, control peripherals, and
handle interrupts.
4.2 Architectural Overview
Figure 4-1. Block Diagram of the AVR Architecture
Status and
Control
Interrupt
Unit
32 x 8
General
Purpose
Registers
ALU
Data Bus 8-bit
Data
SRAM
SPI
Unit
Instruction
Register
Instruction
Decoder
Watchdog
Timer
Analog
Comparator
EEPROM
I/O Lines
I/O Module n
Control Lines
Direct Addressing
Indirect Addressing
I/O Module 2
I/O Module 1
Program
Counter
Flash
Program
Memory