A tmega8 basics

964 views

Published on

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
964
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
152
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

A tmega8 basics

  1. 1. AVR ATMEGA 8MICRO-CONTROLLER
  2. 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. 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. 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. 5. TYPES OF PACKAGES• 28-pin PDIP (Plastic Dual In-line Package)• 32-pin TQFP (Thin Quad film Package)
  6. 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. 7. Contd....• Write/Erase Cycles: 10,000 Flash/100,000 EEPROM• Data retention: 20 years at 85°C/100 years at 25°C
  8. 8. PIN OUT
  9. 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. 10. Contd....• AVCC The supply voltage pin for the A/D Converter
  11. 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. 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)
  13. 13. REGISTER DESCRIPTION OF I/O PORTS
  14. 14. 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)
  15. 15. 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)
  16. 16. Contd....
  17. 17. Contd....
  18. 18. Contd....
  19. 19. Contd....
  20. 20. Thank you…

×