Rainbow Electronics ATtiny26L User Manual
Features
1
Features
•
High-performance, Low-power AVR
®
8-bit Microcontroller
•
RISC Architecture
– 118 Powerful Instructions – Most Single Clock Cycle Execution
– 32 x 8 General Purpose Working Registers
– Fully Static Operation
– Up to 16 MIPS Throughput at 16 MHz
•
Data and Non-volatile Program Memory
– 2K Bytes of In-System Programmable Program Memory Flash
Endurance: 1,000 Write/Erase Cycles
– 128 Bytes of In-System Programmable EEPROM
Endurance: 100,000 Write/Erase Cycles
– 128 Bytes Internal SRAM
– Programming Lock for Flash Program and EEPROM Data Security
•
Peripheral Features
– 8-bit Timer/Counter with Separate Prescaler
– 8-bit High-speed Timer with Separate Prescaler
2 High Frequency PWM Outputs with Separate Output Compare Registers
Non-overlapping Inverted PWM Output Pins
– Universal Serial Interface with Start Condition Detector
– 10-bit ADC
11 Single Ended Channels
8 Differential ADC Channels
7 Differential ADC Channel Pairs with Programmable Gain (1x, 20x)
– On-chip Analog Comparator
– External Interrupt
– Pin Change Interrupt on 11 Pins
– Programmable Watchdog Timer with Separate On-chip Oscillator
•
Special Microcontroller Features
– Low Power Idle, Noise Reduction, and Power-down Modes
– Power-on Reset and Programmable Brown-out Detection
– External and Internal Interrupt Sources
– In-System Programmable via SPI Port
– Internal Calibrated RC Oscillator
•
I/O and Packages
– 20-lead PDIP/SOIC: 16 Programmable I/O Lines
•
Operating Voltages
– 2.7V - 5.5V for ATtiny26L
– 4.5V - 5.5V for ATtiny26
•
Speed Grades
– 0 - 8 MHz for ATtiny26L
– 0 - 16 MHz for ATtiny26
8-bit
Microcontroller
with 2K Bytes
Flash
ATtiny26
ATtiny26L
Preliminary
Rev. 1477B–AVR–04/02
Document Outline
- Features
- Pin Configuration
- Description
- Architectural Overview
- General Purpose Register File
- ALU – Arithmetic Logic Unit
- In-System Programmable Flash Program Memory
- SRAM Data Memory
- Program and Data Addressing Modes
- Register Direct, Single Register Rd
- Register Direct, Two Registers Rd and Rr
- I/O Direct
- Data Direct
- Data Indirect with Displacement
- Data Indirect
- Data Indirect with Pre- decrement
- Data Indirect with Post- increment
- Constant Addressing Using the LPM Instruction
- Indirect Program Addressing, IJMP and ICALL
- Relative Program Addressing, RJMP and RCALL
- EEPROM Data Memory
- Memory Access Times and Instruction Execution Timing
- I/O Memory
- System Clock and Clock Options
- Clock Systems and their Distribution
- Clock Sources
- Crystal Oscillator
- Low-frequency Crystal Oscillator
- External RC Oscillator
- Calibrated Internal RC Oscillator
- External Clock
- High Frequency PLL Clock – PLLCLK
- MCU Status Register – MCUSR
- Interrupt Handling
- Interrupt Response Time
- General Interrupt Mask Register – GIMSK
- General Interrupt Flag Register – GIFR
- Timer/Counter Interrupt Mask Register – TIMSK
- Timer/Counter Interrupt Flag Register – TIFR
- External Interrupt
- Pin Change Interrupt
- MCU Control Register – MCUCR
- Power Management and Sleep Modes
- Timer/Counters
- Timer/Counter0 Prescaler
- Timer/Counter1 Prescaler
- 8-bit Timer/Counter0
- 8-bit Timer/Counter1
- Timer/Counter1 Control Register A – TCCR1A
- Timer/Counter1 Control Register B – TCCR1B
- Timer/Counter1 – TCNT1
- Timer/Counter1 Output Compare RegisterA – OCR1A
- Timer/Counter1 Output Compare RegisterB – OCR1B
- Timer/Counter1 Output Compare RegisterC – OCR1C
- PLL Control and Status Register – PLLCSR
- Timer/Counter1 Initialization for Asynchronous Mode
- Timer/Counter1 in PWM Mode
- Watchdog Timer
- EEPROM Read/Write Access
- Universal Serial Interface – USI
- Analog Comparator
- Analog to Digital Converter
- I/O Ports
- Memory Programming
- Program and Data Memory Lock Bits
- Fuse Bits
- Signature Bytes
- Calibration Byte
- Parallel Programming Parameters, Pin Mapping, and Commands
- Parallel Programming
- Enter Programming Mode
- Considerations for Efficient Programming
- Chip Erase
- Programming the Flash
- Programming the EEPROM
- Reading the Flash
- Reading the EEPROM
- Programming the Fuse Low Bits
- Programming the Fuse High Bits
- Programming the Lock Bits
- Reading the Fuse and Lock Bits
- Reading the Signature Bytes
- Reading the Calibration Byte
- Parallel Programming Characteristics
- Serial Downloading
- Serial Programming Pin Mapping
- Electrical Characteristics
- ADC Characteristics – Preliminary Data
- ATtiny26 Typical Characteristics – Preliminary Data
- ATtiny26/L Register Summary
- Instruction Set Summary
- Ordering Information(1)
- Packaging Information
- Data Sheet Change Log for ATtiny26
- Table of Contents