SlideShare una empresa de Scribd logo
1 de 33
Descargar para leer sin conexión
Microcontroller
Mohamed Abd ElHay

Copyright © 2012 Embedded Systems
Committee
• Number of I/O pins required
• Interfaces/peripherals required
• Memory requirements
• Number of interrupts required
• Real-Time considerations
• Development environment
• Processing speed required
• Memory architecture
• Power requirements
• Life cycle costs
• Vendor support

Copyright © 2012 Embedded Systems
Committee
Copyright © 2012 Embedded Systems
Committee
 AVR was developed in the year 1996 by Atmel
Corporation.
 The architecture of AVR was developed by Alf-Egil
Bogen and Vegard Wollan.
 AVR derives its name from its developers and stands
for Alf-Egil Bogen Vegard Wollan RISC
microcontroller.
Copyright © 2012 Embedded Systems
Committee
 Also known as Advanced Virtual RISC.
 The AT90S8515 was the first microcontroller
which was based on AVR architecture.
 The first microcontroller to hit the commercial
market was AT90S1200 in the year 1997.

Copyright © 2012 Embedded Systems
Committee
1.TinyAVR :
• Less memory
• small size
• suitable only for simpler applications.

Copyright © 2012 Embedded Systems
Committee
2.MegaAVR :

• These are the most popular ones
• having good amount of memory (upto 256 KB)
higher number of inbuilt peripherals
• suitable for moderate to complex applications.

Copyright © 2012 Embedded Systems
Committee
3. XmegaAVR :
Used commercially for complex applications, which
require large program memory and high speed.

Copyright © 2012 Embedded Systems
Committee
Copyright © 2012 Embedded Systems
Committee
Copyright © 2012 Embedded Systems
Committee
AVR microcontrollers 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.
Copyright © 2012 Embedded Systems
Committee
comparison between the three most commonly used
families of microcontrollers:

Copyright © 2012 Embedded Systems
Committee
•

8-bit microcontroller

Copyright © 2012 Embedded Systems
Committee
• AVR follows Harvard Architecture

the processor is equipped with separate memories and
buses for Program and the Data information. Here
while an instruction is being executed, the next
instruction is pre-fetched from the program memory.

Copyright © 2012 Embedded Systems
Committee
• The AVR microcontrollers are based on the advanced
RISC architecture and consist of 32 x 8-bit general
purpose working registers.
•

Within one single clock cycle, AVR can take inputs from
two general purpose registers and put them to ALU for
carrying out the requested operation.

• AVR does not have any register like accumulator as in
8051 family of microcontrollers.

• the operations can be performed between any of the
registers and can be stored in either of them
Copyright © 2012 Embedded Systems
Committee
Copyright © 2012 Embedded Systems
Committee
Naming Convention

Copyright © 2012 Embedded Systems
Committee
There are two flavors for Atmega16 microcontroller:

1.

Atmega16:- Operating frequency range is 0 – 16 MHz.

2.

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
instructions.

Copyright © 2012 Embedded Systems
Committee
Copyright © 2012 Embedded Systems
Committee
•

I/O Ports: Atmega16 has four (PORTA, PORTB,
PORTC and PORTD) 8-bit input-output ports.

• ADC Interface: Atmega16 is equipped with an 8 channel
ADC with a resolution of 10-bits.
• Timers/Counters: Atmega16 consists of two 8-bit and
one 16-bit timer/counter.
• Watchdog Timer: is 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.
Copyright © 2012 Embedded Systems
Committee
• Internal Calibrated Oscillator:
 Atmega16 is equipped with an internal oscillator for
driving its clock. By default Atmega16 is set to operate at

internal calibrated oscillator of 1 MHz.
 The maximum frequency of internal oscillator is 8Mhz.
 ATmega16 can be operated using an external crystal
oscillator with a maximum frequency of 16MHz.
Copyright © 2012 Embedded Systems
Committee
• Interrupt: 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).
• General Purpose Registers: Atmega16 is equipped with 32
general purpose registers which are coupled directly with the
Arithmetic Logical Unit (ALU) of CPU.

