
- •Features
- •Pin Configurations
- •Disclaimer
- •Overview
- •Block Diagram
- •Pin Descriptions
- •Port B (PB5..PB0)
- •RESET
- •AVR CPU Core
- •Introduction
- •Architectural Overview
- •Status Register
- •Stack Pointer
- •Interrupt Response Time
- •SRAM Data Memory
- •Data Memory Access Times
- •EEPROM Data Memory
- •EEPROM Read/Write Access
- •Atomic Byte Programming
- •Split Byte Programming
- •Erase
- •Write
- •I/O Memory
- •Clock Systems and their Distribution
- •CPU Clock – clkCPU
- •I/O Clock – clkI/O
- •Flash Clock – clkFLASH
- •ADC Clock – clkADC
- •Clock Sources
- •Default Clock Source
- •External Clock
- •System Clock Prescaler
- •Switching Time
- •Idle Mode
- •Power-down Mode
- •Analog to Digital Converter
- •Analog Comparator
- •Brown-out Detector
- •Internal Voltage Reference
- •Watchdog Timer
- •Port Pins
- •Resetting the AVR
- •Reset Sources
- •Power-on Reset
- •External Reset
- •Brown-out Detection
- •Watchdog Reset
- •Watchdog Timer
- •Timed Sequences for Changing the Configuration of the Watchdog Timer
- •Safety Level 1
- •Safety Level 2
- •Interrupts
- •I/O Ports
- •Introduction
- •Configuring the Pin
- •Toggling the Pin
- •Reading the Pin Value
- •Unconnected Pins
- •Alternate Port Functions
- •Alternate Functions of Port B
- •Register Description for I/O-Ports
- •Port B Data Register – PORTB
- •External Interrupts
- •8-bit Timer/Counter0 with PWM
- •Overview
- •Registers
- •Definitions
- •Counter Unit
- •Output Compare Unit
- •Force Output Compare
- •Modes of Operation
- •Normal Mode
- •Fast PWM Mode
- •Phase Correct PWM Mode
- •Prescaler Reset
- •External Clock Source
- •Analog Comparator
- •Analog Comparator Multiplexed Input
- •Features
- •Operation
- •Starting a Conversion
- •Changing Channel or Reference Selection
- •ADC Input Channels
- •ADC Voltage Reference
- •ADC Noise Canceler
- •Analog Input Circuitry
- •ADC Accuracy Definitions
- •ADC Conversion Result
- •ADLAR = 0
- •ADLAR = 1
- •debugWIRE On-chip Debug System
- •Features
- •Overview
- •Physical Interface
- •Software Break Points
- •Limitations of debugWIRE
- •debugWIRE Related Register in I/O Memory
- •debugWire Data Register – DWDR
- •Performing a Page Write
- •Reading the Fuse and Lock Bits from Software
- •Preventing Flash Corruption
- •Fuse Bytes
- •Latching of Fuses
- •Signature Bytes
- •Calibration Byte
- •Page Size
- •Serial Downloading
- •Data Polling Flash
- •Data Polling EEPROM
- •Chip Erase
- •Programming the Flash
- •Programming the EEPROM
- •Reading the Flash
- •Reading the EEPROM
- •Power-off sequence
- •Electrical Characteristics
- •Absolute Maximum Ratings*
- •External Clock Drive Waveforms
- •External Clock Drive
- •ADC Characteristics – Preliminary Data
- •Active Supply Current
- •Idle Supply Current
- •Power-down Supply Current
- •Pin Pull-up
- •Register Summary
- •Instruction Set Summary
- •Ordering Information
- •Packaging Information
- •Erratas
- •Table of Contents

|
|
|
ATtiny13 |
|
|
|
|
I/O Memory |
|
||
The I/O space definition of the ATtiny13 is shown in “Register Summary” on page 135. |
|||
|
|
All ATtiny13 I/Os and peripherals are placed in the I/O space. All I/O locations may be |
|
|
|
accessed by the LD/LDS/LDD and ST/STS/STD instructions, transferring data between |
|
|
|
the 32 general purpose working registers and the I/O space. I/O Registers within the |
|
|
|
address range 0x00 - 0x1F are directly bit-accessible using the SBI and CBI instruc- |
|
|
|
tions. In these registers, the value of single bits can be checked by using the SBIS and |
|
|
|
SBIC instructions. Refer to the instruction set section for more details. When using the |
|
|
|
I/O specific commands IN and OUT, the I/O addresses 0x00 - 0x3F must be used. |
|
|
|
When addressing I/O Registers as data space using LD and ST instructions, 0x20 must |
|
|
|
be added to these addresses. |
|
|
|
For compatibility with future devices, reserved bits should be written to zero if accessed. |
|
|
|
Reserved I/O memory addresses should never be written. |
|
|
|
Some of the Status Flags are cleared by writing a logical one to them. Note that, unlike |
|
|
|
most other AVRs, the CBI and SBI instructions will only operate on the specified bit, and |
|
|
|
can therefore be used on registers containing such Status Flags. The CBI and SBI |
|
|
|
instructions work with registers 0x00 to 0x1F only. |
|
|
|
The I/O and Peripherals Control Registers are explained in later sections. |
19
2535A–AVR–06/03