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)

More Related Content

PPTX
Microcontroller overview 1
PPTX
Micro-controller course lec 01
PPT
1 introducing embedded systems and the microcontrollers
PPTX
Micro controller
PPTX
Microcontroller presentation
PPTX
Difference Between Microprocessors and Microcontrollers
PPTX
embedded system and AVR
PDF
819 data sheet
Microcontroller overview 1
Micro-controller course lec 01
1 introducing embedded systems and the microcontrollers
Micro controller
Microcontroller presentation
Difference Between Microprocessors and Microcontrollers
embedded system and AVR
819 data sheet

What's hot (20)

PDF
Introduction to microcontroller
PPTX
Advance Microcontroller AVR
PDF
Introduction in microcontroller
PPTX
Introduction of microcontroller
PPTX
Introduction to Microcontroller
PPTX
Project report on embedded system using 8051 microcontroller
PPSX
8051 microcontroller and embedded system
PDF
Embedded system (Chapter 1)
PPTX
Microcontroller
PPTX
ATmega32-AVR microcontrollers-Part I
PDF
Introduction to Microcontroller
PPT
micro controller
PPTX
Embedded system
PPTX
Microcontroller
PPT
Embedded systemsc
PPTX
Embedded system
PPTX
Microcontroller
PPT
microprocessor-and-microcontroller
PPTX
Microcontrollers
PPTX
Microcontroller presentation
Introduction to microcontroller
Advance Microcontroller AVR
Introduction in microcontroller
Introduction of microcontroller
Introduction to Microcontroller
Project report on embedded system using 8051 microcontroller
8051 microcontroller and embedded system
Embedded system (Chapter 1)
Microcontroller
ATmega32-AVR microcontrollers-Part I
Introduction to Microcontroller
micro controller
Embedded system
Microcontroller
Embedded systemsc
Embedded system
Microcontroller
microprocessor-and-microcontroller
Microcontrollers
Microcontroller presentation
Ad

Viewers also liked (20)

PPT
8085 microprocessor Embedded system
PPTX
Classification of computers with respect to size
PPTX
RTOS based Confidential Area Security System
PPTX
Microprocessor and Microcontroller lec2
PPT
PIC32MX Microcontroller Family
PDF
8051 microcontrollers
PPTX
Microprocessor and Microcontroller lec4
PPTX
Antenna & its types
PPTX
RTC Interfacing and Programming
PPTX
Microprocessor and Microcontroller lec5
PDF
Microprocessor lab
PPT
Sms based patient monitering
PPTX
8051 Assembly Language Programming
PPTX
Microprocessor and Microcontroller lec1
PDF
Solution manual 8051 microcontroller by mazidi
PPTX
Difference between microprocessor and microcontroller
PPTX
INTELLIGENT MOBILE BASED PATIENT MONITORING SYSTEM
PPTX
Interrupts of microprocessor 8085
DOCX
Classification of computers
PPTX
Types of Computer
8085 microprocessor Embedded system
Classification of computers with respect to size
RTOS based Confidential Area Security System
Microprocessor and Microcontroller lec2
PIC32MX Microcontroller Family
8051 microcontrollers
Microprocessor and Microcontroller lec4
Antenna & its types
RTC Interfacing and Programming
Microprocessor and Microcontroller lec5
Microprocessor lab
Sms based patient monitering
8051 Assembly Language Programming
Microprocessor and Microcontroller lec1
Solution manual 8051 microcontroller by mazidi
Difference between microprocessor and microcontroller
INTELLIGENT MOBILE BASED PATIENT MONITORING SYSTEM
Interrupts of microprocessor 8085
Classification of computers
Types of Computer
Ad

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

PDF
Introduction to Avr Microcontrollers
PDF
1.Introduction to AVR.pdf
PPTX
3.TechieNest microcontrollers
PDF
introduction to embedded systems part 2
PDF
Micro controller
PDF
Microcontroller
DOCX
Training report on embedded sys_AVR
PPTX
ATmega 16
PDF
1-AVR Introduction to Atmega32 good .pdf
PPT
Avr microcontrollers training (sahil gupta - 9068557926)
PPT
Microprocessor Systems and Interfacing Slides
PPTX
Introduction to AVR Microcontroller
PPT
Ajal mod 1
PDF
The document provides an overview of the Arduino platform for beginners.
PDF
Interfacing using ِAtmega16/32
PPTX
1. Microcontroller Basics ENTC department.pptx
PPT
Avr introduction
PPTX
ESD Presenation.pptx All about embeded system
PPTX
Embedded systems 101 final
PPTX
Microcontroller
Introduction to Avr Microcontrollers
1.Introduction to AVR.pdf
3.TechieNest microcontrollers
introduction to embedded systems part 2
Micro controller
Microcontroller
Training report on embedded sys_AVR
ATmega 16
1-AVR Introduction to Atmega32 good .pdf
Avr microcontrollers training (sahil gupta - 9068557926)
Microprocessor Systems and Interfacing Slides
Introduction to AVR Microcontroller
Ajal mod 1
The document provides an overview of the Arduino platform for beginners.
Interfacing using ِAtmega16/32
1. Microcontroller Basics ENTC department.pptx
Avr introduction
ESD Presenation.pptx All about embeded system
Embedded systems 101 final
Microcontroller

Recently uploaded (20)

PDF
composite construction of structures.pdf
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
24AI201_AI_Unit_4 (1).pptx Artificial intelligence
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
PPTX
The-Looming-Shadow-How-AI-Poses-Dangers-to-Humanity.pptx
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PPT
Project quality management in manufacturing
PPTX
MET 305 MODULE 1 KTU 2019 SCHEME 25.pptx
PDF
Structs to JSON How Go Powers REST APIs.pdf
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
web development for engineering and engineering
PPTX
Simulation of electric circuit laws using tinkercad.pptx
PDF
ETO & MEO Certificate of Competency Questions and Answers
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPT
Chapter 6 Design in software Engineeing.ppt
PPTX
Unit 5 BSP.pptxytrrftyyydfyujfttyczcgvcd
PPTX
436813905-LNG-Process-Overview-Short.pptx
composite construction of structures.pdf
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
OOP with Java - Java Introduction (Basics)
24AI201_AI_Unit_4 (1).pptx Artificial intelligence
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Strings in CPP - Strings in C++ are sequences of characters used to store and...
The-Looming-Shadow-How-AI-Poses-Dangers-to-Humanity.pptx
Lesson 3_Tessellation.pptx finite Mathematics
Project quality management in manufacturing
MET 305 MODULE 1 KTU 2019 SCHEME 25.pptx
Structs to JSON How Go Powers REST APIs.pdf
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
web development for engineering and engineering
Simulation of electric circuit laws using tinkercad.pptx
ETO & MEO Certificate of Competency Questions and Answers
Operating System & Kernel Study Guide-1 - converted.pdf
Chapter 6 Design in software Engineeing.ppt
Unit 5 BSP.pptxytrrftyyydfyujfttyczcgvcd
436813905-LNG-Process-Overview-Short.pptx

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