SlideShare a Scribd company logo
1 of 33
Download to read offline
Copyright © 2012 Embedded Systems
Committee
Microcontroller
Mohamed Abd ElHay
Copyright © 2012 Embedded Systems
Committee
• Number of I/O pins required
• Interfaces/peripherals required
• Memory requirements
• Number of interrupts required
• Real-Time considerations
• Development environment
• Processing speed required
• Memory architecture
• Power requirements
• Life cycle costs
• Vendor support
Copyright © 2012 Embedded Systems
Committee
Copyright © 2012 Embedded Systems
Committee
 AVR was developed in the year 1996 by Atmel
Corporation.
 The architecture of AVR was developed by Alf-Egil
Bogen and Vegard Wollan.
 AVR derives its name from its developers and stands
for Alf-Egil Bogen Vegard Wollan RISC
microcontroller.
Copyright © 2012 Embedded Systems
Committee
 Also known as Advanced Virtual RISC.
 The AT90S8515 was the first microcontroller
which was based on AVR architecture.
 The first microcontroller to hit the commercial
market was AT90S1200 in the year 1997.
Copyright © 2012 Embedded Systems
Committee
1.TinyAVR :
• Less memory
• small size
• suitable only for simpler applications.
Copyright © 2012 Embedded Systems
Committee
2.MegaAVR :
• These are the most popular ones
• having good amount of memory (upto 256 KB)
higher number of inbuilt peripherals
• suitable for moderate to complex applications.
Copyright © 2012 Embedded Systems
Committee
3. XmegaAVR :
Used commercially for complex applications, which
require large program memory and high speed.
Copyright © 2012 Embedded Systems
Committee
Copyright © 2012 Embedded Systems
Committee
Copyright © 2012 Embedded Systems
Committee
AVR microcontrollers are fast:
• executes most of the instructions in single execution
cycle.
• AVRs are about 4 times faster than PICs.
• they consume less power and can be operated in
different power saving modes.
• Free IDE.
• Available in Egyptian market.
Copyright © 2012 Embedded Systems
Committee
comparison between the three most commonly used
families of microcontrollers:
Copyright © 2012 Embedded Systems
Committee
• 8-bit microcontroller
Copyright © 2012 Embedded Systems
Committee
• AVR follows Harvard Architecture
the processor is equipped with separate memories and
buses for Program and the Data information. Here
while an instruction is being executed, the next
instruction is pre-fetched from the program memory.
Copyright © 2012 Embedded Systems
Committee
• The AVR microcontrollers are based on the advanced
RISC architecture and consist of 32 x 8-bit general
purpose working registers.
• Within one single clock cycle, AVR can take inputs from
two general purpose registers and put them to ALU for
carrying out the requested operation.
• AVR does not have any register like accumulator as in
8051 family of microcontrollers.
• the operations can be performed between any of the
registers and can be stored in either of them
Copyright © 2012 Embedded Systems
Committee
Copyright © 2012 Embedded Systems
Committee
Naming Convention
Copyright © 2012 Embedded Systems
Committee
There are two flavors for Atmega16 microcontroller:
1. Atmega16:- Operating frequency range is 0 – 16 MHz.
2. Atmega16L:- Operating frequency range is 0 – 8 MHz.
If we are using a crystal of 8 MHz = 8 x 106 Hertz =
8 Million cycles, then AVR can execute 8 million
instructions.
Copyright © 2012 Embedded Systems
Committee
Copyright © 2012 Embedded Systems
Committee
• I/O Ports: Atmega16 has four (PORTA, PORTB,
PORTC and PORTD) 8-bit input-output ports.
• ADC Interface: Atmega16 is equipped with an 8 channel
ADC with a resolution of 10-bits.
• Timers/Counters: Atmega16 consists of two 8-bit and
one 16-bit timer/counter.
• Watchdog Timer: is present with internal oscillator.
Watchdog timer continuously monitors and resets the
controller if the code gets stuck at any execution action for
more than a defined time interval.
Copyright © 2012 Embedded Systems
Committee
• Internal Calibrated Oscillator:
 Atmega16 is equipped with an internal oscillator for
