beautypg.com

Architectural overview, Atmega161(l) – Rainbow Electronics ATmega161L User Manual

Page 7

background image

7

ATmega161(L)

1228C–AVR–08/02

Architectural
Overview

The fast-access Register File concept contains 32 x 8-bit general purpose working reg-
isters with a single clock cycle access time. This means that during one single clock
cycle, one Arithmetic Logic Unit (ALU) operation is executed. Two operands are output
from the Register File, the operation is executed and the result is stored back in the
Register File – in one clock cycle.

Six of the 32 registers can be used as three 16-bit indirect address register pointers for
Data Space addressing – enabling efficient address calculations. One of the three
address pointers is also used as the address pointer for the constant table look-up func-
tion. These added function registers are the 16-bit X-register, Y-register and Z-register.

The ALU supports arithmetic and logic functions between registers or between a con-
stant and a register. Single register operations are also executed in the ALU. Figure 4
shows the ATmega161 AVR RISC microcontroller architecture.

Figure 4. The ATmega161 AVR RISC Architecture

8K x 16

Program

Memory

Instruction

Register

Instruction

Decoder

Program

Counter

Control Lines

32 x 8

General

Purpose

Registers

ALU

Status

and Control

Interrupt

Unit

SPI

Unit

8-bit

Timer/Counter

with PWM

and RTC

Watchdog

Timer

Analog

Comparator

32

I/O Lines

512 x 8

EEPROM

Data Bus 8-bit

Serial

UART0

16-bit

Timer/Counter

with PWM

8-bit

Timer/Counter

with PWM

1024 x 8

Data

SRAM

Direct Addressing

Indirect Addressing

Serial

UART1