SlideShare a Scribd company logo
By/Ramadan Ahmed
 What’s Embedded System ?
 Examples on Embedded System
 What’s Microcontroller?
 MicroProcessor Vs. MicroController
 Components of Microcontroller
 Vendors of Microcontrollers
 AVR History
 AVR Categories
 Why AVR ?
 Atmega 16 and it’s Flavour
 Embedded System : it’s a special system with dedicated
functionality.
 Word “Embedded” come from the fact these system are hidden or a
part of large system, also multiple embedded system can co-exist in
one embedded system.
 We can use microcontroller Or microprocessor to implement this
system.
Intro to micro controller (Atmega16)
 It’s a full computer on one chip but it’s resources are
far from limited than of a desktop personal
computer.
 This single chip contain CPU, Non-volatile memory
(ROM) , volatile memory (RAM), Timer & I/O port ,
so we can call it computer on chip.
 Briefly, Micro-controller is Many IC into one IC.
 Note:
There is NO micro-controller work alone in circuit
it must interface with other peripherals like
sensors, motors, LCD…….. etc.
Intro to micro controller (Atmega16)
 Microprocessor
Central Processing Unit (CPU), is the brain of
all computers and many household and
electronic devices.
 Just a CPU has to add externally memory, clock,
input/output interfaces, timer and all other needed
peripheral. This is the reason a microprocessor has
so many pins.
Micro-controller
 Microcontroller is a computer
dedicated to one or just a few tasks &
no need to other peripherals.
 Contain Memory ,timer and many,
but can’t add peripherals to chip
 Can do one task or few task
Microprocessor
 Microprocessor is a general purpose
computer which need other
peripherals to operate.
 No Memory , Timer & clock, but you
can add this peripherals to it.
 Can do many task.
 Microprocessor :
It refers to central processing unit (CPU) of the
microcontroller.
It contain ALU (arithmetic logic unit),Control unit
,instruction Decoder ,some special register (Stack
pointer , status register , program counter , etc.)
 Volatile data memory (RAM)
 From it’s name, data is volatile.
 used by the microcontroller for temporary data
storage and erased if the device power went off
 Microprocessor take long time to access it
 Non-Volatile data memory (ROM):
Opposite to RAM
Used to save the code and temporary data and
doesn’t be erased if power went off.
It takes much longer than RAM to be accessed by
CPU.
 Timer Module:
Most microcontrollers have at least one
timer/counter peripheral.
Timer/Counter modules are used to perform
timing or counting operations in the controller.
 Interrupt Module:
Interrupts enable the microcontroller to
monitor certain events in the background
while executing and application program
and react to the event if necessary pausing
the original program.
This is all coordinated by the interrupt
module.
 Digital I/O Module:
This mode allow to microcontroller to deal
with external world.
It can be used to drive actuators or sense
signal from sensor.
 Serial Module:
This module deal with serial
communication with external world.
Examples : ISP,USART,I2C(two wire
interface).
 Analog I/O Module:
This module responsible for reading
or writing analog signals.
This module contain analog
comparator and analog to digital
converter.
Vendor Families Derivatives
AVR Atmega16
8051 AT83EB5114
PIC PIC16F877A
HC12 MC9S12XEP100
V850 V850ES
TM4C TM4C123GH6PM
 AVR was developed in 1996 by Atmel
cooperation.
 The two person who developed AVR was Alf-
egil & vegard wollan.
 The name AVR came after the name of its
developer Alf-egil bogen Vegard Wollan Risc
microcontroller.
 Also known by Advanced Virtual Risc.
 First microcontroller to hit the market was
AT90S1200 in the year 1997
 Tiny AVR
Less memory.
small size.
suitable only for simpler applications.
 Mega AVR
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.
 Xmega AVR
Used commercially for complex applications, which require large
program memory and high speed.
 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 AVR PIC
Speed Slow Fast Moderate
Memory Small Large Large
Architecture CISC RISC RISC
ADC Not present Inbuilt Inbuilt
Timers Inbuilt Inbuilt Inbuilt
PWMs Not present Inbuilt Inbuilt
Intro to micro controller (Atmega16)
Intro to micro controller (Atmega16)
 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.
