Knowledge Base

The Network Address handles the vast majority of commands and data between the SPLat controller and the SX10509. It requires an Xwire transmit data block and a receive data block.

Note: This address is set to 64 by default but can be changed in the Xwire Configuration tab.

Xwire network transmit data block:
MemoryDescriptionFormat
0TxCommandByte
1TxLengthByte
2TxData0Byte
3TxData1Byte
...
NTxDataNByte

Note that this data block does not need to start at memory location 0. The data block can be moved anywhere in memory as long as it stays together, is in the order above and is defined in the NVEM Xwire table in the program.

Memory location 0 in the Xwire transmit data block is the TxCommand. The SX10509 performs various actions depending on its value. When the TxLength and TxDataX bytes have all been set, change TxCommand to instruct the SX10509 to take action.

Memory location 1 in the Xwire transmit data block is the TxLength byte. This is set to the number of active bytes of data that follow. The SX10509 will process that many bytes of data when it executes the command in TxCommand.

Memory location 2, 3,

The network transmit data block may be between 3 and 32 bytes long.

Xwire network receive data block:
MemoryDescriptionFormat
0CommandEchoByte
1RxLengthByte
2RxData0Byte
3RxData1Byte
...
MRxDataNByte

Note that this data block does not need to start at memory location 0. The data block can be moved anywhere in memory as long as it stays together, is in the order above and is defined in the NVEM Xwire table in the program.

Memory location 0 in the Xwire receive data block is the CommandEcho byte from the SX10509. The CommandEcho byte will be set to the same value as TxCommand once the SX10509 has completed the command.

Memory location 1 in the Xwire receive data block is the RxLength byte. This is set to the number of bytes of data that follow. The SPLat controller should process this number of bytes, no more.

Memory location 2, 3,

The network receive data block may be between 3 and 32 bytes long.