SlideShare a Scribd company logo
1 of 21
AVR
    ATMEGA 8
MICRO-CONTROLLER
INTRODUCTION
• ATmega8 is a 8-bit microcontroller based on
  the AVR RISC architecture
• By executing powerful instructions in a single
  clock cycle, the ATmega8 achieves throughput
  approaching 1 MIPS per MHz
Contd....
• In order to maximize performance and
  parallelism, the AVR uses a Harvard
  architecture- which separates memories and
  buses for program and data
• Instruction in program memory are executed
  with single level pipelining
• This concept enables instructions to be
  executed in every clock cycle
FEATURES
•   High-performance 8 bit Microcontroller
•   Up to 16 MIPS Throughput at 16 MHz
•   32 x 8 General Purpose Working Registers
•   Six ADC channels in PDIP package
•   Internal Calibrated Oscillator
TYPES OF PACKAGES
• 28-pin PDIP (Plastic Dual In-line Package)
• 32-pin TQFP (Thin Quad film Package)
MEMORY SEGMENTS
• 8K Bytes of Flash program memory
• 512 Bytes EEPROM (Electrically Erasable
  Programmable Read Only Memory)
• 1K Byte Internal RAM (Random Access
  Memory)
Contd....

• Write/Erase Cycles: 10,000 Flash/100,000
  EEPROM
• Data retention: 20 years at 85°C/100 years at
  25°C
PIN OUT
PIN DESCRIPTION
• VCC Digital supply voltage
• GND Ground
• RESET A low level on this pin for longer than
  the minimum pulse length will generate a
  reset, even if the clock is not running
• AREF The analog reference pin for the A/D
  Converter
Contd....
• AVCC The supply voltage pin for the A/D
  Converter
PORTS
• Three ports i.e PortB, PortC, PortD
• Three registers associated with every port
 DDRx – Data Direction Register
 PINx – Port input
 PORTx- Port output



*Note – ‘x’ is subscript and could be either of B, C, D
Port B (PB7..PB0)
• Port B is an 8-bit bi-directional I/O port

• Can be used either as a input port or as output
  port ( direction must be specified in
  programming)
REGISTER DESCRIPTION OF I/O PORTS
Port C (PC5..PC0)
• Port C is an 7-bit bi-directional I/O port

• Can be used either as a input port or as output
  port ( direction must be specified in
  programming)
Port D (PD7..PD0)
• Port D is an 8-bit bi-directional I/O port

• Can be used either as a input port or as output
  port ( direction must be specified in coding)
Contd....
Contd....
Contd....
Contd....
Thank you…

More Related Content

What's hot (20)

Atmega32
Atmega32Atmega32
Atmega32
 
AVR ATmega32
AVR ATmega32AVR ATmega32
AVR ATmega32
 
Interrupts at AVR
Interrupts at AVRInterrupts at AVR
Interrupts at AVR
 
Avr and arm
Avr and armAvr and arm
Avr and arm
 
Ii avr-basics(1)
Ii avr-basics(1)Ii avr-basics(1)
Ii avr-basics(1)
 
Tutorial on avr atmega8 microcontroller, architecture and its applications
Tutorial on avr atmega8 microcontroller, architecture and its applicationsTutorial on avr atmega8 microcontroller, architecture and its applications
Tutorial on avr atmega8 microcontroller, architecture and its applications
 
Atmega16
Atmega16Atmega16
Atmega16
 
8-bit PIC Microcontrollers
8-bit PIC Microcontrollers8-bit PIC Microcontrollers
8-bit PIC Microcontrollers
 
Avr introduction
Avr introductionAvr introduction
Avr introduction
 
Avr report
Avr reportAvr report
Avr report
 
Atmega 32
Atmega 32Atmega 32
Atmega 32
 
PIC 16F877A by PARTHIBAN. S.
PIC 16F877A   by PARTHIBAN. S.PIC 16F877A   by PARTHIBAN. S.
PIC 16F877A by PARTHIBAN. S.
 
PIC introduction + mapping
PIC introduction + mappingPIC introduction + mapping
PIC introduction + mapping
 
ATmega32-AVR microcontrollers-Part I
ATmega32-AVR microcontrollers-Part IATmega32-AVR microcontrollers-Part I
ATmega32-AVR microcontrollers-Part I
 
