SlideShare a Scribd company logo
1 of 25
Download to read offline
EMBEDDED SYSTEMS
Eng : Hatem Abd El-Salam
INTRODUCTION 2
MEMORY
• Volatile Data Memory (RAM)
 SRAM
 DRAM
• Non-Volatile Program Memory
 Masked Rom
 OTPROM
 EPROM
 EEPROM
 Flash
Processor
IO Memory
VOLATILE DATA MEMORY
• This is memory used by the microcontroller for temporary data storage, system
setup and peripherals configuration registers. Memory in this category
includes SRAM and DRAM. AVR microcontrollers utilize SRAM.
DRAM SRAM
Based on Capacitors flip flops
Cost Cheaper Costly
Size Bigger Smaller
Speed Slower Faster
Refreshing circuit Need Not need
NON-VOLATILE PROGRAM MEMORY
• This is memory used by the microcontroller to store programs. Data can also
be stored in this memory but the access time is much slower than that of RAM.
Memory in this category includes:
 MROM
 OTPROM
 EPROM
 EEPROM
 FLASH
• The AVR microcontrollers utilize Flash for program storage, some AVR
controllers contains a bit of EEPROM as well to store non volatile data.
NON-VOLATILE PROGRAM MEMORY
• MROM
 Masked ROM
 contents are programmed by the integrated circuit manufacturer (rather than by the user)
• OTPROM
 One-Time Programmable ROM
• EPROM
 Erasable Programmable ROM
 EPROM can be erased by exposing it to strong UV
• EEPROM
• Electrically Erasable Programmable ROM
• EEPROM can be programmed and erased in-circuit, by applying special programming signals
• FLASH
 The same as EEPROM
EEPROM VS FLASH
EEPROM FLASH
Access Byte access Block access
Life time 100 000- 1000 000 W/R 1000 W/R
Cost Costly Cheaper
INPUT / OUTPUT
• DIO
• ADC
• Timer
• Serial communication
Processor
IO Memory
HOW TO SELECT A MICRO-CONTROLLER
• Number of I/O ports.
• Peripherals required (Timers, ADC, USART,SPI and EEPROM).
• Memory requirements.
• Maximum clock speed.
• Real-Time considerations.
• Number of interrupts required
• Power Consumption / sleep modes.
• Availability and Cost.
• Vendor Support.
• Development Environment.
MICROCONTROLLER VENDORS
Vendor Families Derivative
AVR ATmega16
8051 AT83EB5114
PIC PIC16F877A
V850 V850ES
HC12 MC9S12XEP100
TM4C TM4C123GH6PM
AVR HISTORY
• 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.
• Also known as Advanced Virtual RISC.
• The first microcontroller to hit the commercial market was AT90S1200 in the year
1997.
AVR MICRO-CONTROLLERS CATEGORIES
1.TinyAVR
 Less memory
 small size
 suitable only for simpler applications.
2.MegaAVR
 These are the most popular ones.
 having good amount of memory (up to 256 KB) higher number of inbuilt peripherals.
 suitable for moderate to complex applications.
3.XmegaAVR
 Used commercially for complex applications, which require large program memory and
