Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
AVR / datasheets / attiny_2313.pdf
Скачиваний:
46
Добавлен:
20.03.2015
Размер:
1.86 Mб
Скачать

Pin Configurations

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure 1. Pinout ATtiny2313

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PDIP/SOIC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

VCC

 

 

 

(RESET/dW) PA2

 

 

 

 

 

1

 

 

 

 

20

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(RXD) PD0

 

 

 

 

 

2

 

 

 

 

19

 

PB7 (UCSK/SCK/PCINT7)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(TXD) PD1

 

 

 

 

 

3

 

 

 

 

18

 

PB6 (MISO/DO/PCINT6)

 

 

 

 

 

 

 

 

 

 

 

 

(XTAL2) PA1

 

 

 

 

 

4

 

 

 

 

17

 

PB5 (MOSI/DI/SDA/PCINT5)

 

 

 

 

 

 

 

 

 

 

 

 

(XTAL1) PA0

 

 

 

 

 

5

 

 

 

 

16

 

PB4 (OC1B/PCINT4)

 

(CKOUT/XCK/INT0) PD2

 

 

 

 

 

6

 

 

 

 

15

 

PB3 (OC1A/PCINT3)

 

 

 

(INT1) PD3

 

 

 

 

 

7

 

 

 

 

14

 

PB2 (OC0A/PCINT2)

 

 

 

 

 

(T0) PD4

 

 

 

8

 

 

 

 

13

 

PB1 (AIN1/PCINT1)

 

 

(OC0B/T1) PD5

 

 

 

9

 

 

 

 

12

 

PB0 (AIN0/PCINT0)

 

 

 

 

 

 

 

GND

 

 

 

10

 

 

 

11

 

PD6 (ICP)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MLF

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PA2 (RESET/dW)

 

 

 

PB7 (UCSK/SCK/PCINT7)

PB6 (MISO/DO/PCINT6)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PD0 (RXD)

 

 

VCC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(TXD) PD1

 

 

 

20

 

 

19

18

17

 

16

 

 

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

15

 

PB5 (MOSI/DI/SDA/PCINT5)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

XTAL2) PA1

 

 

2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

14

 

PB4 (OC1B/PCINT4)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(XTAL1) PA0

 

 

3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

13

 

PB3 (OC1A/PCINT3)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(CKOUT/XCK/INT0) PD2

 

 

4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

12

 

PB2 (OC0A/PCINT2)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(INT1) PD3

 

5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

11

 

PB1 (AIN1/PCINT1)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

6

 

 

7

8

9

 

10

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(T0) PD4

(OC0B/T1) PD5

 

GND

 

(ICP) PD6

(AIN0/PCINT0) PB0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

NOTE: Bottom pad should be soldered to ground.

Overview

The ATtiny2313 is a low-power CMOS 8-bit microcontroller based on the AVR enhanced RISC architecture. By executing powerful instructions in a single clock cycle, the ATtiny2313 achieves throughputs approaching 1 MIPS per MHz allowing the system designer to optimize power consumption versus processing speed.

2 ATtiny2313/V

2543H–AVR–02/05

 

 

 

 

 

 

ATtiny2313/V

Block Diagram

 

 

 

 

 

 

 

Figure 2.

Block Diagram

 

 

 

 

 

 

 

 

 

 

XTAL1

XTAL2

 

 

 

PA0 - PA2

 

 

 

 

 

 

PORTA DRIVERS

 

 

 

VCC

DATA REGISTER

DATA DIR.

INTERNAL

 

 

 

PORTA

REG. PORTA

 

 

 

 

 

 

 

CALIBRATED

 

 

 

 

 

 

 

OSCILLATOR

 

 

 

 

 

 

8-BIT DATA BUS

INTERNAL

OSCILLATOR

 

 

 

 

 

 

 

 

 

 

 

 

OSCILLATOR

 

 

GND

 

 

 

 

 

 

 

 

PROGRAM

 

STACK

WATCHDOG

TIMING AND

RESET

 

COUNTER

 

POINTER

TIMER

CONTROL

 

 

 

 

 

 

 

 

MCU CONTROL

 

 

 

PROGRAM

 

SRAM

REGISTER

 

 

 

FLASH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MCU STATUS

 

ON-CHIP

 

 

 

 

 

DEBUGGER

 

 

 

 

 

REGISTER

 

 

 

 

 

 

 

 

INSTRUCTION

 

GENERAL

 

 

 

 

REGISTER

 

 

 

 

 

 

PURPOSE

TIMER/

 

 

 

 

 

 

 

 

 

 

 

 

REGISTER

COUNTERS

 

 

 

INSTRUCTION

 

 

INTERRUPT

 

 

 

DECODER

 

 

UNIT

 

 

 

 

 

 

 

EEPROM

 

 

 

CONTROL

 

ALU

 

 

 

 

LINES

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

USI

 

 

 

 

 

 

STATUS

 

 

 

 

 

 

 

REGISTER

 

 

 

 

PROGRAMMING

 

SPI

USART

 

 

 

LOGIC

 

 

 

 

 

 

 

 

 

 

 

 

ANALOG COMPARATOR

DATA REGISTER

DATA DIR.

DATA REGISTER

DATA DIR.

 

 

 

 

 

 

 

PORTB

REG. PORTB

PORTD

REG. PORTD

 

 

 

 

PORTB DRIVERS

PORTD DRIVERS

 

 

 

 

PB0 - PB7

PD0 - PD6

 

 

 

 

 

 

 

 

3

2543H–AVR–02/05

The AVR core combines a rich instruction set with 32 general purpose working registers. All the 32 registers are directly connected to the Arithmetic Logic Unit (ALU), allowing two independent registers to be accessed in one single instruction executed in one clock cycle. The resulting architecture is more code efficient while achieving throughputs up to ten times faster than conventional CISC microcontrollers.

The ATtiny2313 provides the following features: 2K bytes of In-System Programmable Flash, 128 bytes EEPROM, 128 bytes SRAM, 18 general purpose I/O lines, 32 general purpose working registers, a single-wire Interface for On-chip Debugging, two flexible Timer/Counters with compare modes, internal and external interrupts, a serial programmable USART, Universal Serial Interface with Start Condition Detector, a programmable Watchdog Timer with internal Oscillator, and three software selectable power saving modes. The Idle mode stops the CPU while allowing the SRAM, Timer/Counters, and interrupt system to continue functioning. The Power-down mode saves the register contents but freezes the Oscillator, disabling all other chip functions until the next interrupt or hardware reset. In Standby mode, the crystal/resonator Oscillator is running while the rest of the device is sleeping. This allows very fast start-up combined with low-power consumption.

The device is manufactured using Atmel’s high density non-volatile memory technology. The On-chip ISP Flash allows the program memory to be reprogrammed In-System through an SPI serial interface, or by a conventional non-volatile memory programmer. By combining an 8-bit RISC CPU with In-System Self-Programmable Flash on a monolithic chip, the Atmel ATtiny2313 is a powerful microcontroller that provides a highly flexible and cost effective solution to many embedded control applications.

The ATtiny2313 AVR is supported with a full suite of program and system development tools including: C Compilers, Macro Assemblers, Program Debugger/Simulators, In-Cir- cuit Emulators, and Evaluation kits.

4 ATtiny2313/V

2543H–AVR–02/05

Соседние файлы в папке datasheets