AVR introduction
AVR introduction AVR introduction
AVR introduction
 
Avr microcontroller
Avr microcontrollerAvr microcontroller
Avr microcontroller
 
Atmel and pic microcontroller
Atmel and pic microcontrollerAtmel and pic microcontroller
Atmel and pic microcontroller
 
Microcontroller lec 2
Microcontroller  lec 2Microcontroller  lec 2
Microcontroller lec 2
 
ATmega32
ATmega32 ATmega32
ATmega32
 
Pic16f84
Pic16f84Pic16f84
Pic16f84
 

Viewers also liked

Interfacing bluetooth with arduino
Interfacing bluetooth with arduinoInterfacing bluetooth with arduino
Interfacing bluetooth with arduinoJairaj Jangle
 
Introduction to robotics
Introduction  to roboticsIntroduction  to robotics
Introduction to roboticsNitesh Singh
 
LED Vu-Metter LM3915 and LM386
LED Vu-Metter LM3915 and LM386LED Vu-Metter LM3915 and LM386
LED Vu-Metter LM3915 and LM386Mr Giap
 
Bus Interfacing with Intel Microprocessors Based Systems
Bus Interfacing with Intel Microprocessors Based SystemsBus Interfacing with Intel Microprocessors Based Systems
Bus Interfacing with Intel Microprocessors Based SystemsMurtadha Alsabbagh
 
Design of FPGA based 8-bit RISC Controller IP core using VHDL
Design of FPGA based 8-bit RISC Controller IP core using VHDLDesign of FPGA based 8-bit RISC Controller IP core using VHDL
Design of FPGA based 8-bit RISC Controller IP core using VHDLAneesh Raveendran
 
15 Ghép nối 8255
15 Ghép nối 825515 Ghép nối 8255
15 Ghép nối 8255Mr Giap
 
Tài Liệu Điều Khiển Từ Xa Bằng Hồng Ngoại
Tài Liệu Điều Khiển Từ Xa Bằng Hồng NgoạiTài Liệu Điều Khiển Từ Xa Bằng Hồng Ngoại
Tài Liệu Điều Khiển Từ Xa Bằng Hồng NgoạiMr Giap
 
Microchip's PIC Micro Controller
Microchip's PIC Micro ControllerMicrochip's PIC Micro Controller
Microchip's PIC Micro ControllerMidhu S V Unnithan
 
Arm corrected ppt
Arm corrected pptArm corrected ppt
Arm corrected pptanish jagan
 
Viết Ngôn Ngữ Lập Trình 8051 PIC AVR
Viết Ngôn Ngữ Lập Trình 8051 PIC AVRViết Ngôn Ngữ Lập Trình 8051 PIC AVR
Viết Ngôn Ngữ Lập Trình 8051 PIC AVRMr Giap
 
Computer harware complete notes
Computer harware complete notesComputer harware complete notes
Computer harware complete notesthetechnicalzone
 
Lap trinh c_tu_co_ban_den_nang_cao
Lap trinh c_tu_co_ban_den_nang_caoLap trinh c_tu_co_ban_den_nang_cao
Lap trinh c_tu_co_ban_den_nang_caoHuy Nguyễn
 
Q4.11: ARM Architecture
Q4.11: ARM ArchitectureQ4.11: ARM Architecture
Q4.11: ARM ArchitectureLinaro
 

Viewers also liked (20)

Anatomy of robot
Anatomy of robotAnatomy of robot
Anatomy of robot
 
Interfacing bluetooth with arduino
Interfacing bluetooth with arduinoInterfacing bluetooth with arduino
Interfacing bluetooth with arduino
 
Introduction to robotics
Introduction  to roboticsIntroduction  to robotics
Introduction to robotics
 
Cam bien va ung dung
Cam bien va ung dungCam bien va ung dung
Cam bien va ung dung
 
FPGA Tutorial - LCD Interface
FPGA Tutorial - LCD InterfaceFPGA Tutorial - LCD Interface
FPGA Tutorial - LCD Interface
 
LED Vu-Metter LM3915 and LM386
LED Vu-Metter LM3915 and LM386LED Vu-Metter LM3915 and LM386
LED Vu-Metter LM3915 and LM386
 
Bus Interfacing with Intel Microprocessors Based Systems
Bus Interfacing with Intel Microprocessors Based SystemsBus Interfacing with Intel Microprocessors Based Systems
Bus Interfacing with Intel Microprocessors Based Systems
 
