Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
ATtiny104_Datasheet.pdf
Скачиваний:
0
Добавлен:
12.02.2026
Размер:
3.8 Mб
Скачать

20.3.2.Flash Memory

The embedded Flash memory has four separate sections.

Table 20-3. Number of Words and Pages in the Flash

Section

Size (Bytes)

Page Size

Pages

WADDR

PADDR

 

 

(Words)

 

 

 

Code (program

1024

8

64

[3:1]

[9:4]

memory)

 

 

 

 

 

 

 

 

 

 

 

Configuration

8

8

1

[3:1]

-

 

 

 

 

 

 

Signature (1)

16

8

2

[3:1]

[4:4]

Calibration(1)

8

8

1

[3:1]

-

Note: 

1. This section is read-only.

20.3.3. Configuration Section

ATtiny102/ATtiny104 have one configuration byte, which resides in the configuration section.

Table 20-4. Configuration bytes

Configuration byte

Offset Address

Configuration word data

 

 

 

CONFW0

0x04

Configuration word (fuse valuesRSTDISBL, WDTON, CKOUT,

 

 

SELFPROGEN)

 

 

 

The next table briefly describes the functionality of all configuration bits and how they are mapped into the configuration byte.

Table 20-5. Configuration Byte 0

Bit

Fuse values

Description

Default Value

7:4

Reserved

1 (unprogrammed)

 

 

 

 

3

SELFPROGEN

Self-Programming

1 (unprogrammed)

 

 

 

 

2

CKOUT

System Clock Output

1 (unprogrammed)

 

 

 

 

1

WDTON

Watchdog Timer always on

1 (unprogrammed)

 

 

 

 

0

RSTDISBL

External Reset disable

1 (unprogrammed)

 

 

 

 

Configuration bits are not affected by a chip erase but they can be cleared using the configuration section erase command (see Erasing the Configuration Section in this chapter). Note that configuration bits are locked if NonVolatile Lock Bit 1 (NVLB1) is programmed.

20.3.3.1.Latching of Configuration Bits

All configuration bits are latched either when the device is reset or when the device exits the external programming mode. Changes to configuration bit values have no effect until the device leaves the external programming mode.

20.3.4.Signature Section

The signature section is a dedicated memory area used for storing miscellaneous device information, such as the device signature. Most of this memory section is reserved for internal use.

Atmel ATtiny102 / ATtiny104 [DATASHEET] 187

Atmel-42505D-ATtiny102-ATtiny104_Datasheet_Complete-10/2016

ATtiny102/ATtiny104 have a three-byte signature code, which can be used to identify the device. The three bytes reside in the signature section, as shown in the above table. The signature data for ATtiny102/ATtiny104 is given in the next table.

Table 20-6. Signature bytes

Signature word address

Configuration word data

 

 

 

 

 

 

 

 

 

 

High byte

Low byte

0x00

 

Device ID 1

Manufacturer ID

 

 

 

 

 

 

0x01

 

Reserved for internal use

Device ID 2

 

 

 

 

 

 

0x02

 

Reserved for internal use

 

 

 

 

 

 

 

 

0x03 ... 0x07

 

Serial number

 

 

 

 

 

 

 

 

Table 20-7. Signature codes

 

 

 

 

 

 

 

 

 

 

Part

Signature Bytes

 

 

 

 

 

 

 

 

 

 

 

Manufacturer ID

 

Device ID 1

 

Device ID 2

 

 

 

 

 

 

ATtiny102

0x1E

 

0x90

 

0x0C

 

 

 

 

 

 

ATtiny104

0x1E

 

0x90

 

0x0B

 

 

 

 

 

 

Atmel ATtiny102 / ATtiny104 [DATASHEET] 188

Atmel-42505D-ATtiny102-ATtiny104_Datasheet_Complete-10/2016