driving its clock. By default Atmega16 is set to operate at
internal calibrated oscillator of 1 MHz.
 The maximum frequency of internal oscillator is 8Mhz.
 ATmega16 can be operated using an external crystal
oscillator with a maximum frequency of 16MHz.
Copyright © 2012 Embedded Systems
Committee
• Interrupt: consists of 21 interrupt sources out of which four
are external. The remaining are internal interrupts which
support the peripherals like USART, ADC, Timers etc.
• USART: Universal Synchronous and Asynchronous
Receiver and Transmitter interface is available for
interfacing with external device capable of communicating
serially (data transmission bit by bit).
• General Purpose Registers: Atmega16 is equipped with 32
general purpose registers which are coupled directly with the
Arithmetic Logical Unit (ALU) of CPU.
Copyright © 2012 Embedded Systems
Committee
• Memory: Atmega16 consist of three different
memory sections:
1.Flash EEPROM: Flash EEPROM. Atmega16 is available
with 16KB of in system programmable Flash EEPROM.
2. Byte Addressable EEPROM: Atmega16 has 512 bytes of
EEPROM.
3. SRAM :Atmega16 is equipped with 1KB of internal
SRAM.
A small portion of SRAM is set aside for general purpose
registers used by CPU and some for the peripheral
subsystems of the microcontroller
Copyright © 2012 Embedded Systems
Committee
• ISP: (In System Programmable )Flash Memory which
can be programmed without removing the IC from the
circuit.
• SPI: SPI port is used for serial communication between
two devices on a common clock source.
Copyright © 2012 Embedded Systems
Committee
• TWI: (Two Wire Interface )can be used to set up a
network of devices, many devices can be connected over
TWI interface forming a network, the devices can
simultaneously transmit and receive and have their own
unique address.
• DAC: Atmega16 is also equipped with a DAC interface
which can be used for reverse action performed by ADC
Copyright © 2012 Embedded Systems
Committee
Copyright © 2012 Embedded Systems
Committee
Copyright © 2012 Embedded Systems
Committee
Copyright © 2012 Embedded Systems
Committee
Copyright © 2012 Embedded Systems
Committee
R1: 4.7 KΩ
C1: 0.1 μF
Copyright © 2012 Embedded Systems
Committee
Copyright © 2012 Embedded Systems
Committee
References
• ESC Training Team
Copyright © 2012 Embedded Systems
Committee
info@escommittee.net

More Related Content

What's hot

1 introducing embedded systems and the microcontrollers
1 introducing embedded systems and the microcontrollers1 introducing embedded systems and the microcontrollers
1 introducing embedded systems and the microcontrollers
Bidhu Deka
 
ARM® Cortex M Boot & CMSIS Part 1-3
ARM® Cortex M Boot & CMSIS Part 1-3ARM® Cortex M Boot & CMSIS Part 1-3
ARM® Cortex M Boot & CMSIS Part 1-3
Raahul Raghavan
 
Microprocessor & microcontroller
Microprocessor & microcontroller Microprocessor & microcontroller
Microprocessor & microcontroller
Nitesh Kumar
 
Embedded system (Chapter 1)
Embedded system (Chapter 1)Embedded system (Chapter 1)
Embedded system (Chapter 1)
Ikhwan_Fakrudin
 
Embedded system (Chapter 2) part A
Embedded system (Chapter 2) part AEmbedded system (Chapter 2) part A
Embedded system (Chapter 2) part A
Ikhwan_Fakrudin
 
Introduction to Embedded Systems and Microcontrollers
Introduction to Embedded Systems and MicrocontrollersIntroduction to Embedded Systems and Microcontrollers
Introduction to Embedded Systems and Microcontrollers
Islam Samir
 

What's hot (20)

1 introducing embedded systems and the microcontrollers
1 introducing embedded systems and the microcontrollers1 introducing embedded systems and the microcontrollers
1 introducing embedded systems and the microcontrollers
 