Copyright © 2012 Embedded Systems
Committee
• Memory: Atmega16 consist of three different
memory sections:
1.Flash EEPROM: Flash EEPROM. Atmega16 is available
with 16KB of in system programmable Flash EEPROM.
2. Byte Addressable EEPROM: Atmega16 has 512 bytes of
EEPROM.
3. SRAM :Atmega16 is equipped with 1KB of internal
SRAM.

A small portion of SRAM is set aside for general purpose
registers used by CPU and some for the peripheral
subsystems of the microcontroller
Copyright © 2012 Embedded Systems
Committee
• ISP: (In System Programmable )Flash Memory which
can be programmed without removing the IC from the
circuit.
•

SPI: SPI port is used for serial communication between
two devices on a common clock source.

Copyright © 2012 Embedded Systems
Committee
• TWI: (Two Wire Interface )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.
• DAC: Atmega16 is also equipped with a DAC interface
which can be used for reverse action performed by ADC

Copyright © 2012 Embedded Systems
Committee
Copyright © 2012 Embedded Systems
Committee
Copyright © 2012 Embedded Systems
Committee
Copyright © 2012 Embedded Systems
Committee
Copyright © 2012 Embedded Systems
Committee
R1: 4.7 KΩ
C1: 0.1 μF
Copyright © 2012 Embedded Systems
Committee
Copyright © 2012 Embedded Systems
Committee
References
• ESC Training Team

Copyright © 2012 Embedded Systems
Committee
info@escommittee.net

Copyright © 2012 Embedded Systems
Committee

Más contenido relacionado

La actualidad más candente

AVR Microcontroller
AVR MicrocontrollerAVR Microcontroller
AVR Microcontroller
Özcan Acar
 

La actualidad más candente (20)

ATmega32-AVR microcontrollers-Part I
ATmega32-AVR microcontrollers-Part IATmega32-AVR microcontrollers-Part I
ATmega32-AVR microcontrollers-Part I
 
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
 
8 bit microcontroller
8 bit microcontroller8 bit microcontroller
8 bit microcontroller
 
Micro-controller course lec 01
Micro-controller course lec 01Micro-controller course lec 01
Micro-controller course lec 01
 
Introduction to stm32-part2
Introduction to stm32-part2Introduction to stm32-part2
Introduction to stm32-part2
 
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
 
Intro to micro controller (Atmega16)
Intro to micro controller (Atmega16)Intro to micro controller (Atmega16)
Intro to micro controller (Atmega16)
 
Introduction on STM32 Platform and Presentation of a Water-Level & Temperatur...
Introduction on STM32 Platform and Presentation of a Water-Level & Temperatur...Introduction on STM32 Platform and Presentation of a Water-Level & Temperatur...
Introduction on STM32 Platform and Presentation of a Water-Level & Temperatur...
 
Introduction to stm32-part1
Introduction to stm32-part1Introduction to stm32-part1
Introduction to stm32-part1
 
Programming ARM Cortex-M4 STM32 Nucleo
Programming ARM Cortex-M4  STM32 NucleoProgramming ARM Cortex-M4  STM32 Nucleo
Programming ARM Cortex-M4 STM32 Nucleo
 
Embeded system by Mitesh Kumar
Embeded system by Mitesh KumarEmbeded system by Mitesh Kumar
Embeded system by Mitesh Kumar
 
Basics Of Embedded Systems
Basics Of Embedded SystemsBasics Of Embedded Systems
Basics Of Embedded Systems
 
3.TechieNest microcontrollers
3.TechieNest  microcontrollers3.TechieNest  microcontrollers
3.TechieNest microcontrollers
 
AVR Microcontroller
AVR MicrocontrollerAVR Microcontroller
AVR Microcontroller
 
Embedded system by owais
Embedded system by owaisEmbedded system by owais
Embedded system by owais
 
An Entire Concept of Embedded systems
An Entire Concept of Embedded systems An Entire Concept of Embedded systems
An Entire Concept of Embedded systems
 
CPU Architecture
CPU ArchitectureCPU Architecture
CPU Architecture
 