What’s Register ?
It’s an electronic circuit that can memorize the state of one
byte or more.
Register can be used to control µc also it make µc faster
and can do many task in few milliseconds.
µc consists of many register like :
DDRx,PORTx,PINx.
SREG (Status I/O register).
MCUCR (MCU Control Register).
TCCR0 (Timer/Counter Control Register).
 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.
 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.
 ISP(In System Programmable )
 Flash Memory which can be programmed without removing the IC from
the circuit.
Intro to micro controller (Atmega16)
http://maxembedded.com/
http://extremeelectronics.co.in/
http://www.embedds.com/avr-tutorials/
http://avr-tutorials.com/
http://www.instructables.com/
Intro to micro controller (Atmega16)
Ad

Recommended

Microcontroller overview 1
Microcontroller overview 1
Sally Salem
 
Micro-controller course lec 01
Micro-controller course lec 01
Mohamed Fadel Buffon
 
1 introducing embedded systems and the microcontrollers
1 introducing embedded systems and the microcontrollers
Bidhu Deka
 
Micro controller
Micro controller
Devi Prasad
 
Microcontroller presentation
Microcontroller presentation
redwan1006066
 
Difference Between Microprocessors and Microcontrollers
Difference Between Microprocessors and Microcontrollers
elprocus
 
embedded system and AVR
embedded system and AVR
Urvashi Khandelwal
 
819 data sheet
819 data sheet
Nimal Rathnaweera
 
Introduction to microcontroller
Introduction to microcontroller
Rajib Roy
 
Advance Microcontroller AVR
Advance Microcontroller AVR
Daksh Raj Chopra
 
Introduction in microcontroller
Introduction in microcontroller
Sayed Mahmoud AbdEl Rahman
 
Introduction of microcontroller
Introduction of microcontroller
Engineer Maze
 
Introduction to Microcontroller
Introduction to Microcontroller
Nikhil Sharma
 
Project report on embedded system using 8051 microcontroller
Project report on embedded system using 8051 microcontroller
Vandna Sambyal
 
8051 microcontroller and embedded system
8051 microcontroller and embedded system
sb108ec
 
Embedded system (Chapter 1)
Embedded system (Chapter 1)
Ikhwan_Fakrudin
 
Microcontroller
Microcontroller
Jaysen Gaydhane
 
ATmega32-AVR microcontrollers-Part I
ATmega32-AVR microcontrollers-Part I
VineethMP2
 
Introduction to Microcontroller
Introduction to Microcontroller
Pantech ProLabs India Pvt Ltd
 
micro controller
micro controller
Yasir Hashmi
 
Embedded system
Embedded system
ANSHUL GUPTA
 
Microcontroller
Microcontroller
sachin patil
 
Embedded systemsc
Embedded systemsc
idris kamaruddin
 
Embedded system
Embedded system
CHANCHAL SONI
 
Microcontroller
Microcontroller
sanjay kumar
 
microprocessor-and-microcontroller
microprocessor-and-microcontroller
jhcid
 
Microcontrollers
Microcontrollers
Sreyansh Bhupal
 
Microcontroller presentation
Microcontroller presentation
xavierpaulino
 
8085 microprocessor Embedded system
8085 microprocessor Embedded system
Sofcon India Pvt Ltd.
 
Classification of computers with respect to size
Classification of computers with respect to size
Samuel Igbanogu
 

More Related Content

What's hot (20)

Introduction to microcontroller
Introduction to microcontroller
Rajib Roy
 
Advance Microcontroller AVR
Advance Microcontroller AVR
Daksh Raj Chopra
 
Introduction in microcontroller
Introduction in microcontroller
Sayed Mahmoud AbdEl Rahman
 
Introduction of microcontroller
Introduction of microcontroller
Engineer Maze
 
Introduction to Microcontroller
Introduction to Microcontroller
Nikhil Sharma
 
Project report on embedded system using 8051 microcontroller
Project report on embedded system using 8051 microcontroller
Vandna Sambyal
 
8051 microcontroller and embedded system
8051 microcontroller and embedded system
sb108ec
 
Embedded system (Chapter 1)
Embedded system (Chapter 1)
Ikhwan_Fakrudin
 