ARM® Cortex M Boot & CMSIS Part 1-3
ARM® Cortex M Boot & CMSIS Part 1-3ARM® Cortex M Boot & CMSIS Part 1-3
ARM® Cortex M Boot & CMSIS Part 1-3
 
Microprocessor & microcontroller
Microprocessor & microcontroller Microprocessor & microcontroller
Microprocessor & microcontroller
 
Embedded system (Chapter 1)
Embedded system (Chapter 1)Embedded system (Chapter 1)
Embedded system (Chapter 1)
 
Ec 8691 mpmc converted (1) (1) (1)
Ec 8691 mpmc converted (1) (1) (1)Ec 8691 mpmc converted (1) (1) (1)
Ec 8691 mpmc converted (1) (1) (1)
 
Embedded systems
Embedded systems Embedded systems
Embedded systems
 
introduction to embedded systems part 2
introduction to embedded systems part 2introduction to embedded systems part 2
introduction to embedded systems part 2
 
Embedded system (Chapter 2) part A
Embedded system (Chapter 2) part AEmbedded system (Chapter 2) part A
Embedded system (Chapter 2) part A
 
Introduction to Embedded Architecture
Introduction to Embedded Architecture Introduction to Embedded Architecture
Introduction to Embedded Architecture
 
CPU Architecture
CPU ArchitectureCPU Architecture
CPU Architecture
 
Microcontroller overview 1
Microcontroller overview 1Microcontroller overview 1
Microcontroller overview 1
 
Embedded System basic and classifications
Embedded System basic and classificationsEmbedded System basic and classifications
Embedded System basic and classifications
 
Introduction to Microcontroller
Introduction to MicrocontrollerIntroduction to Microcontroller
Introduction to Microcontroller
 
Micro controller & Micro processor
Micro controller & Micro processorMicro controller & Micro processor
Micro controller & Micro processor
 
Avr introduction
Avr introductionAvr introduction
Avr introduction
 
AVR ATmega32
AVR ATmega32AVR ATmega32
AVR ATmega32
 
Introduction to Embedded Systems and Microcontrollers
Introduction to Embedded Systems and MicrocontrollersIntroduction to Embedded Systems and Microcontrollers
Introduction to Embedded Systems and Microcontrollers
 
CISC & RISC ARCHITECTURES
CISC & RISC ARCHITECTURESCISC & RISC ARCHITECTURES
CISC & RISC ARCHITECTURES
 
Unit 1 Introduction to Embedded computing and ARM processor
Unit 1 Introduction to Embedded computing and ARM processorUnit 1 Introduction to Embedded computing and ARM processor
Unit 1 Introduction to Embedded computing and ARM processor
 
Embedded System
Embedded SystemEmbedded System
Embedded System
 

Viewers also liked

Viewers also liked (20)

The quest for player centrism
The quest for player centrismThe quest for player centrism
The quest for player centrism
 
Dice 38
Dice 38Dice 38
Dice 38
 
Eiropas Savienības fondu finansējums uzņēmējdarbībai 2014. – 2020.
Eiropas Savienības fondu finansējums uzņēmējdarbībai  2014. – 2020.Eiropas Savienības fondu finansējums uzņēmējdarbībai  2014. – 2020.
Eiropas Savienības fondu finansējums uzņēmējdarbībai 2014. – 2020.
 
Latvijas Garantiju aģentūras atbalsts uzņēmējiem
Latvijas Garantiju aģentūras atbalsts uzņēmējiem Latvijas Garantiju aģentūras atbalsts uzņēmējiem
Latvijas Garantiju aģentūras atbalsts uzņēmējiem
 
Basic computer for_small_business
Basic computer for_small_businessBasic computer for_small_business
Basic computer for_small_business
 
PEGS Korea 2015 the essential protein engineering summit
PEGS Korea 2015 the essential protein engineering summitPEGS Korea 2015 the essential protein engineering summit
PEGS Korea 2015 the essential protein engineering summit
 