Cam bien tiem can
Cam bien tiem canCam bien tiem can
Cam bien tiem can
 
Design of FPGA based 8-bit RISC Controller IP core using VHDL
Design of FPGA based 8-bit RISC Controller IP core using VHDLDesign of FPGA based 8-bit RISC Controller IP core using VHDL
Design of FPGA based 8-bit RISC Controller IP core using VHDL
 
15 Ghép nối 8255
15 Ghép nối 825515 Ghép nối 8255
15 Ghép nối 8255
 
Basics of Robotics
Basics of RoboticsBasics of Robotics
Basics of Robotics
 
Tài Liệu Điều Khiển Từ Xa Bằng Hồng Ngoại
Tài Liệu Điều Khiển Từ Xa Bằng Hồng NgoạiTài Liệu Điều Khiển Từ Xa Bằng Hồng Ngoại
Tài Liệu Điều Khiển Từ Xa Bằng Hồng Ngoại
 
Microchip's PIC Micro Controller
Microchip's PIC Micro ControllerMicrochip's PIC Micro Controller
Microchip's PIC Micro Controller
 
Arm corrected ppt
Arm corrected pptArm corrected ppt
Arm corrected ppt
 
ARM Fundamentals
ARM FundamentalsARM Fundamentals
ARM Fundamentals
 
Viết Ngôn Ngữ Lập Trình 8051 PIC AVR
Viết Ngôn Ngữ Lập Trình 8051 PIC AVRViết Ngôn Ngữ Lập Trình 8051 PIC AVR
Viết Ngôn Ngữ Lập Trình 8051 PIC AVR
 
Computer harware complete notes
Computer harware complete notesComputer harware complete notes
Computer harware complete notes
 
8051 io interface
8051 io interface8051 io interface
8051 io interface
 
Lap trinh c_tu_co_ban_den_nang_cao
Lap trinh c_tu_co_ban_den_nang_caoLap trinh c_tu_co_ban_den_nang_cao
Lap trinh c_tu_co_ban_den_nang_cao
 
Q4.11: ARM Architecture
Q4.11: ARM ArchitectureQ4.11: ARM Architecture
Q4.11: ARM Architecture
 

Similar to A tmega8 basics

Hardware required to build a basic Robot
Hardware required to build a basic RobotHardware required to build a basic Robot
Hardware required to build a basic RobotVarun A M
 
microcontroller basics
microcontroller basicsmicrocontroller basics
microcontroller basicssagar Ramdev
 
Seminar topic.on embeded system
Seminar topic.on embeded systemSeminar topic.on embeded system
Seminar topic.on embeded systemSachinMaithani1
 
Arduino Microcontroller
Arduino Microcontroller Arduino Microcontroller
Arduino Microcontroller creatjet3d labs
 
Atmel 8271-8-bit-avr-microcontroller-a tmega48-a-48pa-88a-88pa-168a-168pa-328...
Atmel 8271-8-bit-avr-microcontroller-a tmega48-a-48pa-88a-88pa-168a-168pa-328...Atmel 8271-8-bit-avr-microcontroller-a tmega48-a-48pa-88a-88pa-168a-168pa-328...
Atmel 8271-8-bit-avr-microcontroller-a tmega48-a-48pa-88a-88pa-168a-168pa-328...Rajan Gautam
 
Atmel microcontrollers-a tmega328-p_datasheet
Atmel microcontrollers-a tmega328-p_datasheetAtmel microcontrollers-a tmega328-p_datasheet
Atmel microcontrollers-a tmega328-p_datasheetAlexTronciu
 
Atemega saya
Atemega sayaAtemega saya
Atemega sayasulej77
 
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080Vivek Venugopal
 
Atmega16 Microconntroller Data sheet
Atmega16 Microconntroller Data sheetAtmega16 Microconntroller Data sheet
Atmega16 Microconntroller Data sheetMicrotech Solutions
 
Atmel-7735-Automotive-Microcontrollers-ATmega169P_-968165.pdf
Atmel-7735-Automotive-Microcontrollers-ATmega169P_-968165.pdfAtmel-7735-Automotive-Microcontrollers-ATmega169P_-968165.pdf
Atmel-7735-Automotive-Microcontrollers-ATmega169P_-968165.pdfMiguel Angel Sejas Villarroel
 
