Introduction To Atmega AVR Series of Microcontrollers: Kavi Arya
Introduction To Atmega AVR Series of Microcontrollers: Kavi Arya
Introduction To Atmega AVR Series of Microcontrollers: Kavi Arya
Kavi Arya
CSE Dept., IIT-Bombay
ERTS LAB
CSE IIT BOMBAY
Microprocessors
A Microprocessor is a processor implemented on
(usually) one integrated circuit.
A processor requires:
• memory for program and data storage
• support logic
• Input and Output ports
ERTS LAB
CSE IIT BOMBAY
ERTS LAB
CSE IIT BOMBAY
ERTS LAB
CSE IIT BOMBAY
Types of Computers (2)
ERTS LAB
CSE IIT BOMBAY
Types of Computers (3)
ERTS LAB
CSE IIT BOMBAY
The AVR family members (1)
ERTS LAB
CSE IIT BOMBAY
The AVR family members (4)
ERTS LAB
CSE IIT BOMBAY
Programs (1)
ERTS LAB
CSE IIT BOMBAY
Programs (2)
ERTS LAB
CSE IIT BOMBAY
Address Space - Data Memory
Addresses are numbers that point to locations in
memory.
ERTS LAB
CSE IIT BOMBAY
Address Space - ata RAM
The first 4352 Data Memory
locations are allocated to on chip
functions:
ERTS LAB
CSE IIT BOMBAY
Address Space - EEPROM
EEPROM Data Memory
ERTS LAB
CSE IIT BOMBAY
Address Space - for Programs
All AVR instructions require a 16-bit (2-byte) program
word.
ERTS LAB
CSE IIT BOMBAY
I/O Address Space
The AVR has a separate 64 byte I/O address space
for I/O ports and peripheral control registers.
ERTS LAB
CSE IIT BOMBAY
Registers
ERTS LAB
CSE IIT BOMBAY
Buses
Buses are the transportation vehicles for (electrical)
signals, including both data and instructions,
between registers,
registers and memory locations,
and among memory locations
ERTS LAB
CSE IIT BOMBAY
ERTS LAB
CSE IIT BOMBAY
ERTS LAB
CSE IIT BOMBAY
Fetch-Execute Cycle
ERTS LAB
CSE IIT BOMBAY
Single Cycle ALU operation
ERTS LAB
CSE IIT BOMBAY
References
• AVR Datasheet (pls refer)
ATMEGA1280-2560 detailed.pdf
– Blockdiagram (3.1)
– AVR CPU Core (7.1 – 7.8 + refs)
– AVR Memory (8.0)
– System clock & clock options (10.0)
– Power management & sleep modes (11.0)
– System control & reset (12.0)
– I/O ports (13.0)
ERTS LAB
CSE IIT BOMBAY
Homework
• Read section 5-13 (except sect.9) of AVR
datasheet.
• Queries in next session
• Be prepared for surprise quizzes
• ATMEGA1280-2560 detailed.pdf
ERTS LAB
CSE IIT BOMBAY