Charli XCX
Charli XCXCharli XCX
Charli XCX
 
ITIL Introduction
ITIL IntroductionITIL Introduction
ITIL Introduction
 
Mnotv 12
Mnotv 12Mnotv 12
Mnotv 12
 
PEGS China 2015 Final Agenda
PEGS China 2015 Final AgendaPEGS China 2015 Final Agenda
PEGS China 2015 Final Agenda
 
Latvijas Investīciju un attīstības aģentūras pakalpojumi uzņēmējiem
Latvijas Investīciju un attīstības aģentūras pakalpojumi uzņēmējiemLatvijas Investīciju un attīstības aģentūras pakalpojumi uzņēmējiem
Latvijas Investīciju un attīstības aģentūras pakalpojumi uzņēmējiem
 
final (2)
final (2)final (2)
final (2)
 
Crm
CrmCrm
Crm
 
Si Texas convening, financial presentation,Jim Phipps 2015 05-06,
 Si Texas convening, financial presentation,Jim Phipps 2015 05-06, Si Texas convening, financial presentation,Jim Phipps 2015 05-06,
Si Texas convening, financial presentation,Jim Phipps 2015 05-06,
 
Zapatos marte
Zapatos marteZapatos marte
Zapatos marte
 
Eksporta atbalsta pakalpojumi
Eksporta atbalsta pakalpojumiEksporta atbalsta pakalpojumi
Eksporta atbalsta pakalpojumi
 
5 Estate Planning Must-Haves
5 Estate Planning Must-Haves5 Estate Planning Must-Haves
5 Estate Planning Must-Haves
 
Latvijas Investīciju un attīstības aģentūras atbalsts uzņēmējiem
Latvijas Investīciju un attīstības aģentūras atbalsts uzņēmējiem  Latvijas Investīciju un attīstības aģentūras atbalsts uzņēmējiem
Latvijas Investīciju un attīstības aģentūras atbalsts uzņēmējiem
 
40 icebreakers for_small_groups
40 icebreakers for_small_groups40 icebreakers for_small_groups
40 icebreakers for_small_groups
 
Latvijas Investīciju un attīstības aģentūras atbalsta programmas uzņēmējiem
Latvijas Investīciju un attīstības  aģentūras atbalsta programmas  uzņēmējiemLatvijas Investīciju un attīstības  aģentūras atbalsta programmas  uzņēmējiem
Latvijas Investīciju un attīstības aģentūras atbalsta programmas uzņēmējiem
 

Similar to Microcontroller

Embedded training report(mcs 51)
Embedded training report(mcs 51)Embedded training report(mcs 51)
Embedded training report(mcs 51)
Gurwinder Singh
 

Similar to Microcontroller (20)

Micro controller
Micro controllerMicro controller
Micro controller
 
Introduction to Avr Microcontrollers
Introduction to Avr MicrocontrollersIntroduction to Avr Microcontrollers
Introduction to Avr Microcontrollers
 
1.Introduction to AVR.pdf
1.Introduction to AVR.pdf1.Introduction to AVR.pdf
1.Introduction to AVR.pdf
 
3.TechieNest microcontrollers
3.TechieNest  microcontrollers3.TechieNest  microcontrollers
3.TechieNest microcontrollers
 
Dsp on an-avr
Dsp on an-avrDsp on an-avr
Dsp on an-avr
 
ankit
ankitankit
ankit
 
Introduction to AVR Microcontroller
Introduction to AVR Microcontroller Introduction to AVR Microcontroller
Introduction to AVR Microcontroller
 
Interfacing using ِAtmega16/32
Interfacing using ِAtmega16/32 Interfacing using ِAtmega16/32
Interfacing using ِAtmega16/32
 
Introduction to intel galileo board gen2
Introduction to intel galileo board gen2Introduction to intel galileo board gen2
Introduction to intel galileo board gen2
 
Ajal mod 1
Ajal mod 1Ajal mod 1
Ajal mod 1
 