high speed.
AVR MICRO-CONTROLLERS CATEGORIES
Series Name Pins Flash Memory Special Feature
TinyAVR 6-32 0.5-8 KB Small in size
MegaAVR 28-100 4-256 KB Extended peripherals
XmegaAVR 44-100 16-384 KB
DMA, Event System
included
WHAT’S SPECIAL ABOUT AVR?
• AVR micro-controllers 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.
8051 PIC AVR
Speed Slow Moderate Fast
Memory Small Large Large
Architecture CISC RISC RISC
ADC Not Present Inbuilt Inbuilt
Timers Inbuilt Inbuilt Inbuilt
PWM Channels Not Present Inbuilt Inbuilt
WHAT’S SPECIAL ABOUT AVR?
• 8-bit Micro-controllers
AVR ARCHITECTURE
• 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.
NAMING CONVENTION
FLAVORS OF ATMEGA16
There are two flavors for ATmega16 microcontroller:
• ATmega16: Operating frequency range is 0 – 16 MHz.
• 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 add instructions per second.
ATMEGA16 ARCHITECTURE
ATMEGA16 ARCHITECTURE
• I/O Ports
ATmega16 has four (PORTA, PORTB, PORTC and PORTD) 8-bit input-output ports.
• Timers/Counters
ATmega16 consists of two 8-bit and one 16-bit timer/counter.
• Watchdog Timer
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.
• ADC Interface
ATmega16 is equipped with an 8 channel ADC with a resolution of 10-bits.
• Analog Comparator
The Analog Comparator compares the input values of two analog signals.
ATMEGA16 ARCHITECTURE
• Interrupt Unit
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).
• TWI (Two Wire Interface )
Also called Inter-integrated Circuits 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.
• SPI (Serial Peripheral Interface)
Used for serial communication between two devices on a common clock source.
ATMEGA16 ARCHITECTURE
• ISP (In System Programmable )
Flash Memory which can be programmed without removing the IC from the circuit.
• 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
introduction to embedded systems part 2
introduction to embedded systems part 2

More Related Content

What's hot

Basics of micro controllers for biginners
Basics of  micro controllers for biginnersBasics of  micro controllers for biginners
Basics of micro controllers for biginnersGerwin Makanyanga
 
Chp4 introduction to the pic microcontroller copy
Chp4 introduction to the pic microcontroller   copyChp4 introduction to the pic microcontroller   copy
Chp4 introduction to the pic microcontroller copymkazree
 
Microprocessor & microcontroller
Microprocessor & microcontroller Microprocessor & microcontroller
Microprocessor & microcontroller Nitesh Kumar
 
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
 
Microcontroller presentation
Microcontroller presentationMicrocontroller presentation
Microcontroller presentationxavierpaulino
 
Intro to micro controller (Atmega16)
Intro to micro controller (Atmega16)Intro to micro controller (Atmega16)
Intro to micro controller (Atmega16)Ramadan Ramadan
 
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT II Processor Family
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT II Processor FamilySYBSC IT SEM IV EMBEDDED SYSTEMS UNIT II Processor Family
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT II Processor FamilyArti Parab Academics
 
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III The 8051 Microcontrollers
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III  The 8051 MicrocontrollersSYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III  The 8051 Microcontrollers
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III The 8051 MicrocontrollersArti Parab Academics
 
Topic 5 Digital Technique basic computer structure
Topic 5 Digital Technique basic computer structureTopic 5 Digital Technique basic computer structure
Topic 5 Digital Technique basic computer structureBai Haqi
 
Processor Organization and Architecture
Processor Organization and ArchitectureProcessor Organization and Architecture
Processor Organization and ArchitectureDhaval Bagal
 
Micro controller
Micro controllerMicro controller
Micro controllerDevi Prasad
 

What's hot (20)

Basics of micro controllers for biginners
Basics of  micro controllers for biginnersBasics of  micro controllers for biginners
Basics of micro controllers for biginners
 
Processors selection
Processors selectionProcessors selection
Processors selection
 
Chp4 introduction to the pic microcontroller copy
Chp4 introduction to the pic microcontroller   copyChp4 introduction to the pic microcontroller   copy
Chp4 introduction to the pic microcontroller copy
 
Microprocessor & microcontroller
Microprocessor & microcontroller Microprocessor & microcontroller
Microprocessor & microcontroller
 
Microcontrollers
MicrocontrollersMicrocontrollers
Microcontrollers
 
Introduction to Embedded Architecture
Introduction to Embedded Architecture Introduction to Embedded Architecture
Introduction to Embedded Architecture
 
Esd module2
Esd module2Esd module2
Esd module2
 
Control unit
Control unitControl unit
Control unit
 
Micro controller
Micro controllerMicro controller
Micro controller
 
Microcontroller
MicrocontrollerMicrocontroller
Microcontroller
 
Microcontroller overview 1
Microcontroller overview 1Microcontroller overview 1
Microcontroller overview 1
 
