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 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
 
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
 
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 1Sally Salem
 
Embedded System basic and classifications
Embedded System basic and classificationsEmbedded System basic and classifications
Embedded System basic and classificationsrajkciitr
 
Introduction to Microcontroller
Introduction to MicrocontrollerIntroduction to Microcontroller
Introduction to MicrocontrollerNikhil Sharma
 
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 ARCHITECTURESDr.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 processorVenkat Ramanan C
 

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 centrismStefan Ivanov
 
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_businesssakkara123
 
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 summitNicole Proulx
 
PEGS China 2015 Final Agenda
PEGS China 2015 Final AgendaPEGS China 2015 Final Agenda
PEGS China 2015 Final AgendaNicole 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ējiemEkonomikas ministrija
 
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
 
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
 
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ējiemEkonomikas 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 MicrocontrollersMohamed Tarek
 
1.Introduction to AVR.pdf
1.Introduction to AVR.pdf1.Introduction to AVR.pdf
1.Introduction to AVR.pdfMostafaKhaled78
 
Introduction to AVR Microcontroller
Introduction to AVR Microcontroller Introduction to AVR Microcontroller
Introduction to AVR Microcontroller Mahmoud Sadat
 
Introduction to intel galileo board gen2
Introduction to intel galileo board gen2Introduction to intel galileo board gen2
Introduction to intel galileo board gen2Harshit Srivastava
 
Ajal mod 1
Ajal mod 1Ajal mod 1
Ajal mod 1AJAL A J
 
AVR_Course_Day4 introduction to microcontroller
AVR_Course_Day4 introduction to microcontrollerAVR_Course_Day4 introduction to microcontroller
AVR_Course_Day4 introduction to microcontrollerMohamed Ali
 
EE6602 Embedded System
EE6602 Embedded SystemEE6602 Embedded System
EE6602 Embedded Systemrmkceteee
 
Project Wireframes (1) (3).pptx
Project Wireframes (1) (3).pptxProject Wireframes (1) (3).pptx
Project Wireframes (1) (3).pptxRaokt1
 
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-electro8Electro 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 scopeArshit Rai
 

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

Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 

Recently uploaded (20)

Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 

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