PILOT Session for Embedded Systems
PILOT Session for Embedded Systems PILOT Session for Embedded Systems
PILOT Session for Embedded Systems
 
Atmega 128 datasheet
Atmega 128   datasheetAtmega 128   datasheet
Atmega 128 datasheet
 
AVR_Course_Day4 introduction to microcontroller
AVR_Course_Day4 introduction to microcontrollerAVR_Course_Day4 introduction to microcontroller
AVR_Course_Day4 introduction to microcontroller
 
EE6602 Embedded System
EE6602 Embedded SystemEE6602 Embedded System
EE6602 Embedded System
 
Project report
Project reportProject report
Project report
 
Project Wireframes (1) (3).pptx
Project Wireframes (1) (3).pptxProject Wireframes (1) (3).pptx
Project Wireframes (1) (3).pptx
 
Embedded training report(mcs 51)
Embedded training report(mcs 51)Embedded training report(mcs 51)
Embedded training report(mcs 51)
 
Embedded systems-for-beginners-electro8
Embedded systems-for-beginners-electro8Embedded systems-for-beginners-electro8
Embedded systems-for-beginners-electro8
 
Summer training embedded system and its scope
Summer training  embedded system and its scopeSummer training  embedded system and its scope
Summer training embedded system and its scope
 
AT89 S52
AT89 S52AT89 S52
AT89 S52
 

Recently uploaded

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
ssuserdda66b
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Recently uploaded (20)

Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 