Microcontroller
Microcontroller
Jaysen Gaydhane
 
ATmega32-AVR microcontrollers-Part I
ATmega32-AVR microcontrollers-Part I
VineethMP2
 
Introduction to Microcontroller
Introduction to Microcontroller
Pantech ProLabs India Pvt Ltd
 
micro controller
micro controller
Yasir Hashmi
 
Embedded system
Embedded system
ANSHUL GUPTA
 
Microcontroller
Microcontroller
sachin patil
 
Embedded systemsc
Embedded systemsc
idris kamaruddin
 
Embedded system
Embedded system
CHANCHAL SONI
 
Microcontroller
Microcontroller
sanjay kumar
 
microprocessor-and-microcontroller
microprocessor-and-microcontroller
jhcid
 
Microcontrollers
Microcontrollers
Sreyansh Bhupal
 
Microcontroller presentation
Microcontroller presentation
xavierpaulino
 
Introduction to microcontroller
Introduction to microcontroller
Rajib Roy
 
Advance Microcontroller AVR
Advance Microcontroller AVR
Daksh Raj Chopra
 
Introduction of microcontroller
Introduction of microcontroller
Engineer Maze
 
Introduction to Microcontroller
Introduction to Microcontroller
Nikhil Sharma
 
Project report on embedded system using 8051 microcontroller
Project report on embedded system using 8051 microcontroller
Vandna Sambyal
 
8051 microcontroller and embedded system
8051 microcontroller and embedded system
sb108ec
 
Embedded system (Chapter 1)
Embedded system (Chapter 1)
Ikhwan_Fakrudin
 
ATmega32-AVR microcontrollers-Part I
ATmega32-AVR microcontrollers-Part I
VineethMP2
 
microprocessor-and-microcontroller
microprocessor-and-microcontroller
jhcid
 
Microcontroller presentation
Microcontroller presentation
xavierpaulino
 

Viewers also liked (20)

8085 microprocessor Embedded system
8085 microprocessor Embedded system
Sofcon India Pvt Ltd.
 
Classification of computers with respect to size
Classification of computers with respect to size
Samuel Igbanogu
 
RTOS based Confidential Area Security System
RTOS based Confidential Area Security System
ajinky gadewar
 
Microprocessor and Microcontroller lec2
Microprocessor and Microcontroller lec2
Ameen San
 
PIC32MX Microcontroller Family
PIC32MX Microcontroller Family
Premier Farnell
 
8051 microcontrollers
8051 microcontrollers
Chih-Hsiang Tang
 
Microprocessor and Microcontroller lec4
Microprocessor and Microcontroller lec4
Ameen San
 
Antenna & its types
Antenna & its types
Jayachandran T
 
RTC Interfacing and Programming
RTC Interfacing and Programming
Devashish Raval
 
Microprocessor and Microcontroller lec5
Microprocessor and Microcontroller lec5
Ameen San
 
Microprocessor lab
Microprocessor lab
kpaulraj
 
Sms based patient monitering
Sms based patient monitering
Padmaja Dash
 
8051 Assembly Language Programming
8051 Assembly Language Programming
Ravikumar Tiwari
 
Microprocessor and Microcontroller lec1
Microprocessor and Microcontroller lec1
Ameen San
 
Solution manual 8051 microcontroller by mazidi
Solution manual 8051 microcontroller by mazidi
Muhammad Abdullah
 
Difference between microprocessor and microcontroller
Difference between microprocessor and microcontroller
Microcontrollers Lab
 
INTELLIGENT MOBILE BASED PATIENT MONITORING SYSTEM
INTELLIGENT MOBILE BASED PATIENT MONITORING SYSTEM
JOLLUSUDARSHANREDDY
 
Interrupts of microprocessor 8085
Interrupts of microprocessor 8085
mujeebkhanelectronic
 
Classification of computers
Classification of computers
abasyn Universty Peshawar
 
Types of Computer
Types of Computer
Muhammad Hammad Waseem
 
Classification of computers with respect to size
Classification of computers with respect to size
Samuel Igbanogu
 
RTOS based Confidential Area Security System
RTOS based Confidential Area Security System
ajinky gadewar
 
