Datasheet ATtiny22, ATtiny22L - Preliminary (Atmel) - 8

ManufacturerAtmel
Description8-bit AVR Microcontroller with 2K Bytes of In-System Programmable Flash
Pages / Page59 / 8 — SRAM Data Memory. Figure 7. Register File. Data Address Space. $00. $01. …
File Format / SizePDF / 1.1 Mb
Document LanguageEnglish

SRAM Data Memory. Figure 7. Register File. Data Address Space. $00. $01. $02. R29. $1D. R30. $1E. R31. $1F. I/O Registers. $20. $21. $22. $3D. $5D. $3E. $5E. $3F

SRAM Data Memory Figure 7 Register File Data Address Space $00 $01 $02 R29 $1D R30 $1E R31 $1F I/O Registers $20 $21 $22 $3D $5D $3E $5E $3F

Model Line for this Datasheet

Text Version of Document

SRAM Data Memory
The following figure shows how the ATtiny22/L Data Memory is organized:
Figure 7.
SRAM Organization
Register File Data Address Space R0 $00 R1 $01 R2 $02
… …
R29 $1D R30 $1E R31 $1F I/O Registers $00 $20 $01 $21 $02 $22
… …
$3D $5D $3E $5E $3F $5F Internal SRAM $60 $61 $62

$DD $DE $DF
The 224 Data Memory locations address the Register file, I/O Memory and the data SRAM. The first 96 locations address the Register File + I/O Memory, and the next 128 locations address the data SRAM. The five different addressing modes for the data memory cover: Direct, Indirect with Displacement, Indirect, Indirect with Pre-Decrement and Indirect with Post-Increment. In the register file, registers R26 to R31 feature the indirect addressing pointer registers. The Direct addressing reaches the entire data address space. The Indirect with Displacement mode features 63 address locations reach from the base address given by the Y and Z register. When using register indirect addressing modes with automatic pre-decrement and post-increment, the address registers X, Y and Z are used and decremented and incremented. The 32 general purpose working registers, 64 I/O registers and the 128 bytes of data SRAM in the ATtiny22/L are all directly accessible through all these addressing modes.
8 ATtiny22/22L
Document Outline Features Description Block Diagram Pin Descriptions ATtiny22/L VCC GND Port B (PB4..PB0) RESET CLOCK Clock Options External Clock Architectural Overview General Purpose Register File X-Register, Y-Register, and Z-Register ALU - Arithmetic Logic Unit In-System Programmable Flash Program Memory EEPROM Data 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 Memory Access and Instruction Execution Timing I/O Memory Status Register - SREG Stack Pointer - SPL Reset and Interrupt Handling Reset Sources Power-On Reset External Reset Watchdog Reset MCU Status Register - MCUSR Interrupt Handling General Interrupt Mask Register - GIMSK General Interrupt Flag Register - GIFR Timer/Counter Interrupt Mask Register - TIMSK Timer/Counter Interrupt FLAG Register - TIFR External Interrupt Interrupt Response Time MCU Control Register - MCUCR Sleep Modes Idle Mode Power Down Mode Timer/Counter Timer/Counter Prescaler 8-Bit Timer/Counter0 Timer/Counter0 Control Register - TCCR0 Timer Counter 0 - TCNT0 Watchdog Timer Watchdog Timer Control Register - WDTCR EEPROM Read/Write Access EEPROM Address Register - EEAR EEPROM Data Register - EEDR EEPROM Control Register - EECR Prevent EEPROM Corruption I/O Port B Port B Data Register - PORTB Port B Data Direction Register - DDRB Port B Input Pins Address - PINB General Digital I/O Alternate Functions of Port B CLOCK - Port B, Bit 3 SCK/T0 - Port B, Bit 2 MISO - Port B, Bit 1 MOSI - Port B, Bit 0 Memory Programming Program and Data Memory Lock Bits Fuse Bits Signature Bytes Programming the Flash and EEPROM High-Voltage Serial Programming High-Voltage Serial Programming Algorithm High-Voltage Serial Programming Characteristics Low-Voltage Serial Downloading Low-Voltage Serial Programming Algorithm Data Polling EEPROM Data Polling Flash Low-Voltage Serial Programming Characteristics Electrical Characteristics Absolute Maximum Ratings* DC Characteristics External Clock Drive Waveforms External Clock Drive Typical characteristics Register Summary Instruction Set Summary (Continued) Ordering Information
EMS supplier