Microcontroller

  • 1. Copyright © 2012 Embedded Systems Committee Microcontroller Mohamed Abd ElHay
  • 2. Copyright © 2012 Embedded Systems Committee • Number of I/O pins required • Interfaces/peripherals required • Memory requirements • Number of interrupts required • Real-Time considerations • Development environment • Processing speed required • Memory architecture • Power requirements • Life cycle costs • Vendor support
  • 3. Copyright © 2012 Embedded Systems Committee
  • 4. Copyright © 2012 Embedded Systems Committee  AVR was developed in the year 1996 by Atmel Corporation.  The architecture of AVR was developed by Alf-Egil Bogen and Vegard Wollan.  AVR derives its name from its developers and stands for Alf-Egil Bogen Vegard Wollan RISC microcontroller.
  • 5. Copyright © 2012 Embedded Systems Committee  Also known as Advanced Virtual RISC.  The AT90S8515 was the first microcontroller which was based on AVR architecture.  The first microcontroller to hit the commercial market was AT90S1200 in the year 1997.
  • 6. Copyright © 2012 Embedded Systems Committee 1.TinyAVR : • Less memory • small size • suitable only for simpler applications.
  • 7. Copyright © 2012 Embedded Systems Committee 2.MegaAVR : • These are the most popular ones • having good amount of memory (upto 256 KB) higher number of inbuilt peripherals • suitable for moderate to complex applications.
  • 8. Copyright © 2012 Embedded Systems Committee 3. XmegaAVR : Used commercially for complex applications, which require large program memory and high speed.
  • 9. Copyright © 2012 Embedded Systems Committee
  • 10. Copyright © 2012 Embedded Systems Committee
  • 11. Copyright © 2012 Embedded Systems Committee AVR microcontrollers are fast: • executes most of the instructions in single execution cycle. • AVRs are about 4 times faster than PICs. • they consume less power and can be operated in different power saving modes. • Free IDE. • Available in Egyptian market.
  • 12. Copyright © 2012 Embedded Systems Committee comparison between the three most commonly used families of microcontrollers:
  • 13. Copyright © 2012 Embedded Systems Committee • 8-bit microcontroller
  • 14. Copyright © 2012 Embedded Systems Committee • AVR follows Harvard Architecture the processor is equipped with separate memories and buses for Program and the Data information. Here while an instruction is being executed, the next instruction is pre-fetched from the program memory.
  • 15. Copyright © 2012 Embedded Systems Committee • The AVR microcontrollers are based on the advanced RISC architecture and consist of 32 x 8-bit general purpose working registers. • Within one single clock cycle, AVR can take inputs from two general purpose registers and put them to ALU for carrying out the requested operation. • AVR does not have any register like accumulator as in 8051 family of microcontrollers. • the operations can be performed between any of the registers and can be stored in either of them
  • 16. Copyright © 2012 Embedded Systems Committee
  • 17. Copyright © 2012 Embedded Systems Committee Naming Convention
  • 18. Copyright © 2012 Embedded Systems Committee There are two flavors for Atmega16 microcontroller: 1. Atmega16:- Operating frequency range is 0 – 16 MHz. 2. Atmega16L:- Operating frequency range is 0 – 8 MHz. If we are using a crystal of 8 MHz = 8 x 106 Hertz = 8 Million cycles, then AVR can execute 8 million instructions.
  • 19. Copyright © 2012 Embedded Systems Committee
  • 20. Copyright © 2012 Embedded Systems Committee • I/O Ports: Atmega16 has four (PORTA, PORTB, PORTC and PORTD) 8-bit input-output ports. • ADC Interface: Atmega16 is equipped with an 8 channel ADC with a resolution of 10-bits. • Timers/Counters: Atmega16 consists of two 8-bit and one 16-bit timer/counter. • Watchdog Timer: is present with internal oscillator. Watchdog timer continuously monitors and resets the controller if the code gets stuck at any execution action for more than a defined time interval.
  • 21. Copyright © 2012 Embedded Systems Committee • Internal Calibrated Oscillator:  Atmega16 is equipped with an internal oscillator for driving its clock. By default Atmega16 is set to operate at internal calibrated oscillator of 1 MHz.  The maximum frequency of internal oscillator is 8Mhz.  ATmega16 can be operated using an external crystal oscillator with a maximum frequency of 16MHz.
  • 22. Copyright © 2012 Embedded Systems Committee • Interrupt: consists of 21 interrupt sources out of which four are external. The remaining are internal interrupts which support the peripherals like USART, ADC, Timers etc. • USART: Universal Synchronous and Asynchronous Receiver and Transmitter interface is available for interfacing with external device capable of communicating serially (data transmission bit by bit). • General Purpose Registers: Atmega16 is equipped with 32 general purpose registers which are coupled directly with the Arithmetic Logical Unit (ALU) of CPU.
  • 23. Copyright © 2012 Embedded Systems Committee • Memory: Atmega16 consist of three different memory sections: 1.Flash EEPROM: Flash EEPROM. Atmega16 is available with 16KB of in system programmable Flash EEPROM. 2. Byte Addressable EEPROM: Atmega16 has 512 bytes of EEPROM. 3. SRAM :Atmega16 is equipped with 1KB of internal SRAM. A small portion of SRAM is set aside for general purpose registers used by CPU and some for the peripheral subsystems of the microcontroller
  • 24. Copyright © 2012 Embedded Systems Committee • ISP: (In System Programmable )Flash Memory which can be programmed without removing the IC from the circuit. • SPI: SPI port is used for serial communication between two devices on a common clock source.
  • 25. Copyright © 2012 Embedded Systems Committee • TWI: (Two Wire Interface )can be used to set up a network of devices, many devices can be connected over TWI interface forming a network, the devices can simultaneously transmit and receive and have their own unique address. • DAC: Atmega16 is also equipped with a DAC interface which can be used for reverse action performed by ADC
  • 26. Copyright © 2012 Embedded Systems Committee
  • 27. Copyright © 2012 Embedded Systems Committee
  • 28. Copyright © 2012 Embedded Systems Committee
  • 29. Copyright © 2012 Embedded Systems Committee
  • 30. Copyright © 2012 Embedded Systems Committee R1: 4.7 KΩ C1: 0.1 μF
  • 31. Copyright © 2012 Embedded Systems Committee
  • 32. Copyright © 2012 Embedded Systems Committee References • ESC Training Team
  • 33. Copyright © 2012 Embedded Systems Committee info@escommittee.net