SlideShare ist ein Scribd-Unternehmen logo
1 von 21
AVRAVR
ATMEGA 8ATMEGA 8
MICRO-CONTROLLERMICRO-CONTROLLER
http://bestnetworkingsolutions.blogspot.in 1
INTRODUCTIONINTRODUCTION
• ATmega8 is a 8-bit microcontroller based on the AVR RISCATmega8 is a 8-bit microcontroller based on the AVR RISC
architecturearchitecture
• By executing powerful instructions in a single clock cycle, theBy executing powerful instructions in a single clock cycle, the
ATmega8 achieves throughput approaching 1 MIPS per MHzATmega8 achieves throughput approaching 1 MIPS per MHz
http://bestnetworkingsolutions.blogspot.in 2
Contd....Contd....
• In order to maximize performance and parallelism, the AVR uses aIn order to maximize performance and parallelism, the AVR uses a
Harvard architecture- which separates memories and buses forHarvard architecture- which separates memories and buses for
program and dataprogram and data
• Instruction in program memory are executed with single levelInstruction in program memory are executed with single level
pipeliningpipelining
• This concept enables instructions to be executed in every clockThis concept enables instructions to be executed in every clock
cyclecycle
http://bestnetworkingsolutions.blogspot.in 3
FEATURESFEATURES
• High-performance 8 bit MicrocontrollerHigh-performance 8 bit Microcontroller
• Up to 16 MIPS Throughput at 16 MHzUp to 16 MIPS Throughput at 16 MHz
• 32 x 8 General Purpose Working Registers32 x 8 General Purpose Working Registers
• Six ADC channels in PDIP packageSix ADC channels in PDIP package
• Internal Calibrated OscillatorInternal Calibrated Oscillator
http://bestnetworkingsolutions.blogspot.in 4
TYPES OF PACKAGESTYPES OF PACKAGES
• 28-pin PDIP (Plastic Dual In-line Package)28-pin PDIP (Plastic Dual In-line Package)
• 32-pin TQFP (Thin Quad film Package)32-pin TQFP (Thin Quad film Package)
http://bestnetworkingsolutions.blogspot.in 5
MEMORY SEGMENTSMEMORY SEGMENTS
• 8K Bytes of Flash program memory8K Bytes of Flash program memory
• 512 Bytes EEPROM (Electrically Erasable Programmable Read512 Bytes EEPROM (Electrically Erasable Programmable Read
Only Memory)Only Memory)
• 1K Byte Internal RAM (Random Access Memory)1K Byte Internal RAM (Random Access Memory)
http://bestnetworkingsolutions.blogspot.in 6
Contd....Contd....
• Write/Erase Cycles: 10,000 Flash/100,000 EEPROMWrite/Erase Cycles: 10,000 Flash/100,000 EEPROM
• Data retention: 20 years at 85°C/100 years at 25°CData retention: 20 years at 85°C/100 years at 25°C
http://bestnetworkingsolutions.blogspot.in 7
PIN OUTPIN OUT
http://bestnetworkingsolutions.blogspot.in 8
PIN DESCRIPTIONPIN DESCRIPTION
• VCCVCC Digital supply voltageDigital supply voltage
• GNDGND GroundGround
• RESETRESET A low level on this pin for longer than the minimum pulseA low level on this pin for longer than the minimum pulse
length will generate a reset, even if the clock is not runninglength will generate a reset, even if the clock is not running
• AREFAREF The analog reference pin for the A/D ConverterThe analog reference pin for the A/D Converter
http://bestnetworkingsolutions.blogspot.in 9
Contd....Contd....
• AVCCAVCC The supply voltage pin for the A/D ConverterThe supply voltage pin for the A/D Converter
http://bestnetworkingsolutions.blogspot.in 10
PORTSPORTS
• Three ports i.e PortB, PortC, PortDThree ports i.e PortB, PortC, PortD
• Three registers associated with every portThree registers associated with every port
DDRx – Data Direction RegisterDDRx – Data Direction Register
PINx – Port inputPINx – Port input
PORTx- Port outputPORTx- Port output
*Note – ‘x’ is subscript and could be either of B, C, D*Note – ‘x’ is subscript and could be either of B, C, D
http://bestnetworkingsolutions.blogspot.in 11
PORT B (PB7..PB0)PORT B (PB7..PB0)
• Port B is an 8-bit bi-directional I/O portPort B is an 8-bit bi-directional I/O port
• Can be used either as a input port or as output port ( directionCan be used either as a input port or as output port ( direction
must be specified in programming)must be specified in programming)
http://bestnetworkingsolutions.blogspot.in 12
REGISTER DESCRIPTION OF I/OREGISTER DESCRIPTION OF I/O
PORTSPORTS
http://bestnetworkingsolutions.blogspot.in 13
http://bestnetworkingsolutions.blogspot.in 14
PORT C (PC5..PC0)PORT C (PC5..PC0)
• Port C is an 7-bit bi-directional I/O portPort C is an 7-bit bi-directional I/O port
• Can be used either as a input port or as output port ( directionCan be used either as a input port or as output port ( direction
must be specified in programming)must be specified in programming)
http://bestnetworkingsolutions.blogspot.in 15
PORT D (PD7..PD0)PORT D (PD7..PD0)
• Port D is an 8-bit bi-directional I/O portPort D is an 8-bit bi-directional I/O port
• Can be used either as a input port or as output port ( directionCan be used either as a input port or as output port ( direction
must be specified in coding)must be specified in coding)
http://bestnetworkingsolutions.blogspot.in 16
CONTD....CONTD....
http://bestnetworkingsolutions.blogspot.in 17
CONTD....CONTD....
http://bestnetworkingsolutions.blogspot.in 18
CONTD....CONTD....
http://bestnetworkingsolutions.blogspot.in 19
CONTD....CONTD....
http://bestnetworkingsolutions.blogspot.in 20
THANK YOU…THANK YOU…
http://bestnetworkingsolutions.blogspot.in 21

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

