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

Serial Number Byte n

Name:  SIGROW_SERNUMn Offset:  0x06 + n*0x01 [n=0..9] Reset:  [device serial number]

Property: -

 

Bit

7

6

5

4

3

2

1

0

 

 

 

 

 

SERNUM[7:0]

 

 

 

Access

 

 

 

 

 

 

 

 

R

R

R

R

R

R

R

R

Reset

x

x

x

x

x

x

x

x

Bits 7:0 – SERNUM[7:0]: Serial Number n [n=0..9]

Each device has an individual serial number, representing a unique ID. This can be used to identify a specific device in the field. The serial number consists of ten bytes..

20.3.5.Calibration Section

ATtiny102/ATtiny104 have one calibration byte. The calibration byte contains the calibration data for the internal oscillator and resides in the calibration section. During reset, the calibration byte is automatically written into the OSCCAL register to ensure correct frequency of the calibrated internal oscillator.

Table 20-8. Calibration byte

Calibration byte

Offset Address

Configuration word data

 

 

 

 

 

 

 

 

High byte [BYTE1]

 

Low byte [BYTE0]

 

 

 

 

 

OSCCAL

0x00

Reserved

 

Oscillator calibration value

 

 

 

 

 

Reserved

0x01 ... 0x07

Reserved

 

Reserved

 

 

 

 

 

20.4.Accessing the NVM

NVM lock bits, and all Flash memory sections are mapped to the data space as shown in Data Memory. The NVM can be accessed for read and programming via the locations mapped in the data space.

The NVM Controller recognizes a set of commands that can be used to instruct the controller what type of programming task to perform on the NVM. Commands to the NVM Controller are issued via the NVM Command Register. See NVMCMD - Non-Volatile Memory Command Register. After the selected command has been loaded, the operation is started by writing data to the NVM locations mapped to the data space.

When the NVM Controller is busy performing an operation it will signal this via the NVM Busy Flag in the NVM Control and Status Register. See NVMCSR - Non-Volatile Memory Control and Status Register. The NVM Command Register is blocked for write access as long as the busy flag is active. This is to ensure that the current command is fully executed before a new command can start.

Programming any part of the NVM will automatically inhibit the following operations:

All programming to any other part of the NVM

All reading from any NVM location

ATtiny102/ATtiny104 supports external programming and internal programming (self-programming).

Related Links

Atmel ATtiny102 / ATtiny104 [DATASHEET] 191

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