SlideShare a Scribd company logo
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 microcontrollersBidhu 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-3Raahul 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
 
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)
Kanimozhi142
 
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
Hatem Abd El-Salam
 
Embedded system (Chapter 2) part A
Embedded system (Chapter 2) part AEmbedded system (Chapter 2) part A
Embedded system (Chapter 2) part AIkhwan_Fakrudin
 
Introduction to Embedded Architecture
Introduction to Embedded Architecture Introduction to Embedded Architecture
Introduction to Embedded Architecture
amrutachintawar239
 
Microcontroller overview 1
Microcontroller overview 1Microcontroller overview 1
Microcontroller overview 1
Sally Salem
 
Embedded System basic and classifications
Embedded System basic and classificationsEmbedded System basic and classifications
Embedded System basic and classifications
rajkciitr
 
Introduction to Microcontroller
Introduction to MicrocontrollerIntroduction to Microcontroller
Introduction to Microcontroller
Nikhil Sharma
 
Avr introduction
Avr introductionAvr introduction
Avr introduction
Anant Shrivastava
 
AVR ATmega32
AVR ATmega32AVR ATmega32
AVR ATmega32
Prashant Tiwari
 
Introduction to Embedded Systems and Microcontrollers
Introduction to Embedded Systems and MicrocontrollersIntroduction to Embedded Systems and Microcontrollers
Introduction to Embedded Systems and MicrocontrollersIslam Samir
 
CISC & RISC ARCHITECTURES
CISC & RISC ARCHITECTURESCISC & RISC ARCHITECTURES
CISC & RISC ARCHITECTURES
Dr.YNM
 
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
Venkat Ramanan C
 
Embedded System
Embedded SystemEmbedded System
Embedded System
Gopal Kildoliya
 

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

The quest for player centrism
The quest for player centrismThe quest for player centrism
The quest for player centrism
Stefan Ivanov
 
Dice 38
Dice 38Dice 38
Dice 38
Carlos Flores
 
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.
Ekonomikas ministrija
 
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
Ekonomikas ministrija
 
Basic computer for_small_business
Basic computer for_small_businessBasic computer for_small_business
Basic computer for_small_business
sakkara123
 
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
Nicole Proulx
 
Charli XCX
Charli XCXCharli XCX
Charli XCX
lmarsh876
 
Mnotv 12
Mnotv 12Mnotv 12
Mnotv 12
Carlos Flores
 
PEGS China 2015 Final Agenda
PEGS China 2015 Final AgendaPEGS China 2015 Final Agenda
PEGS China 2015 Final Agenda
Nicole Proulx
 
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
Ekonomikas ministrija
 
Crm
CrmCrm
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,
Clayton Ton
 
Eksporta atbalsta pakalpojumi
Eksporta atbalsta pakalpojumiEksporta atbalsta pakalpojumi
Eksporta atbalsta pakalpojumi
Ekonomikas ministrija
 
5 Estate Planning Must-Haves
5 Estate Planning Must-Haves5 Estate Planning Must-Haves
5 Estate Planning Must-Haves
Daniel DeBruyckere
 
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
Ekonomikas ministrija
 
40 icebreakers for_small_groups
40 icebreakers for_small_groups40 icebreakers for_small_groups
40 icebreakers for_small_groups
Marcelo Pereira de Jesus
 
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
Ekonomikas ministrija
 

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

Introduction to Avr Microcontrollers
Introduction to Avr MicrocontrollersIntroduction to Avr Microcontrollers
Introduction to Avr Microcontrollers
Mohamed Tarek
 
1.Introduction to AVR.pdf
1.Introduction to AVR.pdf1.Introduction to AVR.pdf
1.Introduction to AVR.pdf
MostafaKhaled78
 
3.TechieNest microcontrollers
3.TechieNest  microcontrollers3.TechieNest  microcontrollers
3.TechieNest microcontrollers
TechieNest Pvt. Ltd .
 
Introduction to AVR Microcontroller
Introduction to AVR Microcontroller Introduction to AVR Microcontroller
Introduction to AVR Microcontroller
Mahmoud Sadat
 
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
Harshit Srivastava
 
Ajal mod 1
Ajal mod 1Ajal mod 1
Ajal mod 1
AJAL A J
 
PILOT Session for Embedded Systems
PILOT Session for Embedded Systems PILOT Session for Embedded Systems
PILOT Session for Embedded Systems
Mohamed Al-Emam, PMP®, CAP®
 
Atmega 128 datasheet
Atmega 128   datasheetAtmega 128   datasheet
Atmega 128 datasheet
Rehmatullah Shaikh
 
AVR_Course_Day4 introduction to microcontroller
AVR_Course_Day4 introduction to microcontrollerAVR_Course_Day4 introduction to microcontroller
AVR_Course_Day4 introduction to microcontroller
Mohamed Ali
 
EE6602 Embedded System
EE6602 Embedded SystemEE6602 Embedded System
EE6602 Embedded System
rmkceteee
 
Project report
Project reportProject report
Project report
anjum mujawar mujawar
 
Project Wireframes (1) (3).pptx
Project Wireframes (1) (3).pptxProject Wireframes (1) (3).pptx
Project Wireframes (1) (3).pptx
Raokt1
 
Embedded training report(mcs 51)
Embedded training report(mcs 51)Embedded training report(mcs 51)
Embedded training report(mcs 51)Gurwinder Singh
 
Embedded systems-for-beginners-electro8
Embedded systems-for-beginners-electro8Embedded systems-for-beginners-electro8
Embedded systems-for-beginners-electro8
Electro 8
 
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
Arshit Rai
 
AT89 S52
AT89 S52AT89 S52
AT89 S52
estherkakani
 

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

Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
Vivekanand Anglo Vedic Academy
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
EduSkills OECD
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
Nguyen Thanh Tu Collection
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
Steve Thomason
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 

Recently uploaded (20)

Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 

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