- •Features
- •Pin Configuration
- •Description
- •Block Diagram
- •Pin Descriptions
- •AVCC
- •Port A (PA7..PA0)
- •Port B (PB7..PB0)
- •XTAL1
- •XTAL2
- •Resources
- •AVR CPU Core
- •Architectural Overview
- •I/O Direct
- •Data Direct
- •Data Indirect with Displacement
- •Data Indirect
- •Memories
- •SRAM Data Memory
- •EEPROM Data Memory
- •EEPROM Read/Write Access
- •I/O Memory
- •Clock Systems and their Distribution
- •Clock Sources
- •Default Clock Source
- •Crystal Oscillator
- •External RC Oscillator
- •External Clock
- •Power-on Reset
- •External Reset
- •Brown-out Detection
- •Watchdog Reset
- •Idle Mode
- •Power-down Mode
- •Standby Mode
- •Analog to Digital Converter
- •Analog Comparator
- •Brown-out Detector
- •Internal Voltage Reference
- •Watchdog Timer
- •Port Pins
- •I/O Ports
- •Introduction
- •Configuring the Pin
- •Reading the Pin Value
- •Unconnected Pins
- •Alternate Port Functions
- •Alternate Functions of Port A
- •Alternate Functions Of Port B
- •Register Description for I/O Ports
- •Interrupts
- •Interrupt Vectors
- •Interrupt Handling
- •Interrupt Response Time
- •External Interrupt
- •Pin Change Interrupt
- •Timer/Counters
- •Timer/Counter0 Prescaler
- •Timer/Counter1 Prescaler
- •8-bit Timer/Counter0
- •8-bit Timer/Counter1
- •Timer/Counter1 in PWM Mode
- •Watchdog Timer
- •Overview
- •Register Descriptions
- •Functional Descriptions
- •Three-wire Mode
- •SPI Slave Operation Example
- •Two-wire Mode
- •Start Condition Detector
- •Alternative USI Usage
- •4-bit Counter
- •12-bit Timer/Counter
- •Software Interrupt
- •Analog Comparator
- •Analog to Digital Converter
- •Features
- •Operation
- •Changing Channel or Reference Selection
- •ADC Conversion Result
- •ADLAR = 0
- •ADLAR = 1
- •Fuse Bits
- •Latching of Fuses
- •Signature Bytes
- •Calibration Byte
- •Page Size
- •Signal Names
- •Parallel Programming
- •Enter Programming Mode
- •Chip Erase
- •Programming the Flash
- •Programming the EEPROM
- •Reading the Flash
- •Reading the EEPROM
- •Programming the Lock Bits
- •Reading the Signature Bytes
- •Reading the Calibration Byte
- •Serial Downloading
- •Data Polling Flash
- •Data Polling EEPROM
- •Electrical Characteristics
- •Absolute Maximum Ratings*
- •DC Characteristics
- •External Clock Drive Waveforms
- •External Clock Drive
- •ADC Characteristics
- •Active Supply Current
- •Idle Supply Current
- •Power-down Supply Current
- •Standby Supply Current
- •Pin Pull-up
- •Internal Oscillator Speed
- •Register Summary
- •Instruction Set Summary
- •Ordering Information
- •Packaging Information
- •Errata
- •ATtiny26 Rev. B/C/D
- •Table of Contents
I/O Memory
The I/O space definition of the ATtiny26(L) is shown in Table 2
Table 2. ATtiny26(L) I/O Space(1)
Address Hex |
Name |
Function |
|
|
|
|
|
$3F |
($5F) |
SREG |
Status Register |
|
|
|
|
$3D |
($5D) |
SP |
Stack Pointer |
|
|
|
|
$3B |
($5B) |
GIMSK |
General Interrupt Mask Register |
|
|
|
|
$3A |
($5A) |
GIFR |
General Interrupt Flag Register |
|
|
|
|
$39 |
($59) |
TIMSK |
Timer/Counter Interrupt Mask Register |
|
|
|
|
$38 |
($58) |
TIFR |
Timer/Counter Interrupt Flag Register |
|
|
|
|
$35 |
($55) |
MCUCR |
MCU Control Register |
|
|
|
|
$34 |
($54) |
MCUSR |
MCU Status Register |
|
|
|
|
$33 |
($53) |
TCCR0 |
Timer/Counter0 Control Register |
|
|
|
|
$32 |
($52) |
TCNT0 |
Timer/Counter0 (8-bit) |
|
|
|
|
$31 |
($51) |
OSCCAL |
Oscillator Calibration Register |
|
|
|
|
$30 |
($50) |
TCCR1A |
Timer/Counter1 Control Register A |
|
|
|
|
$2F |
($4F) |
TCCR1B |
Timer/Counter1 Control Register B |
|
|
|
|
$2E |
($4E) |
TCNT1 |
Timer/Counter1 (8-bit) |
|
|
|
|
$2D |
($4D) |
OCR1A |
Timer/Counter1 Output Compare Register A |
|
|
|
|
$2C |
($4C) |
OCR1B |
Timer/Counter1 Output Compare Register B |
|
|
|
|
$2B |
($4B) |
OCR1C |
Timer/Counter1 Output Compare Register C |
|
|
|
|
$29 |
($29) |
PLLCSR |
PLL Control and Status Register |
|
|
|
|
$21 |
($41) |
WDTCR |
Watchdog Timer Control Register |
|
|
|
|
$1E |
($3E) |
EEAR |
EEPROM Address Register |
|
|
|
|
$1D |
($3D) |
EEDR |
EEPROM Data Register |
|
|
|
|
$1C |
($3C) |
EECR |
EEPROM Control Register |
|
|
|
|
$1B |
($3B) |
PORTA |
Data Register, Port A |
|
|
|
|
$1A |
($3A) |
DDRA |
Data Direction Register, Port A |
|
|
|
|
$19 |
($39) |
PINA |
Input Pins, Port A |
|
|
|
|
$18 |
($38) |
PORTB |
Data Register, Port B |
|
|
|
|
$17 |
($37) |
DDRB |
Data Direction Register, Port B |
|
|
|
|
$16 |
($36) |
PINB |
Input Pins, Port B |
|
|
|
|
$0F |
($2F) |
USIDR |
Universal Serial Interface Data Register |
|
|
|
|
$0E |
($2E) |
USISR |
Universal Serial Interface Status Register |
|
|
|
|
$0D |
($2D) |
USICR |
Universal Serial Interface Control Register |
|
|
|
|
$08 |
($28) |
ACSR |
Analog Comparator Control and Status Register |
|
|
|
|
$07 |
($27) |
ADMUX |
ADC Multiplexer Select Register |
|
|
|
|
22 ATtiny26(L)
1477J–AVR–06/07
ATtiny26(L)
Table 2. ATtiny26(L) I/O Space(1) (Continued)
Address Hex |
Name |
Function |
|
|
|
$06($26) |
ADCSR |
ADC Control and Status Register |
|
|
|
$05($25) |
ADCH |
ADC Data Register High |
|
|
|
$04($24) |
ADCL |
ADC Data Register Low |
|
|
|
Note: 1. Reserved and unused locations are not shown in the table.
All ATtiny26(L) I/O and peripheral registers are placed in the I/O space. The I/O locations are accessed by the IN and OUT instructions transferring data between the 32 general purpose working registers and the I/O space. I/O Registers within the address range $00 - $1F are directly bit-accessible using the SBI and CBI instructions. In these registers, the value of single bits can be checked by using the SBIS and SBIC instructions. Refer to the instruction set chapter for more details. For compatibility with future devices, reserved bits should be written zero if accessed. Reserved I/O memory addresses should never be written.
23
1477J–AVR–06/07