Microprocessor and Microcontroller lec2
Microprocessor and Microcontroller lec2
Ameen San
 
PIC32MX Microcontroller Family
PIC32MX Microcontroller Family
Premier Farnell
 
Microprocessor and Microcontroller lec4
Microprocessor and Microcontroller lec4
Ameen San
 
RTC Interfacing and Programming
RTC Interfacing and Programming
Devashish Raval
 
Microprocessor and Microcontroller lec5
Microprocessor and Microcontroller lec5
Ameen San
 
Microprocessor lab
Microprocessor lab
kpaulraj
 
Sms based patient monitering
Sms based patient monitering
Padmaja Dash
 
8051 Assembly Language Programming
8051 Assembly Language Programming
Ravikumar Tiwari
 
Microprocessor and Microcontroller lec1
Microprocessor and Microcontroller lec1
Ameen San
 
Solution manual 8051 microcontroller by mazidi
Solution manual 8051 microcontroller by mazidi
Muhammad Abdullah
 
Difference between microprocessor and microcontroller
Difference between microprocessor and microcontroller
Microcontrollers Lab
 
INTELLIGENT MOBILE BASED PATIENT MONITORING SYSTEM
INTELLIGENT MOBILE BASED PATIENT MONITORING SYSTEM
JOLLUSUDARSHANREDDY
 
Ad

Similar to Intro to micro controller (Atmega16) (20)

Introduction to Avr Microcontrollers
Introduction to Avr Microcontrollers
Mohamed Tarek
 
1.Introduction to AVR.pdf
1.Introduction to AVR.pdf
MostafaKhaled78
 
3.TechieNest microcontrollers
3.TechieNest microcontrollers
TechieNest Pvt. Ltd .
 
introduction to embedded systems part 2
introduction to embedded systems part 2
Hatem Abd El-Salam
 
Micro controller
Micro controller
محمدعبد الحى
 
Microcontroller
Microcontroller
Kumar Satyam
 
Training report on embedded sys_AVR
Training report on embedded sys_AVR
Galgotias College of Engg. & Tech.
 
ATmega 16
ATmega 16
Rahul Singh
 
1-AVR Introduction to Atmega32 good .pdf
1-AVR Introduction to Atmega32 good .pdf
KSRaviKumarMVGREEE
 
Avr microcontrollers training (sahil gupta - 9068557926)
Avr microcontrollers training (sahil gupta - 9068557926)
Sahil Gupta
 
Introduction to AVR Microcontroller
Introduction to AVR Microcontroller
Mahmoud Sadat
 
Ajal mod 1
Ajal mod 1
AJAL A J
 
The document provides an overview of the Arduino platform for beginners.
The document provides an overview of the Arduino platform for beginners.
QucngV
 
Interfacing using ِAtmega16/32
Interfacing using ِAtmega16/32
محمدعبد الحى
 
Avr introduction
Avr introduction
Anant Shrivastava
 
ESD Presenation.pptx All about embeded system
ESD Presenation.pptx All about embeded system
handpump91
 
Embedded systems 101 final
Embedded systems 101 final
Khalid Elmeadawy
 
Microcontroller
Microcontroller
Spitiq
 
Presentation
Presentation
Abhijit Das
 
Atmega16
Atmega16
Thrived Kumar
 
Introduction to Avr Microcontrollers
Introduction to Avr Microcontrollers
Mohamed Tarek
 
1.Introduction to AVR.pdf
1.Introduction to AVR.pdf
MostafaKhaled78
 
introduction to embedded systems part 2
introduction to embedded systems part 2
Hatem Abd El-Salam
 
1-AVR Introduction to Atmega32 good .pdf
1-AVR Introduction to Atmega32 good .pdf
KSRaviKumarMVGREEE
 
Avr microcontrollers training (sahil gupta - 9068557926)
Avr microcontrollers training (sahil gupta - 9068557926)
Sahil Gupta
 
Introduction to AVR Microcontroller
Introduction to AVR Microcontroller
Mahmoud Sadat
 
Ajal mod 1
Ajal mod 1
AJAL A J
 
The document provides an overview of the Arduino platform for beginners.
The document provides an overview of the Arduino platform for beginners.
QucngV
 