Microcontroller presentation
Microcontroller presentationMicrocontroller presentation
Microcontroller presentation
 
PILOT Session for Embedded Systems
PILOT Session for Embedded Systems PILOT Session for Embedded Systems
PILOT Session for Embedded Systems
 
Intro to micro controller (Atmega16)
Intro to micro controller (Atmega16)Intro to micro controller (Atmega16)
Intro to micro controller (Atmega16)
 
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT II Processor Family
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT II Processor FamilySYBSC IT SEM IV EMBEDDED SYSTEMS UNIT II Processor Family
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT II Processor Family
 
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III The 8051 Microcontrollers
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III  The 8051 MicrocontrollersSYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III  The 8051 Microcontrollers
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III The 8051 Microcontrollers
 
Topic 5 Digital Technique basic computer structure
Topic 5 Digital Technique basic computer structureTopic 5 Digital Technique basic computer structure
Topic 5 Digital Technique basic computer structure
 
Control unit
Control  unitControl  unit
Control unit
 
Processor Organization and Architecture
Processor Organization and ArchitectureProcessor Organization and Architecture
Processor Organization and Architecture
 
Micro controller
Micro controllerMicro controller
Micro controller
 

Similar to introduction to embedded systems part 2

Ajal mod 1
Ajal mod 1Ajal mod 1
Ajal mod 1AJAL A J
 
Introduction to Avr Microcontrollers
Introduction to Avr MicrocontrollersIntroduction to Avr Microcontrollers
Introduction to Avr MicrocontrollersMohamed Tarek
 
Advance Microcontroller AVR
Advance Microcontroller AVRAdvance Microcontroller AVR
Advance Microcontroller AVRDaksh Raj Chopra
 
1.Introduction to AVR.pdf
1.Introduction to AVR.pdf1.Introduction to AVR.pdf
1.Introduction to AVR.pdfMostafaKhaled78
 
Project Wireframes (1) (3).pptx
Project Wireframes (1) (3).pptxProject Wireframes (1) (3).pptx
Project Wireframes (1) (3).pptxRaokt1
 
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
 
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
 
Introduction to AVR Microcontroller
Introduction to AVR Microcontroller Introduction to AVR Microcontroller
Introduction to AVR Microcontroller Mahmoud Sadat
 
Atmel 42735-8-bit-avr-microcontroller-a tmega328-328-p_summary
Atmel 42735-8-bit-avr-microcontroller-a tmega328-328-p_summaryAtmel 42735-8-bit-avr-microcontroller-a tmega328-328-p_summary
Atmel 42735-8-bit-avr-microcontroller-a tmega328-328-p_summaryRajan Gautam
 
Features of 89c51,pic,avr & arm processors
Features of 89c51,pic,avr & arm processorsFeatures of 89c51,pic,avr & arm processors
Features of 89c51,pic,avr & arm processorsVikas Dongre
 

Similar to introduction to embedded systems part 2 (20)

Microcontroller
MicrocontrollerMicrocontroller
Microcontroller
 
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
 
Ajal mod 1
Ajal mod 1Ajal mod 1
Ajal mod 1
 
Introduction to Avr Microcontrollers
Introduction to Avr MicrocontrollersIntroduction to Avr Microcontrollers
Introduction to Avr Microcontrollers
 
Advance Microcontroller AVR
Advance Microcontroller AVRAdvance Microcontroller AVR
Advance Microcontroller AVR
 
ankit
ankitankit
ankit
 
Atmega 128 datasheet
Atmega 128   datasheetAtmega 128   datasheet
Atmega 128 datasheet
 
1.Introduction to AVR.pdf
1.Introduction to AVR.pdf1.Introduction to AVR.pdf
1.Introduction to AVR.pdf
 
Interfacing using ِAtmega16/32
Interfacing using ِAtmega16/32 Interfacing using ِAtmega16/32
Interfacing using ِAtmega16/32
 
ATmega32
ATmega32 ATmega32
ATmega32
 
