SlideShare a Scribd company logo
1 of 33
1
Contents
• Introduction
• History of AVR
• AVR microcontroller
• Types of AVR microcontrollers
• AVR architecture
• GPIO Registers
• Interfacing
• Timers
• References
• Conclusion
2
Introduction
• AVR stand for ADVANCED VIRTUAL RISC.
• AVR micro controllers is family of RISC microcontrollers from
Atmel.
• AVR was one of the first microcontroller families to use on-
chip flash memory for program storage.
• AVR microcontrollers are very popular, used in numerous
applications, particularly in project prototyping and also in
embedded devices.
3
History of AVR
• AVR is a family of microcontrollers developed by Atmel beginning in
1996.
• The Atmel AVR has 8-bit RISC microcontrollers.
• The AVR architecture was conceived by two students at the
Norwegian Institute of Technology, Alf-Egil Bogen and Vegard Wollan.
4
RISC microcontroller
• RISC stands for Reduced Introduction Set Computer.
• Till 1980 Trend was to build increasingly complex CPUs with complex
set of instructions like (CISC).
• Instruction execute in single cycle.
• RISC architecture CPUs capable of executing only a very limited
simple set of instructions.
5
AVR microcontroller
• Devices range from 1 to 256KB.
• Pin count range from 8 to 100.
• Full code compatibility.
• Pin/feature compatible families.
• One set of development tools.
6
Types of AVR microcontrollers
AVR microcontrollers are obtainable in three
categories:-
• Tiny AVR
• Mega AVR
• Xmega AVR
7
TINY AVR
This microcontroller has Less
memory, small in size, only for
simpler applications.
• 0.5–16 KB program memory.
• 6–32-pin package.
• Small in size.
8
MEGA AVR
• This microcontroller is the most popular having a good amount of
memory up to 256KB, higher no. of inbuilt peripherals and fit for
modest to difficult applications.
• 4–256 KB program memory
• 28–100-pin package
• Extended instruction set
9
ATMEGA16 PIN DIAGRAM
• Atmega16 have total of 40 pins in which 32 are I/O
pins.
• VCC (PIN10) - Digital supply voltage.
• GND (PIN11) - Ground
• 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.
•
10
CONTINUE…
• 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 C (PC7..PC0) - Port C is an 8-bit bi-directional I/O port with internal
pull-up resistors selected for each bit.
• Port D (PD7..PD0) - Port D is an 8-bit bi-directional I/O port with internal
pull-up resistors selected for each bit.
• RESET - Reset Input a low level on this pin for longer than the minimum
pulse length will generate a reset
• AVCC - AVCC is the supply voltage pin for Port A and the A/D Converter.
• AREF - AREF is the analog reference pin for the A/D Converter.
• XTAL 2 - Output to Inverting Oscillator Amplifier.
11
XMEGA AVR
• This microcontroller is used commercially for compound
applications, which need large program memory and also
high speed.
• 16–384 KB program memory
• 44-100 pin
• Extended performance features such as DMA, Event
System.
12
AVR ARCHITECTURE
• ALU
• 32 General Purpose Registers
• Static RAM
• EEPROM
• Flash
• Timer/Counter
• Comparator
• Watch Dog timer
• Protocols: UART, SPI, I2C
• I/O Ports
13
Table 1: Basic registers of ATmega16
GPIO Registers
14
INTERFACING OF LED
• A LED is an acronym for Light Emitting Diode and is basically an
electronic device which emits light when an electric current flows
through it.
15
16
17
Numeric
Value
Dp G F E D C B A Address
0 0 0 1 1 1 1 1 1 0x3F
1 0 0 0 0 0 1 1 0 0x06
2 0 1 0 1 1 0 1 1 0x5B
3 0 1 0 0 1 1 1 1 0x4F
4 0 1 1 0 0 1 1 0 0x66
5 0 1 1 0 1 1 0 1 0x6D
6 0 1 1 1 1 1 0 1 0x7D
7 0 0 0 0 0 1 1 1 0x07
8 0 1 1 1 1 1 1 1 0x7F
9 0 1 1 0 1 1 1 1 0x6F18
Table 2: Truth Table of a CC 7-segment display
7-SEGMENT DISPLAY INTERFACING
19
• The seven segment display is the most common display device used
in many gadgets, and electronic appliances like digital meters, digital
clocks, microwave oven and electric stove, etc.
• Types of 7-Segment Displays:
Common Anode Display
Common Cathode Display
20
21
INTERFACING OF SWITCH
• An electrical switch is any device used to interrupt the flow of
electrons in a circuit. Switches are essentially binary devices they are
either completely on (“closed”) or completely off (“open”).
22
DC MOTOR INTERFACING
• An electric motor is an electrical machine that converts electrical
energy into mechanical energy.
23
24
25
LCD INTERFACING
• LCD (Liquid Crystal Display) screen is
an electronic display module and find a
wide range of applications. A 16x2 LCD
display is very basic module and is very
commonly used in various devices and
circuits.
26
27
28
TIMERS
• Timer is totally independent of the CPU.
• In AVR timers are of two types: 8-bit and 16-bit timers.
TIMER0 – 8-bit timer
TIMER1– 16-bit timer
TIMER2 – 8-bit timer
29
INTERRUPTS
• Interrupts are basically events that require immediate attention by the
microcontroller.
• Atmega16 in total has twenty one (21) interrupts available.
• The available interrupts are categorized in two classes:
External Interrupts
Internal Interrupts
30
Conclusion
• AVR is RISC architecture.
• AVR microcontrollers are very popular, used in numerous applications,
particularly in project prototyping and also in embedded devices.
• Programming is easy.
• AVR is Pipe lined processors resulting in faster execution.
• A watchdog to handle hanging software states is added.
31
REFERENCES
• Mazidi Ali Muhammad, Mazidi Gillispie Janice, “The 8051
Microcontroller and Embedded System using Assembly and C”,
Pearson 2 𝑛𝑑 Edition.
• ATMega16 Datasheet.
32
33