ESD Presenation.pptx All about embeded system
ESD Presenation.pptx All about embeded system
handpump91
 
Embedded systems 101 final
Embedded systems 101 final
Khalid Elmeadawy
 
Microcontroller
Microcontroller
Spitiq
 
Ad

Recently uploaded (20)

تقرير عن التحليل الديناميكي لتدفق الهواء حول جناح.pdf
تقرير عن التحليل الديناميكي لتدفق الهواء حول جناح.pdf
محمد قصص فتوتة
 
Modern multi-proposer consensus implementations
Modern multi-proposer consensus implementations
François Garillot
 
LECTURE 7 COMPUTATIONS OF LEVELING DATA APRIL 2025.pptx
LECTURE 7 COMPUTATIONS OF LEVELING DATA APRIL 2025.pptx
rr22001247
 
System design handwritten notes guidance
System design handwritten notes guidance
Shabista Imam
 
Call For Papers - 17th International Conference on Wireless & Mobile Networks...
Call For Papers - 17th International Conference on Wireless & Mobile Networks...
hosseinihamid192023
 
May 2025: Top 10 Read Articles in Data Mining & Knowledge Management Process
May 2025: Top 10 Read Articles in Data Mining & Knowledge Management Process
IJDKP
 
Structural Wonderers_new and ancient.pptx
Structural Wonderers_new and ancient.pptx
nikopapa113
 
Rapid Prototyping for XR: Lecture 2 - Low Fidelity Prototyping.
Rapid Prototyping for XR: Lecture 2 - Low Fidelity Prototyping.
Mark Billinghurst
 
Data Structures Module 3 Binary Trees Binary Search Trees Tree Traversals AVL...
Data Structures Module 3 Binary Trees Binary Search Trees Tree Traversals AVL...
resming1
 
Stability of IBR Dominated Grids - IEEE PEDG 2025 - short.pptx
Stability of IBR Dominated Grids - IEEE PEDG 2025 - short.pptx
ssuser307730
 
Solar thermal – Flat plate and concentrating collectors .pptx
Solar thermal – Flat plate and concentrating collectors .pptx
jdaniabraham1
 
Abraham Silberschatz-Operating System Concepts (9th,2012.12).pdf
Abraham Silberschatz-Operating System Concepts (9th,2012.12).pdf
Shabista Imam
 
Comparison of Flexible and Rigid Pavements in Bangladesh
Comparison of Flexible and Rigid Pavements in Bangladesh
Arifur Rahman
 
Deep Learning for Natural Language Processing_FDP on 16 June 2025 MITS.pptx
Deep Learning for Natural Language Processing_FDP on 16 June 2025 MITS.pptx
resming1
 
Proposal for folders structure division in projects.pdf
Proposal for folders structure division in projects.pdf
Mohamed Ahmed
 
Complete University of Calculus :: 2nd edition
Complete University of Calculus :: 2nd edition
Shabista Imam
 
Rapid Prototyping for XR: Lecture 1 Introduction to Prototyping
Rapid Prototyping for XR: Lecture 1 Introduction to Prototyping
Mark Billinghurst
 
Kel.3_A_Review_on_Internet_of_Things_for_Defense_v3.pptx
Kel.3_A_Review_on_Internet_of_Things_for_Defense_v3.pptx
Endang Saefullah
 
Introduction to Python Programming Language
Introduction to Python Programming Language
merlinjohnsy
 
Tesla-Stock-Analysis-and-Forecast.pptx (1).pptx
Tesla-Stock-Analysis-and-Forecast.pptx (1).pptx
moonsony54
 
تقرير عن التحليل الديناميكي لتدفق الهواء حول جناح.pdf
تقرير عن التحليل الديناميكي لتدفق الهواء حول جناح.pdf
محمد قصص فتوتة
 
Modern multi-proposer consensus implementations
Modern multi-proposer consensus implementations
François Garillot
 
LECTURE 7 COMPUTATIONS OF LEVELING DATA APRIL 2025.pptx
LECTURE 7 COMPUTATIONS OF LEVELING DATA APRIL 2025.pptx
rr22001247
 
