21.5 Instruction Set

The TPI has a compact instruction set that is used to access the TPI Control and Status Space (CSS) and the data space. The instructions allow the external programmer to access the TPI, the NVM Controller and the NVM memories. All instructions except SKEY require one byte operand following the instruction. The SKEY instruction is followed by 8 data bytes. All instructions are byte-sized.

Table 21-1. Instruction Set Summary
MnemonicOperandDescriptionOperation
SLDdata, PRSerial LoaD from data space using indirect addressingdata ← DS[PR]
SLDdata, PR+Serial LoaD from data space using indirect addressing and post-increment

data ← DS[PR]

PR ← PR+1

SSTPR, dataSerial STore to data space using indirect addressingDS[PR] ← data
SSTPR+, dataSerial STore to data space using indirect addressing and post-increment

DS[PR] ← data

PR ← PR+1

SSTPRPR, aSerial STore to Pointer Register using direct addressingPR[a] ← data
SINdata, aSerial IN from data spacedata ← I/O[a]
SOUTa, dataSerial OUT to data spaceI/O[a] ← data
SLDCSdata, aSerial LoaD from Control and Status space using direct addressingdata ← CSS[a]
SSTCSa, dataSerial STore to Control and Status space using direct addressingCSS[a] ← data
SKEYKey, {8{data}}Serial KEYKey ← {8{data}}