
147
ATtiny40 [DATASHEET]
8263B–AVR–01/2013
ATtiny40 has a three-byte signature code, which can be used to identify the device. The three bytes reside in the
19.3.5
Calibration Section
ATtiny40 has one calibration byte. The calibration byte contains the calibration data for the internal oscillator and
resides in the calibration section, as shown in
Table 19-8. During reset, the calibration byte is automatically written
into the OSCCAL register to ensure correct frequency of the calibrated internal oscillator.
19.3.5.1
Latching of Calibration Value
To ensure correct frequency of the calibrated internal oscillator the calibration value is automatically written into the
OSCCAL register during reset.
19.4
Accessing the NVM
The NVM can be accessed for read and programming via the locations mapped in the data space.
The NVM Controller recognises a set of commands that can be used to instruct the controller what type of pro-
gramming task to perform on the NVM. Commands to the NVM Controller are issued via the NVM 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 Con-
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
The ATtiny40 supports only external programming. Internal programming operations to the NVM have been dis-
abled, which means any internal attempt to write or erase NVM locations will fail.
Table 19-7.
Signature codes
Part
Signature Bytes
Manufacturer ID
Device ID 1
Device ID 2
ATtiny40
0x1E
0x92
0x0E
Table 19-8.
Calibration byte
Calibration word address
Calibration word data
High byte
Low byte
0x00
Reserved
Internal oscillator calibration value
0x01 ... 0x1F
Reserved