A tmega16A Microcontroller Data Sheet
A tmega16A Microcontroller Data SheetA tmega16A Microcontroller Data Sheet
A tmega16A Microcontroller Data SheetMicrotech Solutions
 
Precision microcontrolleroverview
Precision microcontrolleroverviewPrecision microcontrolleroverview
Precision microcontrolleroverviewGhazi BEN HMIDA
 
Pic microcontroller [autosaved] [autosaved]
Pic microcontroller [autosaved] [autosaved]Pic microcontroller [autosaved] [autosaved]
Pic microcontroller [autosaved] [autosaved]gauravholani
 
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERSPIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERSVISHNU KP
 
5. Features of the LPC214X Family.pptx
5. Features of the LPC214X Family.pptx5. Features of the LPC214X Family.pptx
5. Features of the LPC214X Family.pptxSivakumarG52
 

Similar to A tmega8 basics (20)

Hardware required to build a basic Robot
Hardware required to build a basic RobotHardware required to build a basic Robot
Hardware required to build a basic Robot
 
microcontroller basics
microcontroller basicsmicrocontroller basics
microcontroller basics
 
Seminar topic.on embeded system
Seminar topic.on embeded systemSeminar topic.on embeded system
Seminar topic.on embeded system
 
Arduino Microcontroller
Arduino Microcontroller Arduino Microcontroller
Arduino Microcontroller
 
Atmel 8271-8-bit-avr-microcontroller-a tmega48-a-48pa-88a-88pa-168a-168pa-328...
Atmel 8271-8-bit-avr-microcontroller-a tmega48-a-48pa-88a-88pa-168a-168pa-328...Atmel 8271-8-bit-avr-microcontroller-a tmega48-a-48pa-88a-88pa-168a-168pa-328...
Atmel 8271-8-bit-avr-microcontroller-a tmega48-a-48pa-88a-88pa-168a-168pa-328...
 
Atmel microcontrollers-a tmega328-p_datasheet
Atmel microcontrollers-a tmega328-p_datasheetAtmel microcontrollers-a tmega328-p_datasheet
Atmel microcontrollers-a tmega328-p_datasheet
 
Atemega saya
Atemega sayaAtemega saya
Atemega saya
 
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
 
Dsp on an-avr
Dsp on an-avrDsp on an-avr
Dsp on an-avr
 
Atmega16 datasheet
Atmega16 datasheetAtmega16 datasheet
Atmega16 datasheet
 
Atmega16 Microconntroller Data sheet
Atmega16 Microconntroller Data sheetAtmega16 Microconntroller Data sheet
Atmega16 Microconntroller Data sheet
 
Atmel-7735-Automotive-Microcontrollers-ATmega169P_-968165.pdf
Atmel-7735-Automotive-Microcontrollers-ATmega169P_-968165.pdfAtmel-7735-Automotive-Microcontrollers-ATmega169P_-968165.pdf
Atmel-7735-Automotive-Microcontrollers-ATmega169P_-968165.pdf
 
A tmega16A Microcontroller Data Sheet
A tmega16A Microcontroller Data SheetA tmega16A Microcontroller Data Sheet
A tmega16A Microcontroller Data Sheet
 
Precision microcontrolleroverview
Precision microcontrolleroverviewPrecision microcontrolleroverview
Precision microcontrolleroverview
 
Pic microcontroller [autosaved] [autosaved]
Pic microcontroller [autosaved] [autosaved]Pic microcontroller [autosaved] [autosaved]
Pic microcontroller [autosaved] [autosaved]
 
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERSPIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
 
digital clock atmega16
digital clock atmega16digital clock atmega16
digital clock atmega16
 
Atmega 328p
Atmega 328p Atmega 328p
Atmega 328p
 
Atmega324 p
Atmega324 pAtmega324 p
Atmega324 p
 
5. Features of the LPC214X Family.pptx
5. Features of the LPC214X Family.pptx5. Features of the LPC214X Family.pptx
5. Features of the LPC214X Family.pptx
 

More from Nitesh Singh

More from Nitesh Singh (20)

Risk taking and emotions
Risk taking and emotionsRisk taking and emotions
Risk taking and emotions
 