ATmega 16
ATmega 16ATmega 16
ATmega 16
 
PIC 16F877A by PARTHIBAN. S.
PIC 16F877A   by PARTHIBAN. S.PIC 16F877A   by PARTHIBAN. S.
PIC 16F877A by PARTHIBAN. S.
 
Developing an avr microcontroller system
Developing an avr microcontroller systemDeveloping an avr microcontroller system
Developing an avr microcontroller system
 
Microcontroller lec 2
Microcontroller  lec 2Microcontroller  lec 2
Microcontroller lec 2
 
Atmel and pic microcontroller
Atmel and pic microcontrollerAtmel and pic microcontroller
Atmel and pic microcontroller
 
PIC introduction + mapping
PIC introduction + mappingPIC introduction + mapping
PIC introduction + mapping
 
PIC16F877A interfacing with LCD
PIC16F877A interfacing with LCDPIC16F877A interfacing with LCD
PIC16F877A interfacing with LCD
 
PIC CONTROLLERS
PIC CONTROLLERSPIC CONTROLLERS
PIC CONTROLLERS
 
Introduction to MPLAB IDE
Introduction to MPLAB IDEIntroduction to MPLAB IDE
Introduction to MPLAB IDE
 
PIC and LCD
PIC and LCDPIC and LCD
PIC and LCD
 
Programming with PIC microcontroller
Programming with PIC microcontroller Programming with PIC microcontroller
Programming with PIC microcontroller
 
Atmega 32
Atmega 32Atmega 32
Atmega 32
 
PIC Microcontroller
PIC MicrocontrollerPIC Microcontroller
PIC Microcontroller
 
Prerequriment of microcontroller
Prerequriment of microcontrollerPrerequriment of microcontroller
Prerequriment of microcontroller
 
Atmel 2486-8-bit-avr-microcontroller-atmega8 l-datasheet
Atmel 2486-8-bit-avr-microcontroller-atmega8 l-datasheetAtmel 2486-8-bit-avr-microcontroller-atmega8 l-datasheet
Atmel 2486-8-bit-avr-microcontroller-atmega8 l-datasheet
 
8051 architecture and pin configuration
8051 architecture and pin configuration8051 architecture and pin configuration
8051 architecture and pin configuration
 
Interfacing with Atmega 16
Interfacing with Atmega 16Interfacing with Atmega 16
Interfacing with Atmega 16
 
Intrerfacing i
Intrerfacing iIntrerfacing i
Intrerfacing i
 
PIC 16F877 micro controller by Gaurav raikar
PIC 16F877 micro controller by Gaurav raikarPIC 16F877 micro controller by Gaurav raikar
PIC 16F877 micro controller by Gaurav raikar
 
Atmega16 Microconntroller Data sheet
Atmega16 Microconntroller Data sheetAtmega16 Microconntroller Data sheet
Atmega16 Microconntroller Data sheet
 

Andere mochten auch

Andere mochten auch (20)

Ccna complete notes
Ccna complete notesCcna complete notes
Ccna complete notes
 
Introduction to Atmel's 8-bit AVR Microcontrollers
Introduction to Atmel's 8-bit AVR Microcontrollers Introduction to Atmel's 8-bit AVR Microcontrollers
Introduction to Atmel's 8-bit AVR Microcontrollers
 
Arm assembly language by Bournemouth Unversity
Arm assembly language by Bournemouth UnversityArm assembly language by Bournemouth Unversity
Arm assembly language by Bournemouth Unversity
 
Lecture 2 timers, pwm, state machine IN PIC
Lecture 2   timers, pwm, state machine IN PIC Lecture 2   timers, pwm, state machine IN PIC
Lecture 2 timers, pwm, state machine IN PIC
 