More Related Content

What's hot

Timer counter in arm7(lpc2148)
Timer counter in arm7(lpc2148)Timer counter in arm7(lpc2148)
Timer counter in arm7(lpc2148)Aarav Soni
 
Microcontroller presentation
Microcontroller presentationMicrocontroller presentation
Microcontroller presentationxavierpaulino
 
Microprocessor Presentation
Microprocessor PresentationMicroprocessor Presentation
Microprocessor Presentationalaminmasum1
 
INTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLERINTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLERAnkita Jaiswal
 
Unit II Study of Onchip Peripherals
Unit II Study of Onchip PeripheralsUnit II Study of Onchip Peripherals
Unit II Study of Onchip PeripheralsDr. Pankaj Zope
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architectureDominicHendry
 
Msp 430 architecture module 1
Msp 430 architecture module 1Msp 430 architecture module 1
Msp 430 architecture module 1SARALA T
 
Introduction to arm processor
Introduction to arm processorIntroduction to arm processor
Introduction to arm processorRAMPRAKASHT1
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 80869840596838
 
8096 microcontrollers notes
8096 microcontrollers notes8096 microcontrollers notes
8096 microcontrollers notesDr.YNM
 
Arm modes
Arm modesArm modes
Arm modesabhi165
 
ARM7-ARCHITECTURE
ARM7-ARCHITECTURE ARM7-ARCHITECTURE
ARM7-ARCHITECTURE Dr.YNM
 

What's hot (20)

Timer counter in arm7(lpc2148)
Timer counter in arm7(lpc2148)Timer counter in arm7(lpc2148)
Timer counter in arm7(lpc2148)
 
Microcontroller presentation
Microcontroller presentationMicrocontroller presentation
Microcontroller presentation
 
Microprocessor Presentation
Microprocessor PresentationMicroprocessor Presentation
Microprocessor Presentation
 
Communication protocols - Embedded Systems
Communication protocols - Embedded SystemsCommunication protocols - Embedded Systems
Communication protocols - Embedded Systems
 
INTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLERINTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLER
 
Unit II Study of Onchip Peripherals
Unit II Study of Onchip PeripheralsUnit II Study of Onchip Peripherals
Unit II Study of Onchip Peripherals
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architecture
 
PIC Microcontrollers
PIC MicrocontrollersPIC Microcontrollers
PIC Microcontrollers
 
06. thumb instructions
06. thumb instructions06. thumb instructions
06. thumb instructions
 
80386 Architecture
80386 Architecture80386 Architecture
80386 Architecture
 
Embedded c
Embedded cEmbedded c
Embedded c
 
I2C Protocol
I2C ProtocolI2C Protocol
I2C Protocol
 
Msp 430 architecture module 1
Msp 430 architecture module 1Msp 430 architecture module 1
Msp 430 architecture module 1
 
Introduction to arm processor
Introduction to arm processorIntroduction to arm processor
Introduction to arm processor
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
 
Interfacing using ِAtmega16/32
Interfacing using ِAtmega16/32 Interfacing using ِAtmega16/32
Interfacing using ِAtmega16/32
 
8096 microcontrollers notes
8096 microcontrollers notes8096 microcontrollers notes
8096 microcontrollers notes
 
Arm modes
Arm modesArm modes
Arm modes
 
ARM7-ARCHITECTURE
ARM7-ARCHITECTURE ARM7-ARCHITECTURE
ARM7-ARCHITECTURE
 
Interfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 MicrocontrollerInterfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 Microcontroller
 

Similar to ATmega 16

Overview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontrollerOverview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontrollerRup Chowdhury
 
