Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Плата / Вычислитель / Atmel-2549-8-bit-AVR-Microcontroller-ATmega640-1280-1281-2560-2561_datasheet.pdf
Скачиваний:
24
Добавлен:
10.02.2015
Размер:
8.82 Mб
Скачать

30.3Signature Bytes

All Atmel microcontrollers have a three-byte signature code which identifies the device. This code can be read in both serial and parallel mode, also when the device is locked. The three bytes reside in a separate address space. For the ATmega640/1280/1281/2560/2561 the signature bytes are given in Table 30-6.

Table 30-6.

Device and JTAG ID

 

 

 

 

 

 

 

Signature Bytes Address

 

JTAG

 

 

 

 

 

 

 

 

Part

 

0x000

0x001

0x002

Part Number

 

Manufacture ID

 

 

 

 

 

 

 

 

ATmega640

 

0x1E

0x96

0x08

9608

 

0x1F

 

 

 

 

 

 

 

 

ATmega1280

 

0x1E

0x97

0x03

9703

 

0x1F

 

 

 

 

 

 

 

 

ATmega1281

 

0x1E

0x97

0x04

9704

 

0x1F

 

 

 

 

 

 

 

 

ATmega2560

 

0x1E

0x98

0x01

9801

 

0x1F

 

 

 

 

 

 

 

 

ATmega2561

 

0x1E

0x98

0x02

9802

 

0x1F

 

 

 

 

 

 

 

 

30.4Calibration Byte

The ATmega640/1280/1281/2560/2561 has a byte calibration value for the internal RC Oscillator. This byte resides in the high byte of address 0x000 in the signature address space. During reset, this byte is automatically written into the OSCCAL Register to ensure correct frequency of the calibrated RC Oscillator.

30.5Page Size

Table 30-7.

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

 

 

 

Flash Size

Page Size

PCWORD

No. of Pages

PCPAGE

PCMSB

 

 

 

 

 

 

128K words (256Kbytes)

128 words

PC[6:0]

1024

PC[16:7]

16

 

 

 

 

 

 

 

Table 30-8.

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

 

 

 

 

 

 

 

 

EEPROM Size

Page Size

PCWORD

No. of Pages

PCPAGE

EEAMSB

 

 

 

 

 

 

 

 

4Kbytes

8 bytes

EEA[2:0]

512

EEA[11:3]

11

 

 

 

 

 

 

 

30.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 ATmega640/1280/1281/2560/2561. Pulses are assumed to be at least 250ns unless otherwise noted.

30.6.1Signal Names

In this section, some pins of the ATmega640/1280/1281/2560/2561 are referenced by signal names describing their functionality during parallel programming, see Figure 30-1 and Table 30-9 on page 329. 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 30-12 on page 330.

When pulsing WR or OE, the command loaded determines the action executed. The different commands are shown in Table 30-13 on page 330.

ATmega640/V-1280/V-1281/V-2560/V-2561/V [DATASHEET]

328

2549Q–AVR–02/2014

Figure 30-1. Parallel Programming(1)

RDY/B

 

 

 

 

 

 

 

 

 

 

+5V

 

 

 

 

 

 

PD1

 

 

 

 

 

 

 

 

 

 

 

 

 

SY

 

 

 

VCC

 

 

 

 

 

 

OE

 

 

 

 

PD2

 

 

 

 

 

 

 

 

 

 

 

 

+5V

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

WR

 

 

 

PD3

AVCC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BS1

 

 

 

 

PD4

 

 

 

DATA

 

 

 

 

PB7 - PB0

 

 

 

 

 

 

 

 

 

XA0

 

 

 

 

PD5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

XA1 PD6

PAGEL PD7

+12V RESET

BS2 PA0

XTAL1

GND

Note: 1. Unused Pins should be left floating.

Table 30-9. Pin Name Mapping

Signal Name in

 

 

 

 

 

Programming Mode

Pin Name

I/O

Function

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PD1

O

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

RDY/BSY

 

 

 

 

 

 

 

 

 

 

 

 

 

PD2

I

Output Enable (Active low)

 

OE

 

 

 

 

 

 

 

 

 

 

 

PD3

I

Write Pulse (Active low)

 

WR

 

 

 

 

BS1

PD4

I

Byte Select 1

 

 

 

 

XA0

PD5

I

XTAL Action Bit 0

 

 

 

 

XA1

PD6

I

XTAL Action Bit 1

 

 

 

 

PAGEL

PD7

I

Program Memory and EEPROM data Page Load

 

 

 

 

BS2

PA0

I

Byte Select 2

 

 

 

 

 

 

DATA

PB7-0

I/O

Bi-directional Data bus (Output when

 

 

OE is low)

 

 

 

 

 

 

 

 

 

 

 

Table 30-10. BS2 and BS1 Encoding

 

 

Flash / EEPROM

Flash Data Loading /

 

Reading Fuse and Lock

BS2

BS1

Address

Reading

Fuse Programming

Bits

 

 

 

 

 

 

0

0

Low Byte

Low Byte

Low Byte

Fuse Low Byte

 

 

 

 

 

 

0

1

High Byte

High Byte

High Byte

Lockbits

 

 

 

 

 

 

1

0

Extended High

Reserved

Extended Byte

Extended Fuse Byte

Byte

 

 

 

 

 

 

 

 

 

 

 

1

1

Reserved

Reserved

Reserved

Fuse High Byte

 

 

 

 

 

 

ATmega640/V-1280/V-1281/V-2560/V-2561/V [DATASHEET]

329

2549Q–AVR–02/2014