System design handwritten notes guidance
System design handwritten notes guidance
Shabista Imam
 
Call For Papers - 17th International Conference on Wireless & Mobile Networks...
Call For Papers - 17th International Conference on Wireless & Mobile Networks...
hosseinihamid192023
 
May 2025: Top 10 Read Articles in Data Mining & Knowledge Management Process
May 2025: Top 10 Read Articles in Data Mining & Knowledge Management Process
IJDKP
 
Structural Wonderers_new and ancient.pptx
Structural Wonderers_new and ancient.pptx
nikopapa113
 
Rapid Prototyping for XR: Lecture 2 - Low Fidelity Prototyping.
Rapid Prototyping for XR: Lecture 2 - Low Fidelity Prototyping.
Mark Billinghurst
 
Data Structures Module 3 Binary Trees Binary Search Trees Tree Traversals AVL...
Data Structures Module 3 Binary Trees Binary Search Trees Tree Traversals AVL...
resming1
 
Stability of IBR Dominated Grids - IEEE PEDG 2025 - short.pptx
Stability of IBR Dominated Grids - IEEE PEDG 2025 - short.pptx
ssuser307730
 
Solar thermal – Flat plate and concentrating collectors .pptx
Solar thermal – Flat plate and concentrating collectors .pptx
jdaniabraham1
 
Abraham Silberschatz-Operating System Concepts (9th,2012.12).pdf
Abraham Silberschatz-Operating System Concepts (9th,2012.12).pdf
Shabista Imam
 
Comparison of Flexible and Rigid Pavements in Bangladesh
Comparison of Flexible and Rigid Pavements in Bangladesh
Arifur Rahman
 
Deep Learning for Natural Language Processing_FDP on 16 June 2025 MITS.pptx
Deep Learning for Natural Language Processing_FDP on 16 June 2025 MITS.pptx
resming1
 
Proposal for folders structure division in projects.pdf
Proposal for folders structure division in projects.pdf
Mohamed Ahmed
 
Complete University of Calculus :: 2nd edition
Complete University of Calculus :: 2nd edition
Shabista Imam
 
Rapid Prototyping for XR: Lecture 1 Introduction to Prototyping
Rapid Prototyping for XR: Lecture 1 Introduction to Prototyping
Mark Billinghurst
 
Kel.3_A_Review_on_Internet_of_Things_for_Defense_v3.pptx
Kel.3_A_Review_on_Internet_of_Things_for_Defense_v3.pptx
Endang Saefullah
 
Introduction to Python Programming Language
Introduction to Python Programming Language
merlinjohnsy
 
Tesla-Stock-Analysis-and-Forecast.pptx (1).pptx
Tesla-Stock-Analysis-and-Forecast.pptx (1).pptx
moonsony54
 

