Datasheet
114
ATtiny4/5/9/10 [DATASHEET]
8127F–AVR–02/2013
15.7 Register Description
15.7.1 NVMCSR - Non-Volatile Memory Control and Status Register
• Bit 7 - NVMBSY: Non-Volatile Memory Busy
This bit indicates the NVM memory (Flash memory and Lock Bits) is busy, being programmed. This bit is set when
a program operation is started, and it remains set until the operation has been completed.
• Bit 6:0 - Res: Reserved Bits
These bits are reserved and will always be read as zero.
15.7.2 NVMCMD - Non-Volatile Memory Command Register
• Bit 7:6 - Res: Reserved Bits
These bits are reserved and will always read zero.
• Bit 5:0 - NVMCMD[5:0]: Non-Volatile Memory Command
These bits define the programming commands for the flash, as shown in Table 15-10.
Bit 7 6543210
0x32 NVMBSY
– – – – – – –NVMCSR
Read/WriteR/WRRRRRRR
Initial Value0 0000000
Bit 76543210
0x33
– – NVMCMD[5:0] NVMCMD
Read/Write R R R/W R/W R/W R/W R/W R/W
Initial Value00000000
Table 15-10. NVM Programming commands
Operation Type
NVMCMD
Mnemonic DescriptionBinary Hex
General
0b000000 0x00 NO_OPERATION No operation
0b010000 0x10 CHIP_ERASE Chip erase
Section 0b010100 0x14 SECTION_ERASE Section erase
Word 0b011101 0x1D WORD_WRITE Word write