Project Wireframes (1) (3).pptx
Project Wireframes (1) (3).pptxProject Wireframes (1) (3).pptx
Project Wireframes (1) (3).pptx
 
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
 
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
 
AVR introduction
AVR introduction AVR introduction
AVR introduction
 
Introduction to AVR Microcontroller
Introduction to AVR Microcontroller Introduction to AVR Microcontroller
Introduction to AVR Microcontroller
 
Atmel 42735-8-bit-avr-microcontroller-a tmega328-328-p_summary
Atmel 42735-8-bit-avr-microcontroller-a tmega328-328-p_summaryAtmel 42735-8-bit-avr-microcontroller-a tmega328-328-p_summary
Atmel 42735-8-bit-avr-microcontroller-a tmega328-328-p_summary
 
Embedded system
Embedded  systemEmbedded  system
Embedded system
 
Features of 89c51,pic,avr & arm processors
Features of 89c51,pic,avr & arm processorsFeatures of 89c51,pic,avr & arm processors
Features of 89c51,pic,avr & arm processors
 
Avr introduction
Avr introductionAvr introduction
Avr introduction
 

More from Hatem Abd El-Salam (15)

Java- language Lecture 7
Java- language Lecture 7Java- language Lecture 7
Java- language Lecture 7
 
Java- language Lecture 6
Java- language Lecture 6Java- language Lecture 6
Java- language Lecture 6
 
Java- language Lecture 5
Java- language Lecture 5Java- language Lecture 5
Java- language Lecture 5
 
Java- language Lecture 4
Java- language Lecture 4Java- language Lecture 4
Java- language Lecture 4
 
Java- language Lecture 3
Java- language Lecture 3Java- language Lecture 3
Java- language Lecture 3
 
Java- Language Lecture 2
Java- Language Lecture 2Java- Language Lecture 2
Java- Language Lecture 2
 
Java- language Lecture 1
Java- language Lecture 1Java- language Lecture 1
Java- language Lecture 1
 
C- language Lecture 8
C- language Lecture 8C- language Lecture 8
C- language Lecture 8
 
C- language Lecture 7
C- language Lecture 7C- language Lecture 7
C- language Lecture 7
 
C- language Lecture 6
C- language Lecture 6C- language Lecture 6
C- language Lecture 6
 
C- language Lecture 5
C- language Lecture 5C- language Lecture 5
C- language Lecture 5
 
C- language Lecture 4
C- language Lecture 4C- language Lecture 4
C- language Lecture 4
 
C- language Lecture 3
C- language Lecture 3C- language Lecture 3
C- language Lecture 3
 
C- Language Lecture 2
C- Language Lecture 2C- Language Lecture 2
C- Language Lecture 2
 
C-language Lecture 1
C-language Lecture 1C-language Lecture 1
C-language Lecture 1
 

Recently uploaded

MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
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
 
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
 
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
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptxPoojaSen20
 
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
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
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
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
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
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 

Recently uploaded (20)

MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
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
 
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
 
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
 
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🔝
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptx
 
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
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........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
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
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
 
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
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 

