ATTINY13-20PI Atmel, ATTINY13-20PI Datasheet - Page 20

IC MCU AVR 1K FLASH 20MHZ 8DIP

ATTINY13-20PI

Manufacturer Part Number
ATTINY13-20PI
Description
IC MCU AVR 1K FLASH 20MHZ 8DIP
Manufacturer
Atmel
Series
AVR® ATtinyr
Datasheets

Specifications of ATTINY13-20PI

Core Processor
AVR
Core Size
8-Bit
Speed
20MHz
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
6
Program Memory Size
1KB (512 x 16)
Program Memory Type
FLASH
Eeprom Size
64 x 8
Ram Size
64 x 8
Voltage - Supply (vcc/vdd)
2.7 V ~ 5.5 V
Data Converters
A/D 4x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
8-DIP (0.300", 7.62mm)
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Connectivity
-
Other names
ATTINY13-24PI
ATTINY13-24PI
5.4
5.5
5.5.1
5.5.2
20
I/O Memory
Register Description
ATtiny13
EEARL – EEPROM Address Register
EEDR – EEPROM Data Register
The I/O space definition of the ATtiny13 is shown in
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 instructions. 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 reg-
isters 0x00 to 0x1F only.
The I/O and Peripherals Control Registers are explained in later sections.
• Bits 7:6 – Res: Reserved Bits
These bits are reserved bits in the ATtiny13 and will always read as zero.
• Bits 5:0 – EEAR[5:0]: EEPROM Address
The EEPROM Address Register – EEARL – specifies the EEPROM address in the 64 bytes
EEPROM space. The EEPROM data bytes are addressed linearly between 0 and 63. The initial
value of EEARL is undefined. A proper value must be written before the EEPROM may be
accessed.
• Bits 7:0 – EEDR7:0: EEPROM Data
For the EEPROM write operation the EEDR Register contains the data to be written to the
EEPROM in the address given by the EEARL Register. For the EEPROM read operation, the
EEDR contains the data read out from the EEPROM at the address given by EEARL.
Bit
Read/Write
Initial Value
Bit
Read/Write
Initial Value
EEDR7
R/W
R
X
7
0
7
EEDR6
R/W
R
6
0
X
6
EEAR5
EEDR5
R/W
R/W
X
5
5
X
EEAR4
EEDR4
R/W
R/W
4
X
X
4
EEAR3
EEDR3
“Register Summary” on page
R/W
R/W
X
3
3
X
EEAR2
EEDR2
R/W
R/W
2
X
X
2
EEAR1
EEDR1
R/W
R/W
X
1
1
X
EEAR0
EEDR0
R/W
R/W
X
0
X
0
156.
2535J–AVR–08/10
EEARL
EEDR

Related parts for ATTINY13-20PI