Introduction to AVR Microcontroller
Introduction to AVR Microcontroller Introduction to AVR Microcontroller
Introduction to AVR Microcontroller
 
Embedded system hardware architecture ii
Embedded system hardware architecture iiEmbedded system hardware architecture ii
Embedded system hardware architecture ii
 
Embedded system - Introduction to interfacing with peripherals
Embedded system - Introduction to interfacing with peripheralsEmbedded system - Introduction to interfacing with peripherals
Embedded system - Introduction to interfacing with peripherals
 

Destacado

ประวัติส่วนตัว
ประวัติส่วนตัวประวัติส่วนตัว
ประวัติส่วนตัว
Lynnie1177
 
แบบโครงร่างโครงงานคอมพิวเตอร์
แบบโครงร่างโครงงานคอมพิวเตอร์แบบโครงร่างโครงงานคอมพิวเตอร์
แบบโครงร่างโครงงานคอมพิวเตอร์
Lynnie1177
 
อังกฤษ
อังกฤษอังกฤษ
อังกฤษ
Lynnie1177
 
สังคม
สังคมสังคม
สังคม
Lynnie1177
 
Fractales (1)
Fractales (1)Fractales (1)
Fractales (1)
cheliitaa
 

Destacado (20)

Lecture 1 microcontroller overview
Lecture 1   microcontroller overviewLecture 1   microcontroller overview
Lecture 1 microcontroller overview
 
ประวัติส่วนตัว
ประวัติส่วนตัวประวัติส่วนตัว
ประวัติส่วนตัว
 
แบบโครงร่างโครงงานคอมพิวเตอร์
แบบโครงร่างโครงงานคอมพิวเตอร์แบบโครงร่างโครงงานคอมพิวเตอร์
แบบโครงร่างโครงงานคอมพิวเตอร์
 
คณิต
คณิตคณิต
คณิต
 
อังกฤษ
อังกฤษอังกฤษ
อังกฤษ
 
สังคม
สังคมสังคม
สังคม
 
Pdhpe slideshow
Pdhpe slideshowPdhpe slideshow
Pdhpe slideshow
 
Gato renato
Gato renatoGato renato
Gato renato
 
Bigalytics
BigalyticsBigalytics
Bigalytics
 
Pr i ncess!!!
Pr i ncess!!!Pr i ncess!!!
Pr i ncess!!!
 
Hindavi Technologies Profile
Hindavi Technologies ProfileHindavi Technologies Profile
Hindavi Technologies Profile
 
Kbox 101 1000 slide
Kbox 101 1000 slideKbox 101 1000 slide
Kbox 101 1000 slide
 
Unlocking funding opportunities final
Unlocking funding opportunities finalUnlocking funding opportunities final
Unlocking funding opportunities final
 
Atlas corporate profile
Atlas corporate profileAtlas corporate profile
Atlas corporate profile
 
Mo ta du an
Mo ta du anMo ta du an
Mo ta du an
 
Office 2010 migration
Office 2010 migrationOffice 2010 migration
Office 2010 migration
 
Montras com livros 2015
Montras com livros 2015Montras com livros 2015
Montras com livros 2015
 
Fractales (1)
Fractales (1)Fractales (1)
Fractales (1)
 
Matlab workshop
Matlab workshopMatlab workshop
Matlab workshop
 
ไทย
ไทยไทย
ไทย
 

Similar a Micro controller

Embedded training report(mcs 51)
Embedded training report(mcs 51)Embedded training report(mcs 51)
Embedded training report(mcs 51)
Gurwinder Singh
 

Similar a Micro controller (20)

Microcontroller
MicrocontrollerMicrocontroller
Microcontroller
 
introduction to embedded systems part 2
introduction to embedded systems part 2introduction to embedded systems part 2
introduction to embedded systems part 2
 
Introduction to Avr Microcontrollers
Introduction to Avr MicrocontrollersIntroduction to Avr Microcontrollers
Introduction to Avr Microcontrollers
 
1.Introduction to AVR.pdf
1.Introduction to AVR.pdf1.Introduction to AVR.pdf
1.Introduction to AVR.pdf
 
ankit
ankitankit
ankit
 
