34.3.3.2 STS
- Store Data to Data Space Using Direct
Addressing
The STS
instruction is used to store data that is shifted
serially into the PHY layer to the bus matrix address space. The STS
instruction is based on direct addressing, where the address is the first set of
operands, and data is the second set. The size of the address and data operands are
given by the size fields presented in the figure below. The maximum size for both
address and data is 16 bits.
STS
supports repeated memory access when combined with the
REPEAT
instruction.
The transfer protocol for an
STS
instruction is depicted in the
figure as well, following this sequence: - The address is sent.
- An Acknowledge (ACK) is sent back from the UPDI if the transfer was successful.
- The number of bytes as specified
in the
STS
instruction is sent. - A new ACK is received after the data has been successfully transferred.