Timers and pwm
Timers and pwmTimers and pwm
Timers and pwm
 
Network+
Network+Network+
Network+
 
Interfacing bluetooth with arduino
Interfacing bluetooth with arduinoInterfacing bluetooth with arduino
Interfacing bluetooth with arduino
 
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
 
Cam bien tiem can
Cam bien tiem canCam bien tiem can
Cam bien tiem can
 
15 Ghép nối 8255
15 Ghép nối 825515 Ghép nối 8255
15 Ghép nối 8255
 
Advance Microcontroller AVR
Advance Microcontroller AVRAdvance Microcontroller AVR
Advance Microcontroller AVR
 
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
 
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
 
Cloud computing e gov-12
Cloud computing e gov-12Cloud computing e gov-12
Cloud computing e gov-12
 
Cctns trg syllabus
Cctns trg syllabusCctns trg syllabus
Cctns trg syllabus
 
Ccna
CcnaCcna
Ccna
 
Voip basics
Voip basicsVoip basics
Voip basics
 
Qo s
Qo sQo s
Qo s
 

Ähnlich wie AT mega8 basics

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 applicationsEdgefxkits & Solutions
 
microcontroller basics
microcontroller basicsmicrocontroller basics
microcontroller basicssagar Ramdev
 
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
 
Seminar topic.on embeded system
Seminar topic.on embeded systemSeminar topic.on embeded system
Seminar topic.on embeded systemSachinMaithani1
 
chapter2-part1-140329134839-phpapp02.pptx
chapter2-part1-140329134839-phpapp02.pptxchapter2-part1-140329134839-phpapp02.pptx
chapter2-part1-140329134839-phpapp02.pptxSangeetaTripathi8
 
Basics Of Embedded Systems
Basics Of Embedded SystemsBasics Of Embedded Systems
Basics Of Embedded Systemsarlabstech
 
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
 
introduction to embedded systems part 2
introduction to embedded systems part 2introduction to embedded systems part 2
introduction to embedded systems part 2Hatem Abd El-Salam
 
MICROPROCESSOR_Notes.pptx
MICROPROCESSOR_Notes.pptxMICROPROCESSOR_Notes.pptx
MICROPROCESSOR_Notes.pptxWorkingad
 

Ähnlich wie AT mega8 basics (20)

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
 
embedded system and AVR
embedded system and AVRembedded system and AVR
embedded system and AVR
 
microcontroller basics
microcontroller basicsmicrocontroller basics
microcontroller basics
 
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
 
Seminar topic.on embeded system
Seminar topic.on embeded systemSeminar topic.on embeded system
Seminar topic.on embeded system
 
Atmega324 p
Atmega324 pAtmega324 p
Atmega324 p
 
chapter2-part1-140329134839-phpapp02.pptx
chapter2-part1-140329134839-phpapp02.pptxchapter2-part1-140329134839-phpapp02.pptx
chapter2-part1-140329134839-phpapp02.pptx
 
2502s
2502s2502s
2502s
 
Dsp on an-avr
Dsp on an-avrDsp on an-avr
Dsp on an-avr
 
Basics Of Embedded Systems
Basics Of Embedded SystemsBasics Of Embedded Systems
Basics Of Embedded Systems
 
Architecture of pentium family
Architecture of pentium familyArchitecture of pentium family
Architecture of pentium family
 
Atmega8u2 mur
Atmega8u2 murAtmega8u2 mur
Atmega8u2 mur
 
Smart logic
Smart logicSmart logic
Smart logic
 
Training2 ppt
Training2 pptTraining2 ppt
Training2 ppt
 
2014 ii c08t-sbc pic para ecg
2014 ii c08t-sbc pic para ecg 2014 ii c08t-sbc pic para ecg
2014 ii c08t-sbc pic para ecg
 
Pic16 c7x
Pic16 c7xPic16 c7x
Pic16 c7x
 
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
 
introduction to embedded systems part 2
introduction to embedded systems part 2introduction to embedded systems part 2
introduction to embedded systems part 2
 
MICROPROCESSOR_Notes.pptx
MICROPROCESSOR_Notes.pptxMICROPROCESSOR_Notes.pptx
MICROPROCESSOR_Notes.pptx
 
Doc2502
Doc2502Doc2502
Doc2502
 

Kürzlich hochgeladen

Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 

Kürzlich hochgeladen (20)

Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 

