Make this controller the Xwire master and use the configuration data table stored at address pppp in NVEM page 0.
For example:
XwireMaster XWireTab
NVEM0
XWireTab:
NV0Byte SlaveAddr0,TxRAMStart0,TxRAMLen0,RxRAMStart0,RxRAMLen0
NV0Byte SlaveAddr1,TxRAMStart1,TxRAMLen1,RxRAMStart1,RxRAMLen1
NV0Byte SlaveAddr2,TxRAMStart2,TxRAMLen2,RxRAMStart2,RxRAMLen2
... etc
NV0Byte 255 ;End of table sentinel.
Dialect restriction: This instruction is not implemented on boards prior to dialect D=20.