5. Features of the LPC214X Family.pptx
5. Features of the LPC214X Family.pptx5. Features of the LPC214X Family.pptx
5. Features of the LPC214X Family.pptxSivakumarG52
 
Industrial training report of embedded system and robotics
Industrial training report of embedded system and roboticsIndustrial training report of embedded system and robotics
Industrial training report of embedded system and roboticsPallavi Bharti
 
Introduction2_PIC.ppt
Introduction2_PIC.pptIntroduction2_PIC.ppt
Introduction2_PIC.pptAakashRawat35
 
introduction to embedded systems part 2
introduction to embedded systems part 2introduction to embedded systems part 2
introduction to embedded systems part 2Hatem Abd El-Salam
 
Zigbee based trolley cart access system using rfid
Zigbee based trolley cart access system using rfidZigbee based trolley cart access system using rfid
Zigbee based trolley cart access system using rfidSam Joey
 
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080Vivek Venugopal
 
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERSPIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERSVISHNU KP
 
picuc-151108162917-lva1-app6892 (1).pdf
picuc-151108162917-lva1-app6892 (1).pdfpicuc-151108162917-lva1-app6892 (1).pdf
picuc-151108162917-lva1-app6892 (1).pdfARKARAJSAHA1
 

Similar to ATmega 16 (20)

embedded system
embedded systemembedded system
embedded system
 
Overview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontrollerOverview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontroller
 
digital clock atmega16
digital clock atmega16digital clock atmega16
digital clock atmega16
 
5. Features of the LPC214X Family.pptx
5. Features of the LPC214X Family.pptx5. Features of the LPC214X Family.pptx
5. Features of the LPC214X Family.pptx
 
Parth xyz
Parth xyzParth xyz
Parth xyz
 
Industrial training report of embedded system and robotics
Industrial training report of embedded system and roboticsIndustrial training report of embedded system and robotics
Industrial training report of embedded system and robotics
 
8 bit microcontroller
8 bit microcontroller8 bit microcontroller
8 bit microcontroller
 
Introduction2_PIC.ppt
Introduction2_PIC.pptIntroduction2_PIC.ppt
Introduction2_PIC.ppt
 
Avr microcontroller
Avr microcontrollerAvr microcontroller
Avr microcontroller
 
introduction to embedded systems part 2
introduction to embedded systems part 2introduction to embedded systems part 2
introduction to embedded systems part 2
 
Zigbee based trolley cart access system using rfid
Zigbee based trolley cart access system using rfidZigbee based trolley cart access system using rfid
Zigbee based trolley cart access system using rfid
 
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
 
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERSPIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
 
picuc-151108162917-lva1-app6892 (1).pdf
picuc-151108162917-lva1-app6892 (1).pdfpicuc-151108162917-lva1-app6892 (1).pdf
picuc-151108162917-lva1-app6892 (1).pdf
 
Embedded system
Embedded  systemEmbedded  system
Embedded system
 
Introduction to PIC.pptx
Introduction to PIC.pptxIntroduction to PIC.pptx
Introduction to PIC.pptx
 
Atmega16
Atmega16Atmega16
Atmega16
 
Badal sharma
Badal sharmaBadal sharma
Badal sharma
 
Dsp on an-avr
Dsp on an-avrDsp on an-avr
Dsp on an-avr
 
Avr and arm
Avr and armAvr and arm
Avr and arm
 

Recently uploaded

