Introduction To AVR Microcontroller Atmel Atmega16
Introduction To AVR Microcontroller Atmel Atmega16
ATMEGA16
Robo India
http://roboindia.com
OVERVIEW
The
ATmega16
CMOS
8-bit
is
low-power
microcontroller
OVERVIEW
WHAT IS
CMOS
8-bit microcontroller
RISC Architecture
CMOS
CMOS -Complementary Metal Oxide
Semiconductor
CMOS is a technology for constructing
integrated circuits
Two important characteristics of CMOS
OVERVIEW
WHAT IS
CMOS
8-bit microcontroller
RISC Architecture
X-BIT
MICROCONTROLLER
8 bit : 00000000 capable of doing
number up to 255 (0-255)
16 bit: 00000000_00000000 capable
of doing numbers up to 65535 (065535)
32 bit:
00000000_00000000_00000000_000
00000 capable of doing numbers up
to 4294967295 (0-4294967295)
OVERVIEW
WHAT IS
CMOS
8-bit microcontroller
RISC Architecture
RISC ARCHITECTURE
RISC stands for Reduced
Instruction Set Computer.
RISC is a type of microprocessor
architecture that utilizes a small,
highly-optimized set of instructions
FEATURE OF
ATMEGA16
16 Kbytes of In-System
Programmable Flash
Program memory with Read-WhileWrite capabilities
512 bytes EEPROM, 1 Kbyte SRAM
32general purpose I/O lines
32 general purpose working registers
FEATURE OF
ATMEGA16
PERIPHERAL
FEATURES
Two 8-bit Timer/Counters
One 16-bit Timer/Counter
Four PWM Channels
8-channel, 10-bit ADC
PERIPHERAL
FEATURES
PERIPHERAL
FEATURES
Operating Voltages
2.7V - 5.5V for ATmega16L
4.5V - 5.5V for ATmega16
Speed Grades
0 - 8 MHz for ATmega16L
0 - 16 MHz for ATmega16
Power Consumption @ 1 MHz, 3V, and 25C for
ATmega16L
Active: 1.1 mA
Idle Mode: 0.35 mA
Power-down Mode: < 1 A
REGISTER
Register is a data holding place and
very fast memory, its a part of CPU.
Registers serves as connection between
a CPU and a Peripheral device
CPU doesnt give instruction directly to
peripherals or output devices.
REGISTER
CPU doesnt give instruction
directly to peripherals or output
devices.
CPU give output by writing
registers
CPU take input by reading registers
WRITING REGISTER
READING REGISTER
REGISTER IN CPU
ATMEGA16 PIN
DIAGRAM
ATMEGA16 PIN
DIAGRAM
INPUT/OUTPUT
PORTS
Atmega16 have total of
40 pins
32 I/O pins..
PORTA = 8 Pins
PORTB = 8 Pins
PORTC = 8 Pins
PORTD = 8 Pins
PIN DESCRIPTION
VCC (PIN11) - Digital supply
voltage.
PIN DESCRIPTION
Port A (PA7..PA0) - Port A serves
as the analog inputs to the A/D
Converter Port A also serves as an
8-bit bi-directional I/O port, if the
A/D Converter is not used. Port
pins can provide internal pull-up
resistors (selected for each bit)
PIN DESCRIPTION
PIN DESCRIPTION
Port B (PB7..PB0) - Port B is an 8bit bi-directional I/O port with
internal pull-up resistors (selected
for each bit). Port B also serves
the functions of various special
features of the ATmega16
PIN DESCRIPTION
PIN DESCRIPTION
Port C (PC7..PC0) - Port C is an 8-bit
bi-directional I/O port with internal
pull-up resistors (selected for each
bit). If the JTAG interface is enabled,
the pull-up resistors on pins
PC5(TDI), PC3(TMS) and PC2(TCK) will
be activated even if a reset occurs.
PIN DESCRIPTION
PIN DESCRIPTION
Port D (PD7..PD0) - Port D is an 8bit bi-directional I/O port with
internal pull-up resistors (selected
for each bit). Port D also serves
the functions of various special
features of the ATmega16
PIN DESCRIPTION
PIN DESCRIPTION
RESET - Reset Input. A low level on
this pin for longer than the
minimum pulse length will
generate a reset. Shorter pulses
are not guaranteed to generate a
reset.
PIN DESCRIPTION
AVCC - AVCC is the supply voltage
pin for Port A and the A/D
Converter. It should be externally
connected to VCC, even if the ADC
is not used. If the ADC is used, it
should be connected to VCC
through a low-pass filter.
AREF - AREF is the analog
reference pin for the A/D
Converter.
STACK POINTER
SLEEP MODE
SELECTION
RESET
RESET
INTERRUPT HANDLING
INTERRUPT HANDLING
THANKS