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

ATtiny261/461/861

22.5Page Size

Table 22-7.

No. of Words in a Page and No. of Pages in the Flash

 

 

Device

Flash Size

Page Size

PCWORD

No. of Pages

PCPAGE

PCMSB

 

 

 

 

 

 

 

ATtiny261

1K words (2K bytes)

16 words

PC[3:0]

64

PC[9:4]

9

 

 

 

 

 

 

 

ATtiny461

2K words (4K bytes)

32 words

PC[4:0]

64

PC[10:5]

10

 

 

 

 

 

 

 

ATtiny861

4K words (8K bytes)

32 words

PC[4:0]

128

PC[11:5]

11

 

 

 

 

 

 

 

Table 22-8.

No. of Words in a Page and No. of Pages in the EEPROM

 

 

EEPROM

 

 

 

 

 

Device

Size

Page Size

PCWORD

No. of Pages

PCPAGE

EEAMSB

 

 

 

 

 

 

 

ATtiny261

128 bytes

4 bytes

EEA[1:0]

64

EEA[6:2]

6

 

 

 

 

 

 

 

ATtiny461

256 bytes

4 bytes

EEA[1:0]

64

EEA[7:2]

7

 

 

 

 

 

 

 

ATtiny861

512 bytes

4 bytes

EEA[1:0]

128

EEA[8:2]

8

 

 

 

 

 

 

 

22.6Parallel Programming Parameters, Pin Mapping, and Commands

This section describes how to parallel program and verify Flash Program memory, EEPROM Data memory, Memory Lock bits, and Fuse bits in the ATtiny261/461/861. Pulses are assumed to be at least 250 ns unless otherwise noted.

22.6.1Signal Names

In this section, some pins of the ATtiny261/461/861 are referenced by signal names describing their functionality during parallel programming, see Figure 22-1 and Table 22-9. Pins not described in the following table are referenced by pin names.

The XA1/XA0 pins determine the action executed when the XTAL1 pin is given a positive pulse.

The bit coding is shown in Table 22-11.

When pulsing WR or OE, the command loaded determines the action executed. The different

Commands are shown in Table 22-12.

171

2588B–AVR–11/06

Figure 22-1. Parallel Programming

 

 

 

 

 

 

 

+5V

WR

 

 

PB0

VCC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

XA0

 

 

PB1

 

 

+5V

 

 

 

 

 

 

 

AVCC

 

 

 

 

XA1/BS2

 

 

PB2

 

 

 

DATA

 

 

 

 

 

 

 

 

 

 

 

 

PA7 - PA0

 

 

 

 

 

 

 

PAGEL/BS1

 

 

PB3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

XTAL1/PB4

OE PB5

RDY/BSY PB6

+12 V RESET GND

Table 22-9. Pin Name Mapping

Signal Name in

Pin

 

 

 

 

Programming Mode

Name

I/O

Function

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PB0

I

Write Pulse (Active low).

 

WR

 

 

 

 

XA0

PB1

I

XTAL Action Bit 0

 

 

 

 

 

 

 

 

 

 

XA1/BS2

PB2

I

XTAL Action Bit 1. Byte Select 2 (“0” selects low byte, “1”

selects 2’nd high byte).

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PAGEL/BS1

PB3

I

Byte Select 1 (“0” selects low byte, “1” selects high byte).

Program Memory and EEPROM Data Page Load.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PB5

I

Output Enable (Active low).

 

 

OE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0: Device is busy programming, 1: Device is ready for new

RDY/BSY

PB6

O

command.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DATA I/O

PA7-PA0

I/O

Bi-directional Data bus (Output when

 

is low).

OE

 

 

 

 

 

 

 

 

 

 

 

 

Table 22-10. Pin Values Used to Enter Programming Mode

Pin

Symbol

Value

 

 

 

PAGEL/BS1

Prog_enable[3]

0

 

 

 

XA1/BS2

Prog_enable[2]

0

 

 

 

XA0

Prog_enable[1]

0

 

 

 

WR

Prog_enable[0]

0

 

 

 

172 ATtiny261/461/861

2588B–AVR–11/06

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