(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...ranjana rawat
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 

Recently uploaded (20)

(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 

ATmega 16

  • 1. 1
  • 2. Contents • Introduction • History of AVR • AVR microcontroller • Types of AVR microcontrollers • AVR architecture • GPIO Registers • Interfacing • Timers • References • Conclusion 2
  • 3. Introduction • AVR stand for ADVANCED VIRTUAL RISC. • AVR micro controllers is family of RISC microcontrollers from Atmel. • AVR was one of the first microcontroller families to use on- chip flash memory for program storage. • AVR microcontrollers are very popular, used in numerous applications, particularly in project prototyping and also in embedded devices. 3
  • 4. History of AVR • AVR is a family of microcontrollers developed by Atmel beginning in 1996. • The Atmel AVR has 8-bit RISC microcontrollers. • The AVR architecture was conceived by two students at the Norwegian Institute of Technology, Alf-Egil Bogen and Vegard Wollan. 4
  • 5. RISC microcontroller • RISC stands for Reduced Introduction Set Computer. • Till 1980 Trend was to build increasingly complex CPUs with complex set of instructions like (CISC). • Instruction execute in single cycle. • RISC architecture CPUs capable of executing only a very limited simple set of instructions. 5
  • 6. AVR microcontroller • Devices range from 1 to 256KB. • Pin count range from 8 to 100. • Full code compatibility. • Pin/feature compatible families. • One set of development tools. 6
  • 7. Types of AVR microcontrollers AVR microcontrollers are obtainable in three categories:- • Tiny AVR • Mega AVR • Xmega AVR 7
  • 8. TINY AVR This microcontroller has Less memory, small in size, only for simpler applications. • 0.5–16 KB program memory. • 6–32-pin package. • Small in size. 8
  • 9. MEGA AVR • This microcontroller is the most popular having a good amount of memory up to 256KB, higher no. of inbuilt peripherals and fit for modest to difficult applications. • 4–256 KB program memory • 28–100-pin package • Extended instruction set 9
  • 10. ATMEGA16 PIN DIAGRAM • Atmega16 have total of 40 pins in which 32 are I/O pins. • VCC (PIN10) - Digital supply voltage. • GND (PIN11) - Ground • 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. • 10
  • 11. CONTINUE… • 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 C (PC7..PC0) - Port C is an 8-bit bi-directional I/O port with internal pull-up resistors selected for each bit. • Port D (PD7..PD0) - Port D is an 8-bit bi-directional I/O port with internal pull-up resistors selected for each bit. • RESET - Reset Input a low level on this pin for longer than the minimum pulse length will generate a reset • AVCC - AVCC is the supply voltage pin for Port A and the A/D Converter. • AREF - AREF is the analog reference pin for the A/D Converter. • XTAL 2 - Output to Inverting Oscillator Amplifier. 11
  • 12. XMEGA AVR • This microcontroller is used commercially for compound applications, which need large program memory and also high speed. • 16–384 KB program memory • 44-100 pin • Extended performance features such as DMA, Event System. 12
  • 13. AVR ARCHITECTURE • ALU • 32 General Purpose Registers • Static RAM • EEPROM • Flash • Timer/Counter • Comparator • Watch Dog timer • Protocols: UART, SPI, I2C • I/O Ports 13
  • 14. Table 1: Basic registers of ATmega16 GPIO Registers 14
  • 15. INTERFACING OF LED • A LED is an acronym for Light Emitting Diode and is basically an electronic device which emits light when an electric current flows through it. 15
  • 16. 16
  • 17. 17
  • 18. Numeric Value Dp G F E D C B A Address 0 0 0 1 1 1 1 1 1 0x3F 1 0 0 0 0 0 1 1 0 0x06 2 0 1 0 1 1 0 1 1 0x5B 3 0 1 0 0 1 1 1 1 0x4F 4 0 1 1 0 0 1 1 0 0x66 5 0 1 1 0 1 1 0 1 0x6D 6 0 1 1 1 1 1 0 1 0x7D 7 0 0 0 0 0 1 1 1 0x07 8 0 1 1 1 1 1 1 1 0x7F 9 0 1 1 0 1 1 1 1 0x6F18 Table 2: Truth Table of a CC 7-segment display
  • 19. 7-SEGMENT DISPLAY INTERFACING 19 • The seven segment display is the most common display device used in many gadgets, and electronic appliances like digital meters, digital clocks, microwave oven and electric stove, etc. • Types of 7-Segment Displays: Common Anode Display Common Cathode Display
  • 20. 20
  • 21. 21
  • 22. INTERFACING OF SWITCH • An electrical switch is any device used to interrupt the flow of electrons in a circuit. Switches are essentially binary devices they are either completely on (“closed”) or completely off (“open”). 22
  • 23. DC MOTOR INTERFACING • An electric motor is an electrical machine that converts electrical energy into mechanical energy. 23
  • 24. 24
  • 25. 25
  • 26. LCD INTERFACING • LCD (Liquid Crystal Display) screen is an electronic display module and find a wide range of applications. A 16x2 LCD display is very basic module and is very commonly used in various devices and circuits. 26
  • 27. 27
  • 28. 28
  • 29. TIMERS • Timer is totally independent of the CPU. • In AVR timers are of two types: 8-bit and 16-bit timers. TIMER0 – 8-bit timer TIMER1– 16-bit timer TIMER2 – 8-bit timer 29
  • 30. INTERRUPTS • Interrupts are basically events that require immediate attention by the microcontroller. • Atmega16 in total has twenty one (21) interrupts available. • The available interrupts are categorized in two classes: External Interrupts Internal Interrupts 30
  • 31. Conclusion • AVR is RISC architecture. • AVR microcontrollers are very popular, used in numerous applications, particularly in project prototyping and also in embedded devices. • Programming is easy. • AVR is Pipe lined processors resulting in faster execution. • A watchdog to handle hanging software states is added. 31
  • 32. REFERENCES • Mazidi Ali Muhammad, Mazidi Gillispie Janice, “The 8051 Microcontroller and Embedded System using Assembly and C”, Pearson 2 𝑛𝑑 Edition. • ATMega16 Datasheet. 32
  • 33. 33