Dsp on an-avr
Dsp on an-avrDsp on an-avr
Dsp on an-avr
 
Ajal mod 1
Ajal mod 1Ajal mod 1
Ajal mod 1
 
Introduction to intel galileo board gen2
Introduction to intel galileo board gen2Introduction to intel galileo board gen2
Introduction to intel galileo board gen2
 
EE6602 Embedded System
EE6602 Embedded SystemEE6602 Embedded System
EE6602 Embedded System
 
Microcontroller overview 1
Microcontroller overview 1Microcontroller overview 1
Microcontroller overview 1
 
Project report
Project reportProject report
Project report
 
PILOT Session for Embedded Systems
PILOT Session for Embedded Systems PILOT Session for Embedded Systems
PILOT Session for Embedded Systems
 
Atmega 128 datasheet
Atmega 128   datasheetAtmega 128   datasheet
Atmega 128 datasheet
 
Project Wireframes (1) (3).pptx
Project Wireframes (1) (3).pptxProject Wireframes (1) (3).pptx
Project Wireframes (1) (3).pptx
 
Embedded systems-for-beginners-electro8
Embedded systems-for-beginners-electro8Embedded systems-for-beginners-electro8
Embedded systems-for-beginners-electro8
 
Embedded training report(mcs 51)
Embedded training report(mcs 51)Embedded training report(mcs 51)
Embedded training report(mcs 51)
 
Summer training embedded system and its scope
Summer training  embedded system and its scopeSummer training  embedded system and its scope
Summer training embedded system and its scope
 
Summer training embedded system and its scope
Summer training  embedded system and its scopeSummer training  embedded system and its scope
Summer training embedded system and its scope
 
AT89 S52
AT89 S52AT89 S52
AT89 S52
 
AVR introduction
AVR introduction AVR introduction
AVR introduction
 

Más de محمدعبد الحى (10)

Iso26262 component reuse_webinar
Iso26262 component reuse_webinarIso26262 component reuse_webinar
Iso26262 component reuse_webinar
 
Can bus
Can busCan bus
Can bus
 
Lin bus
Lin busLin bus
Lin bus
 
Embedded Systems in Automotive
Embedded Systems in Automotive Embedded Systems in Automotive
Embedded Systems in Automotive
 
MATLAB Programming
MATLAB Programming MATLAB Programming
MATLAB Programming
 
Timers
TimersTimers
Timers
 
Interrupts
InterruptsInterrupts
Interrupts
 
Uart
UartUart
Uart
 
Sw testing
Sw testingSw testing
Sw testing
 
Rtos
RtosRtos
Rtos
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Último (20)

EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 