AT mega8 basics

  • 2. INTRODUCTIONINTRODUCTION • ATmega8 is a 8-bit microcontroller based on the AVR RISCATmega8 is a 8-bit microcontroller based on the AVR RISC architecturearchitecture • By executing powerful instructions in a single clock cycle, theBy executing powerful instructions in a single clock cycle, the ATmega8 achieves throughput approaching 1 MIPS per MHzATmega8 achieves throughput approaching 1 MIPS per MHz http://bestnetworkingsolutions.blogspot.in 2
  • 3. Contd....Contd.... • In order to maximize performance and parallelism, the AVR uses aIn order to maximize performance and parallelism, the AVR uses a Harvard architecture- which separates memories and buses forHarvard architecture- which separates memories and buses for program and dataprogram and data • Instruction in program memory are executed with single levelInstruction in program memory are executed with single level pipeliningpipelining • This concept enables instructions to be executed in every clockThis concept enables instructions to be executed in every clock cyclecycle http://bestnetworkingsolutions.blogspot.in 3
  • 4. FEATURESFEATURES • High-performance 8 bit MicrocontrollerHigh-performance 8 bit Microcontroller • Up to 16 MIPS Throughput at 16 MHzUp to 16 MIPS Throughput at 16 MHz • 32 x 8 General Purpose Working Registers32 x 8 General Purpose Working Registers • Six ADC channels in PDIP packageSix ADC channels in PDIP package • Internal Calibrated OscillatorInternal Calibrated Oscillator http://bestnetworkingsolutions.blogspot.in 4
  • 5. TYPES OF PACKAGESTYPES OF PACKAGES • 28-pin PDIP (Plastic Dual In-line Package)28-pin PDIP (Plastic Dual In-line Package) • 32-pin TQFP (Thin Quad film Package)32-pin TQFP (Thin Quad film Package) http://bestnetworkingsolutions.blogspot.in 5
  • 6. MEMORY SEGMENTSMEMORY SEGMENTS • 8K Bytes of Flash program memory8K Bytes of Flash program memory • 512 Bytes EEPROM (Electrically Erasable Programmable Read512 Bytes EEPROM (Electrically Erasable Programmable Read Only Memory)Only Memory) • 1K Byte Internal RAM (Random Access Memory)1K Byte Internal RAM (Random Access Memory) http://bestnetworkingsolutions.blogspot.in 6
  • 7. Contd....Contd.... • Write/Erase Cycles: 10,000 Flash/100,000 EEPROMWrite/Erase Cycles: 10,000 Flash/100,000 EEPROM • Data retention: 20 years at 85°C/100 years at 25°CData retention: 20 years at 85°C/100 years at 25°C http://bestnetworkingsolutions.blogspot.in 7
  • 9. PIN DESCRIPTIONPIN DESCRIPTION • VCCVCC Digital supply voltageDigital supply voltage • GNDGND GroundGround • RESETRESET A low level on this pin for longer than the minimum pulseA low level on this pin for longer than the minimum pulse length will generate a reset, even if the clock is not runninglength will generate a reset, even if the clock is not running • AREFAREF The analog reference pin for the A/D ConverterThe analog reference pin for the A/D Converter http://bestnetworkingsolutions.blogspot.in 9
  • 10. Contd....Contd.... • AVCCAVCC The supply voltage pin for the A/D ConverterThe supply voltage pin for the A/D Converter http://bestnetworkingsolutions.blogspot.in 10
  • 11. PORTSPORTS • Three ports i.e PortB, PortC, PortDThree ports i.e PortB, PortC, PortD • Three registers associated with every portThree registers associated with every port DDRx – Data Direction RegisterDDRx – Data Direction Register PINx – Port inputPINx – Port input PORTx- Port outputPORTx- Port output *Note – ‘x’ is subscript and could be either of B, C, D*Note – ‘x’ is subscript and could be either of B, C, D http://bestnetworkingsolutions.blogspot.in 11
  • 12. PORT B (PB7..PB0)PORT B (PB7..PB0) • Port B is an 8-bit bi-directional I/O portPort B is an 8-bit bi-directional I/O port • Can be used either as a input port or as output port ( directionCan be used either as a input port or as output port ( direction must be specified in programming)must be specified in programming) http://bestnetworkingsolutions.blogspot.in 12
  • 13. REGISTER DESCRIPTION OF I/OREGISTER DESCRIPTION OF I/O PORTSPORTS http://bestnetworkingsolutions.blogspot.in 13
  • 15. PORT C (PC5..PC0)PORT C (PC5..PC0) • Port C is an 7-bit bi-directional I/O portPort C is an 7-bit bi-directional I/O port • Can be used either as a input port or as output port ( directionCan be used either as a input port or as output port ( direction must be specified in programming)must be specified in programming) http://bestnetworkingsolutions.blogspot.in 15
  • 16. PORT D (PD7..PD0)PORT D (PD7..PD0) • Port D is an 8-bit bi-directional I/O portPort D is an 8-bit bi-directional I/O port • Can be used either as a input port or as output port ( directionCan be used either as a input port or as output port ( direction must be specified in coding)must be specified in coding) http://bestnetworkingsolutions.blogspot.in 16