Intro to micro controller (Atmega16)

  • 2.  What’s Embedded System ?  Examples on Embedded System  What’s Microcontroller?  MicroProcessor Vs. MicroController  Components of Microcontroller  Vendors of Microcontrollers  AVR History  AVR Categories  Why AVR ?  Atmega 16 and it’s Flavour
  • 3.  Embedded System : it’s a special system with dedicated functionality.  Word “Embedded” come from the fact these system are hidden or a part of large system, also multiple embedded system can co-exist in one embedded system.  We can use microcontroller Or microprocessor to implement this system.
  • 5.  It’s a full computer on one chip but it’s resources are far from limited than of a desktop personal computer.  This single chip contain CPU, Non-volatile memory (ROM) , volatile memory (RAM), Timer & I/O port , so we can call it computer on chip.  Briefly, Micro-controller is Many IC into one IC.  Note: There is NO micro-controller work alone in circuit it must interface with other peripherals like sensors, motors, LCD…….. etc.
  • 7.  Microprocessor Central Processing Unit (CPU), is the brain of all computers and many household and electronic devices.  Just a CPU has to add externally memory, clock, input/output interfaces, timer and all other needed peripheral. This is the reason a microprocessor has so many pins.
  • 8. Micro-controller  Microcontroller is a computer dedicated to one or just a few tasks & no need to other peripherals.  Contain Memory ,timer and many, but can’t add peripherals to chip  Can do one task or few task Microprocessor  Microprocessor is a general purpose computer which need other peripherals to operate.  No Memory , Timer & clock, but you can add this peripherals to it.  Can do many task.
  • 9.  Microprocessor : It refers to central processing unit (CPU) of the microcontroller. It contain ALU (arithmetic logic unit),Control unit ,instruction Decoder ,some special register (Stack pointer , status register , program counter , etc.)  Volatile data memory (RAM)  From it’s name, data is volatile.  used by the microcontroller for temporary data storage and erased if the device power went off  Microprocessor take long time to access it
  • 10.  Non-Volatile data memory (ROM): Opposite to RAM Used to save the code and temporary data and doesn’t be erased if power went off. It takes much longer than RAM to be accessed by CPU.  Timer Module: Most microcontrollers have at least one timer/counter peripheral. Timer/Counter modules are used to perform timing or counting operations in the controller.
  • 11.  Interrupt Module: Interrupts enable the microcontroller to monitor certain events in the background while executing and application program and react to the event if necessary pausing the original program. This is all coordinated by the interrupt module.  Digital I/O Module: This mode allow to microcontroller to deal with external world. It can be used to drive actuators or sense signal from sensor.
  • 12.  Serial Module: This module deal with serial communication with external world. Examples : ISP,USART,I2C(two wire interface).  Analog I/O Module: This module responsible for reading or writing analog signals. This module contain analog comparator and analog to digital converter.
  • 13. Vendor Families Derivatives AVR Atmega16 8051 AT83EB5114 PIC PIC16F877A HC12 MC9S12XEP100 V850 V850ES TM4C TM4C123GH6PM
  • 14.  AVR was developed in 1996 by Atmel cooperation.  The two person who developed AVR was Alf- egil & vegard wollan.  The name AVR came after the name of its developer Alf-egil bogen Vegard Wollan Risc microcontroller.  Also known by Advanced Virtual Risc.  First microcontroller to hit the market was AT90S1200 in the year 1997
  • 15.  Tiny AVR Less memory. small size. suitable only for simpler applications.  Mega AVR 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.  Xmega AVR Used commercially for complex applications, which require large program memory and high speed.
  • 16.  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.
  • 17. 8051 AVR PIC Speed Slow Fast Moderate Memory Small Large Large Architecture CISC RISC RISC ADC Not present Inbuilt Inbuilt Timers Inbuilt Inbuilt Inbuilt PWMs Not present Inbuilt Inbuilt
  • 20.  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. What’s Register ? It’s an electronic circuit that can memorize the state of one byte or more.
  • 22. Register can be used to control µc also it make µc faster and can do many task in few milliseconds. µc consists of many register like : DDRx,PORTx,PINx. SREG (Status I/O register). MCUCR (MCU Control Register). TCCR0 (Timer/Counter Control Register).
  • 23.  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.
  • 24.  Analog Comparator  The Analog Comparator compares the input values of two analog signals.  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).
  • 25.  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.  ISP(In System Programmable )  Flash Memory which can be programmed without removing the IC from the circuit.

Editor's Notes

  • #5: Computer is not embedded system why ?? Because it’s 1.general purpose and embedded system is used for dedicated and repeated function. 2.system run independently on the software run on it. Application embedded system is used 1-Automotive 2-mobile device(cell phone – tablets ) 3-Networking 4-Robotics 5-Mine/space exploring 6-Electronic devices 7-Image processing 8-Air craft And many more…
  • #10: ALU : this unit where the operation is computed for example: when you add x,y ,ALU is responsible to compute x+y. Control unit: this unit control the flow between CPU and other devices for example: it control how to input/output a program instruction. Instruction decoder: this unit is responsible to read the instruction (line of code) and decode it and send it to CPU Special register : program counter: this program point to the next instruction to be fetched ----------------------------------------------------------------------------------------- Temporary data means variables used in the code
  • #11: Timer: Used like the clock in our computer to compute the time and used to do tasks or operation or code depending on time
  • #13: Serial means : There is transmitter : that send data to other device bit by bit There is receiver : that receive data from other device
  • #22: Note : Byte = 8 bits AVR consist of 32 general purpose register
  • #23: AVR consist of 32 general purpose register