Micro controller

  • 1. Microcontroller Mohamed Abd ElHay Copyright © 2012 Embedded Systems Committee
  • 2. • Number of I/O pins required • Interfaces/peripherals required • Memory requirements • Number of interrupts required • Real-Time considerations • Development environment • Processing speed required • Memory architecture • Power requirements • Life cycle costs • Vendor support Copyright © 2012 Embedded Systems Committee
  • 3. Copyright © 2012 Embedded Systems Committee
  • 4.  AVR was developed in the year 1996 by Atmel Corporation.  The architecture of AVR was developed by Alf-Egil Bogen and Vegard Wollan.  AVR derives its name from its developers and stands for Alf-Egil Bogen Vegard Wollan RISC microcontroller. Copyright © 2012 Embedded Systems Committee
  • 5.  Also known as Advanced Virtual RISC.  The AT90S8515 was the first microcontroller which was based on AVR architecture.  The first microcontroller to hit the commercial market was AT90S1200 in the year 1997. Copyright © 2012 Embedded Systems Committee
  • 6. 1.TinyAVR : • Less memory • small size • suitable only for simpler applications. Copyright © 2012 Embedded Systems Committee
  • 7. 2.MegaAVR : • These are the most popular ones • having good amount of memory (upto 256 KB) higher number of inbuilt peripherals • suitable for moderate to complex applications. Copyright © 2012 Embedded Systems Committee
  • 8. 3. XmegaAVR : Used commercially for complex applications, which require large program memory and high speed. Copyright © 2012 Embedded Systems Committee
  • 9. Copyright © 2012 Embedded Systems Committee
  • 10. Copyright © 2012 Embedded Systems Committee
  • 11. AVR microcontrollers 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. Copyright © 2012 Embedded Systems Committee
  • 12. comparison between the three most commonly used families of microcontrollers: Copyright © 2012 Embedded Systems Committee
  • 13. • 8-bit microcontroller Copyright © 2012 Embedded Systems Committee
  • 14. • AVR follows Harvard Architecture the processor is equipped with separate memories and buses for Program and the Data information. Here while an instruction is being executed, the next instruction is pre-fetched from the program memory. Copyright © 2012 Embedded Systems Committee
  • 15. • The AVR microcontrollers are based on the advanced RISC architecture and consist of 32 x 8-bit general purpose working registers. • Within one single clock cycle, AVR can take inputs from two general purpose registers and put them to ALU for carrying out the requested operation. • AVR does not have any register like accumulator as in 8051 family of microcontrollers. • the operations can be performed between any of the registers and can be stored in either of them Copyright © 2012 Embedded Systems Committee
  • 16. Copyright © 2012 Embedded Systems Committee
  • 17. Naming Convention Copyright © 2012 Embedded Systems Committee
  • 18. There are two flavors for Atmega16 microcontroller: 1. Atmega16:- Operating frequency range is 0 – 16 MHz. 2. 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 instructions. Copyright © 2012 Embedded Systems Committee
  • 19. Copyright © 2012 Embedded Systems Committee
  • 20. • I/O Ports: Atmega16 has four (PORTA, PORTB, PORTC and PORTD) 8-bit input-output ports. • ADC Interface: Atmega16 is equipped with an 8 channel ADC with a resolution of 10-bits. • Timers/Counters: Atmega16 consists of two 8-bit and one 16-bit timer/counter. • Watchdog Timer: is 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. Copyright © 2012 Embedded Systems Committee
  • 21. • Internal Calibrated Oscillator:  Atmega16 is equipped with an internal oscillator for driving its clock. By default Atmega16 is set to operate at internal calibrated oscillator of 1 MHz.  The maximum frequency of internal oscillator is 8Mhz.  ATmega16 can be operated using an external crystal oscillator with a maximum frequency of 16MHz. Copyright © 2012 Embedded Systems Committee
  • 22. • Interrupt: 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). • General Purpose Registers: Atmega16 is equipped with 32 general purpose registers which are coupled directly with the Arithmetic Logical Unit (ALU) of CPU. Copyright © 2012 Embedded Systems Committee
  • 23. • Memory: Atmega16 consist of three different memory sections: 1.Flash EEPROM: Flash EEPROM. Atmega16 is available with 16KB of in system programmable Flash EEPROM. 2. Byte Addressable EEPROM: Atmega16 has 512 bytes of EEPROM. 3. SRAM :Atmega16 is equipped with 1KB of internal SRAM. A small portion of SRAM is set aside for general purpose registers used by CPU and some for the peripheral subsystems of the microcontroller Copyright © 2012 Embedded Systems Committee
  • 24. • ISP: (In System Programmable )Flash Memory which can be programmed without removing the IC from the circuit. • SPI: SPI port is used for serial communication between two devices on a common clock source. Copyright © 2012 Embedded Systems Committee
  • 25. • TWI: (Two Wire Interface )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. • DAC: Atmega16 is also equipped with a DAC interface which can be used for reverse action performed by ADC Copyright © 2012 Embedded Systems Committee
  • 26. Copyright © 2012 Embedded Systems Committee
  • 27. Copyright © 2012 Embedded Systems Committee
  • 28. Copyright © 2012 Embedded Systems Committee
  • 29. Copyright © 2012 Embedded Systems Committee
  • 30. R1: 4.7 KΩ C1: 0.1 μF Copyright © 2012 Embedded Systems Committee
  • 31. Copyright © 2012 Embedded Systems Committee
  • 32. References • ESC Training Team Copyright © 2012 Embedded Systems Committee
  • 33. info@escommittee.net Copyright © 2012 Embedded Systems Committee