This is a basic example program that sets up a simple RT Simulation. It simulates RT1 with two subaddresses: SA1 RECEIVE and SA2 TRANSMIT.
This program uses multiple buffers (2) for each SA and checks the CURRENT BUFFER POINTER when we read or write to ensure that we read or write the INACTIVE buffer.
Use a bus analyzer (BusTools/1553) as the bus controller sending messages to RT1 SA1 Receive and RT1 SA2 Transmit.
Download this example by clicking the attachments link on the right.