introduction to embedded systems part 2

  • 1. EMBEDDED SYSTEMS Eng : Hatem Abd El-Salam INTRODUCTION 2
  • 2. MEMORY • Volatile Data Memory (RAM)  SRAM  DRAM • Non-Volatile Program Memory  Masked Rom  OTPROM  EPROM  EEPROM  Flash Processor IO Memory
  • 3. VOLATILE DATA MEMORY • This is memory used by the microcontroller for temporary data storage, system setup and peripherals configuration registers. Memory in this category includes SRAM and DRAM. AVR microcontrollers utilize SRAM. DRAM SRAM Based on Capacitors flip flops Cost Cheaper Costly Size Bigger Smaller Speed Slower Faster Refreshing circuit Need Not need
  • 4. NON-VOLATILE PROGRAM MEMORY • This is memory used by the microcontroller to store programs. Data can also be stored in this memory but the access time is much slower than that of RAM. Memory in this category includes:  MROM  OTPROM  EPROM  EEPROM  FLASH • The AVR microcontrollers utilize Flash for program storage, some AVR controllers contains a bit of EEPROM as well to store non volatile data.
  • 5. NON-VOLATILE PROGRAM MEMORY • MROM  Masked ROM  contents are programmed by the integrated circuit manufacturer (rather than by the user) • OTPROM  One-Time Programmable ROM • EPROM  Erasable Programmable ROM  EPROM can be erased by exposing it to strong UV • EEPROM • Electrically Erasable Programmable ROM • EEPROM can be programmed and erased in-circuit, by applying special programming signals • FLASH  The same as EEPROM
  • 6.
  • 7. EEPROM VS FLASH EEPROM FLASH Access Byte access Block access Life time 100 000- 1000 000 W/R 1000 W/R Cost Costly Cheaper
  • 8. INPUT / OUTPUT • DIO • ADC • Timer • Serial communication Processor IO Memory
  • 9. HOW TO SELECT A MICRO-CONTROLLER • Number of I/O ports. • Peripherals required (Timers, ADC, USART,SPI and EEPROM). • Memory requirements. • Maximum clock speed. • Real-Time considerations. • Number of interrupts required • Power Consumption / sleep modes. • Availability and Cost. • Vendor Support. • Development Environment.
  • 10. MICROCONTROLLER VENDORS Vendor Families Derivative AVR ATmega16 8051 AT83EB5114 PIC PIC16F877A V850 V850ES HC12 MC9S12XEP100 TM4C TM4C123GH6PM
  • 11. AVR HISTORY • 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. • Also known as Advanced Virtual RISC. • The first microcontroller to hit the commercial market was AT90S1200 in the year 1997.
  • 12. AVR MICRO-CONTROLLERS CATEGORIES 1.TinyAVR  Less memory  small size  suitable only for simpler applications. 2.MegaAVR  These are the most popular ones.  having good amount of memory (up to 256 KB) higher number of inbuilt peripherals.  suitable for moderate to complex applications. 3.XmegaAVR  Used commercially for complex applications, which require large program memory and high speed.
  • 13. AVR MICRO-CONTROLLERS CATEGORIES Series Name Pins Flash Memory Special Feature TinyAVR 6-32 0.5-8 KB Small in size MegaAVR 28-100 4-256 KB Extended peripherals XmegaAVR 44-100 16-384 KB DMA, Event System included
  • 14. WHAT’S SPECIAL ABOUT AVR? • AVR micro-controllers 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. 8051 PIC AVR Speed Slow Moderate Fast Memory Small Large Large Architecture CISC RISC RISC ADC Not Present Inbuilt Inbuilt Timers Inbuilt Inbuilt Inbuilt PWM Channels Not Present Inbuilt Inbuilt
  • 15.
  • 16. WHAT’S SPECIAL ABOUT AVR? • 8-bit Micro-controllers
  • 17. AVR ARCHITECTURE • 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.
  • 19. FLAVORS OF ATMEGA16 There are two flavors for ATmega16 microcontroller: • ATmega16: Operating frequency range is 0 – 16 MHz. • 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 add instructions per second.
  • 21. ATMEGA16 ARCHITECTURE • I/O Ports ATmega16 has four (PORTA, PORTB, PORTC and PORTD) 8-bit input-output ports. • Timers/Counters ATmega16 consists of two 8-bit and one 16-bit timer/counter. • Watchdog Timer 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. • ADC Interface ATmega16 is equipped with an 8 channel ADC with a resolution of 10-bits. • Analog Comparator The Analog Comparator compares the input values of two analog signals.
  • 22. ATMEGA16 ARCHITECTURE • Interrupt Unit 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). • TWI (Two Wire Interface ) Also called Inter-integrated Circuits 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. • SPI (Serial Peripheral Interface) Used for serial communication between two devices on a common clock source.
  • 23. ATMEGA16 ARCHITECTURE • ISP (In System Programmable ) Flash Memory which can be programmed without removing the IC from the circuit. • 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