ATmega8A Datasheet Atmel 8159 8 Bit Avr Microcontroller
2017-12-16
: Pdf Atmel-8159-8-Bit-Avr-Microcontroller-Atmega8A Datasheet atmel-8159-8-bit-avr-microcontroller-atmega8a_datasheet 3750-178-5961 aftab
Open the PDF directly: View PDF
Page Count: 394 [warning: Documents this large are best viewed by clicking the View PDF Link!]
- Introduction
- Features
- Table of Contents
- 1. Description
- 2. Configuration Summary
- 3. Ordering Information
- 4. Block Diagram
- 5. Pin Configurations
- 6. I/O Multiplexing
- 7. Resources
- 8. Data Retention
- 9. About Code Examples
- 10. Capacitive Touch Sensing
- 11. AVR CPU Core
- 12. AVR Memories
- 13. System Clock and Clock Options
- 14. Power Management and Sleep Modes
- 15. System Control and Reset
- 16. Interrupts
- 17. External Interrupts
- 18. I/O Ports
- 18.1. Overview
- 18.2. Ports as General Digital I/O
- 18.3. Alternate Port Functions
- 18.4. Register Description
- 18.4.1. SFIOR – Special Function IO Register
- 18.4.2. PORTB – The Port B Data Register
- 18.4.3. DDRB – The Port B Data Direction Register
- 18.4.4. PINB – The Port B Input Pins Address
- 18.4.5. PORTC – The Port C Data Register
- 18.4.6. DDRC – The Port C Data Direction Register
- 18.4.7. PINC – The Port C Input Pins Address
- 18.4.8. PORTD – The Port D Data Register
- 18.4.9. DDRD – The Port D Data Direction Register
- 18.4.10. PIND – The Port D Input Pins Address
- 19. 8-bit Timer/Counter0
- 20. Timer/Counter0 and Timer/Counter1 Prescalers
- 21. 16-bit Timer/Counter1
- 21.1. Features
- 21.2. Overview
- 21.3. Accessing 16-bit Registers
- 21.4. Timer/Counter Clock Sources
- 21.5. Counter Unit
- 21.6. Input Capture Unit
- 21.7. Output Compare Units
- 21.8. Compare Match Output Unit
- 21.9. Modes of Operation
- 21.10. Timer/Counter Timing Diagrams
- 21.11. Register Description
- 21.11.1. TCCR1A – Timer/Counter1 Control Register A
- 21.11.2. TCCR1B – Timer/Counter1 Control Register B
- 21.11.3. TCNT1L – Timer/Counter1 Low byte
- 21.11.4. TCNT1H – Timer/Counter1 High byte
- 21.11.5. OCR1AL – Output Compare Register 1 A Low byte
- 21.11.6. OCR1AH – Output Compare Register 1 A High byte
- 21.11.7. OCR1BL – Output Compare Register 1 B Low byte
- 21.11.8. OCR1BH – Output Compare Register 1 B High byte
- 21.11.9. ICR1L – Input Capture Register 1 Low byte
- 21.11.10. ICR1H – Input Capture Register 1 High byte
- 21.11.11. TIMSK – Timer/Counter Interrupt Mask Register
- 21.11.12. TIFR – Timer/Counter Interrupt Flag Register
- 22. 8-bit Timer/Counter2 with PWM and Asynchronous Operation
- 22.1. Features
- 22.2. Overview
- 22.3. Timer/Counter Clock Sources
- 22.4. Counter Unit
- 22.5. Output Compare Unit
- 22.6. Compare Match Output Unit
- 22.7. Modes of Operation
- 22.8. Timer/Counter Timing Diagrams
- 22.9. Asynchronous Operation of the Timer/Counter
- 22.10. Timer/Counter Prescaler
- 22.11. Register Description
- 22.11.1. TCCR2 – Timer/Counter Control Register
- 22.11.2. TCNT2 – Timer/Counter Register
- 22.11.3. OCR2 – Output Compare Register
- 22.11.4. ASSR – Asynchronous Status Register
- 22.11.5. TIMSK – Timer/Counter Interrupt Mask Register
- 22.11.6. TIFR – Timer/Counter Interrupt Flag Register
- 22.11.7. SFIOR – Special Function IO Register
- 23. SPI – Serial Peripheral Interface
- 24. USART - Universal Synchronous and Asynchronous serial Receiver and Transmitter
- 24.1. Features
- 24.2. Overview
- 24.3. Clock Generation
- 24.4. Frame Formats
- 24.5. USART Initialization
- 24.6. Data Transmission – The USART Transmitter
- 24.7. Data Reception – The USART Receiver
- 24.8. Asynchronous Data Reception
- 24.9. Multi-Processor Communication Mode
- 24.10. Accessing UBRRH/UCSRC Registers
- 24.11. Register Description
- 24.12. Examples of Baud Rate Setting
- 25. TWI - Two-wire Serial Interface
- 26. Analog Comparator
- 27. ADC - Analog to Digital Converter
- 28. Boot Loader Support – Read-While-Write Self-Programming
- 28.1. Features
- 28.2. Overview
- 28.3. Application and Boot Loader Flash Sections
- 28.4. Read-While-Write and No Read-While-Write Flash Sections
- 28.5. Boot Loader Lock Bits
- 28.6. Entering the Boot Loader Program
- 28.7. Addressing the Flash During Self-Programming
- 28.8. Self-Programming the Flash
- 28.8.1. Performing Page Erase by SPM
- 28.8.2. Filling the Temporary Buffer (Page Loading)
- 28.8.3. Performing a Page Write
- 28.8.4. Using the SPM Interrupt
- 28.8.5. Consideration While Updating Boot Loader Section (BLS)
- 28.8.6. Prevent Reading the RWW Section During Self-Programming
- 28.8.7. Setting the Boot Loader Lock Bits by SPM
- 28.8.8. EEPROM Write Prevents Writing to SPMCR
- 28.8.9. Reading the Fuse and Lock Bits from Software
- 28.8.10. Preventing Flash Corruption
- 28.8.11. Programming Time for Flash when Using SPM
- 28.8.12. Simple Assembly Code Example for a Boot Loader
- 28.8.13. ATmega8A Boot Loader Parameters
- 28.9. Register Description
- 29. Memory Programming
- 29.1. Program and Data Memory Lock Bits
- 29.2. Fuse Bits
- 29.3. Signature Bytes
- 29.4. Calibration Byte
- 29.5. Page Size
- 29.6. Parallel Programming Parameters, Pin Mapping, and Commands
- 29.7. Parallel Programming
- 29.7.1. Enter Programming Mode
- 29.7.2. Considerations for Efficient Programming
- 29.7.3. Chip Erase
- 29.7.4. Programming the Flash
- 29.7.5. Programming the EEPROM
- 29.7.6. Reading the Flash
- 29.7.7. Reading the EEPROM
- 29.7.8. Programming the Fuse Low Bits
- 29.7.9. Programming the Fuse High Bits
- 29.7.10. Programming the Lock Bits
- 29.7.11. Reading the Fuse and Lock Bits
- 29.7.12. Reading the Signature Bytes
- 29.7.13. Reading the Calibration Byte
- 29.7.14. Parallel Programming Characteristics
- 29.8. Serial Downloading
- 29.9. Serial Programming Pin Mapping
- 30. Electrical Characteristics – TA = -40°C to 85°C
- 31. Electrical Characteristics – TA = -40°C to 105°C
- 32. Typical Characteristics – TA = -40°C to 85°C
- 32.1. Active Supply Current
- 32.2. Idle Supply Current
- 32.3. Power-down Supply Current
- 32.4. Power-save Supply Current
- 32.5. Standby Supply Current
- 32.6. Pin Pull-up
- 32.7. Pin Driver Strength
- 32.8. Pin Thresholds and Hysteresis
- 32.9. Bod Thresholds and Analog Comparator Offset
- 32.10. Internal Oscillator Speed
- 32.11. Current Consumption of Peripheral Units
- 32.12. Current Consumption in Reset and Reset Pulsewidth
- 33. Typical Characteristics – TA = -40°C to 105°C
- 33.1. ATmega8A Typical Characteristics
- 33.1.1. Active Supply Current
- 33.1.2. Idle Supply Current
- 33.1.3. Power-down Supply Current
- 33.1.4. Power-save Supply Current
- 33.1.5. Standby Supply Current
- 33.1.6. Pin Pull-up
- 33.1.7. Pin Driver Strength
- 33.1.8. Pin Threshold and Hysteresis
- 33.1.9. BOD Threshold
- 33.1.10. Internal Oscillator Speed
- 33.1.11. Current Consumption of Peripheral Units
- 33.1.12. Current Consumption in Reset and Reset Pulsewidth
- 33.1. ATmega8A Typical Characteristics
- 34. Register Summary
- 35. Instruction Set Summary
- 36. Packaging Information
- 37. Errata
- 38. Datasheet Revision History