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

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxNikitaBankoti2
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
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
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 

Recently uploaded (20)

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
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
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 

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