Project report RAILWAY TICKET RESERVATION SYSTEM SAD
Project report RAILWAY TICKET RESERVATION SYSTEM SADProject report RAILWAY TICKET RESERVATION SYSTEM SAD
Project report RAILWAY TICKET RESERVATION SYSTEM SAD
 
The real comedy behind comedy
The real comedy behind comedyThe real comedy behind comedy
The real comedy behind comedy
 
Project report Rs Dry celaners
Project report Rs Dry celaners Project report Rs Dry celaners
Project report Rs Dry celaners
 
BIG DATA ANALYSIS
BIG DATA ANALYSISBIG DATA ANALYSIS
BIG DATA ANALYSIS
 
Udp vs-tcp
Udp vs-tcpUdp vs-tcp
Udp vs-tcp
 
Routing protocols-network-layer
Routing protocols-network-layerRouting protocols-network-layer
Routing protocols-network-layer
 
Routers vs-switch
Routers vs-switchRouters vs-switch
Routers vs-switch
 
New udp
New udpNew udp
New udp
 
I pv4 format
I pv4 formatI pv4 format
I pv4 format
 
I pv4 addressing
I pv4 addressingI pv4 addressing
I pv4 addressing
 
Hub vs-switch
Hub vs-switchHub vs-switch
Hub vs-switch
 
Ftp
FtpFtp
Ftp
 
Email ftp
Email ftpEmail ftp
Email ftp
 
Www and http
Www and httpWww and http
Www and http
 
Transmission main
Transmission mainTransmission main
Transmission main
 
Ta 104-topology
Ta 104-topologyTa 104-topology
Ta 104-topology
 
Ta 104-topology (1)
Ta 104-topology (1)Ta 104-topology (1)
Ta 104-topology (1)
 
Ta 104-tcp
Ta 104-tcpTa 104-tcp
Ta 104-tcp
 
Ta 104-media-3
Ta 104-media-3Ta 104-media-3
Ta 104-media-3
 

A tmega8 basics

  • 1. AVR ATMEGA 8 MICRO-CONTROLLER
  • 2. INTRODUCTION • ATmega8 is a 8-bit microcontroller based on the AVR RISC architecture • By executing powerful instructions in a single clock cycle, the ATmega8 achieves throughput approaching 1 MIPS per MHz
  • 3. Contd.... • In order to maximize performance and parallelism, the AVR uses a Harvard architecture- which separates memories and buses for program and data • Instruction in program memory are executed with single level pipelining • This concept enables instructions to be executed in every clock cycle
  • 4. FEATURES • High-performance 8 bit Microcontroller • Up to 16 MIPS Throughput at 16 MHz • 32 x 8 General Purpose Working Registers • Six ADC channels in PDIP package • Internal Calibrated Oscillator
  • 5. TYPES OF PACKAGES • 28-pin PDIP (Plastic Dual In-line Package) • 32-pin TQFP (Thin Quad film Package)
  • 6. MEMORY SEGMENTS • 8K Bytes of Flash program memory • 512 Bytes EEPROM (Electrically Erasable Programmable Read Only Memory) • 1K Byte Internal RAM (Random Access Memory)
  • 7. Contd.... • Write/Erase Cycles: 10,000 Flash/100,000 EEPROM • Data retention: 20 years at 85°C/100 years at 25°C
  • 9. PIN DESCRIPTION • VCC Digital supply voltage • GND Ground • RESET A low level on this pin for longer than the minimum pulse length will generate a reset, even if the clock is not running • AREF The analog reference pin for the A/D Converter
  • 10. Contd.... • AVCC The supply voltage pin for the A/D Converter
  • 11. PORTS • Three ports i.e PortB, PortC, PortD • Three registers associated with every port  DDRx – Data Direction Register  PINx – Port input  PORTx- Port output *Note – ‘x’ is subscript and could be either of B, C, D
  • 12. Port B (PB7..PB0) • Port B is an 8-bit bi-directional I/O port • Can be used either as a input port or as output port ( direction must be specified in programming)
  • 14.
  • 15. Port C (PC5..PC0) • Port C is an 7-bit bi-directional I/O port • Can be used either as a input port or as output port ( direction must be specified in programming)
  • 16. Port D (PD7..PD0) • Port D is an 8-bit bi-directional I/O port • Can be used either as a input port or as output port ( direction must be specified in coding)