
141
ATtiny40 [DATASHEET]
8263B–AVR–01/2013
18.5.5
SOUT - Serial OUT to i/o space using direct addressing
The SOUT instruction stores the data byte that is shifted into the physical layer shift register to the I/O space. The
instruction uses direct addressing, the address consisting of the 6 address bits of the instruction, as shown in
Table18.5.6
SLDCS - Serial LoaD data from Control and Status space using direct addressing
The SLDCS instruction loads data byte from the TPI Control and Status Space to the TPI physical layer shift regis-
ter for serial read-out. The SLDCS instruction uses direct addressing, the direct address consisting of the 4
address bits of the instruction, as shown in
Table 18-7.
18.5.7
SSTCS - Serial STore data to Control and Status space using direct addressing
The SSTCS instruction stores the data byte that is shifted into the TPI physical layer shift register to the TPI Control
and Status Space. The SSTCS instruction uses direct addressing, the direct address consisting of the 4 address
18.5.8
SKEY - Serial KEY signaling
The SKEY instruction is used to signal the activation key that enables NVM programming. The SKEY instruction is
followed by the 8 data bytes that includes the activation key, as shown in
Table 18-9.
18.6
Accessing the Non-Volatile Memory Controller
By default, NVM programming is not enabled. In order to access the NVM Controller and be able to program the
non-volatile memories, a unique key must be sent using the SKEY instruction. The 64-bit key that will enable NVM
After the key has been given, the Non-Volatile Memory Enable (NVMEN) bit in the TPI Status Register (TPISR)
must be polled until the Non-Volatile memory has been enabled.
NVM programming is disabled by writing a logical zero to the NVMEN bit in TPISR.
Table 18-6.
The Serial OUT to i/o space (SOUT) Instruction
Operation
Opcode
Remarks
I/O[a]
data
1aa1 aaaa
Bits marked ‘a(chǎn)’ form the direct, 6-bit addres
Table 18-7.
The Serial Load Data from Control and Status space (SLDCS) Instruction
Operation
Opcode
Remarks
data
CSS[a]
1000 aaaa
Bits marked ‘a(chǎn)’ form the direct, 4-bit addres
Table 18-8.
The Serial STore data to Control and Status space (SSTCS) Instruction
Operation
Opcode
Remarks
CSS[a]
data
1100 aaaa
Bits marked ‘a(chǎn)’ form the direct, 4-bit addres
Table 18-9.
The Serial KEY signaling (SKEY) Instruction
Operation
Opcode
Remarks
Key
{8[data}}
1110 0000
Data bytes follow after instruction
Table 18-10. Enable Key for Non-Volatile Memory Programming
Key
Value
NVM Program Enable
0x1289AB45CDD888FF