This presentation of Robo India is expressing the introduction to AVR microcontroller series microcontroller Atmel Atmega 16.
This presentation contains all one need to learn AVR microncontoller, If you dont want to read hundreds of pages of data sheet then it is the best solution for you.
It is to be noted that all of the microcontrollers of AVR family behave in same manner. So this documents is suitable for you if you want to learn any of the micrcocontroller of AVR family.
We welcome you queries and views. We are fond at;
website: http://roboindia.com
mail: info@roboindia.com
4. • CMOS -Complementary Metal Oxide
Semiconductor
• CMOS is a technology for constructing
integrated circuits
• Two important characteristics of CMOS devices
are high noise immunity and low static power
consumption.
Click here to visit -ROBO INDIA
6. • 8 bit : 00000000 capable of doing number
up to 255 (0-255)
• 16 bit: 00000000_00000000 capable of
doing numbers up to 65535 (0-65535)
• 32 bit:
00000000_00000000_00000000_0000000
0 capable of doing numbers up to
4294967295 (0-4294967295)
Click here to visit -ROBO INDIA
8. • RISC stands for Reduced Instruction Set
Computer.
• RISC is a type of microprocessor architecture
that utilizes a small, highly-optimized set of
instructions
Click here to visit -ROBO INDIA
9. • 16 Kbytes of In-System Programmable Flash
• Program memory with Read-While-Write
capabilities
• 512 bytes EEPROM, 1 Kbyte SRAM
• 32general purpose I/O lines
• 32 general purpose working registers
Click here to visit -ROBO INDIA
10. • Write/Erase Cycles: 10,000 Flash/100,000
EEPROM
• Data retention: 20 years at 85°C/100 years at
25°C(1)
• Programming Lock for Software Security
• Up to 16 MIPS Throughput at 16 MHz
• 512 Bytes EEPROM
Click here to visit -ROBO INDIA
11. • Two 8-bit Timer/Counters
• One 16-bit Timer/Counter
• Four PWM Channels
• 8-channel, 10-bit ADC
Click here to visit -ROBO INDIA
12. • Programmable Watchdog Timer
• Six Sleep Modes:
– Idle
– ADC Noise Reduction
– Power-save
– Power-down
– Standby
– Extended Standby
Click here to visit -ROBO INDIA
13. • 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 25°C for ATmega16L
– Active: 1.1 mA
– Idle Mode: 0.35 mA
– Power-down Mode: < 1 µA
Click here to visit -ROBO INDIA
14. • Register is a data holding place and very
fast memory, it’s a part of CPU.
• Registers serves as connection between a
CPU and a Peripheral device
• CPU doesn’t give instruction directly to
peripherals or output devices.
Click here to visit -ROBO INDIA
15. • CPU doesn’t give instruction directly to
peripherals or output devices.
• CPU give output by writing registers
• CPU take input by reading registers
Click here to visit -ROBO INDIA
20. Atmega16 have total of 40 pins
32 I/O pins..
PORTA = 8 Pins
PORTB = 8 Pins
PORTC = 8 Pins
PORTD = 8 Pins
Click here to visit -ROBO INDIA
21. • VCC (PIN11) - Digital supply voltage.
• GND (PIN12) - Ground
Click here to visit -ROBO INDIA
22. • 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)
Click here to visit -ROBO INDIA
24. • Port B (PB7..PB0) - Port B is an 8-bit 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
Click here to visit -ROBO INDIA
26. • 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.
Click here to visit -ROBO INDIA
28. • Port D (PD7..PD0) - Port D is an 8-bit 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
Click here to visit -ROBO INDIA
30. • 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.
Click here to visit -ROBO INDIA
31. • 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.
Click here to visit -ROBO INDIA
43. In case of queries please write us-
info@roboindia.com
www.roboindia.com
Click here to visit -ROBO INDIA
Editor's Notes
CMOS = COMPLEMENTRY , NOISE IMUNE , LOW POWER CONSUMPTION
Qn : now convert 32 bit binary data to decimal upto 255 , 65535 , 4294967295
Reduced Instruction Set Computer , better then cisc
16 KB FLASH MEMORY
512 byte EEPROM
WRITE CYCLE – 10K
ERASE CYCLE – 100K
8 and 16 Bit timer/counter
4 PWM
8 channel 10 bit ADC
Idle
ADC NOISE REDUCTION
POWER SAVEPOWER DOWNSTANDBYEXTENDED STANDBY
The ADC features a noise canceler that enables conversion during sleep mode to reduce noise
induced from the CPU core and other I/O peripherals.
2.7 – 5.5
QN SPEED GRADE EXPLAIN
PB7- Master Clock output, Slave Clock input
JTAG – JOINT TEST ACTION GROUP
TCK , TMS , TDI are USED IN TAP – TEST ACCESS PORT
Timer Oscillator pin 1: When the AS2 bit in ASSR is set (one) to enable asynchronous
clocking of Timer/Counter2
JTAG – JOINT TEST ACTION GROUP
TCK , TMS , TDI are USED IN TAP – TEST ACCESS PORT
SP used for storing temporary data
for storing local variables and for storing
return addresses after interrupts