How can I use BusTools/1553-API to program the BC to transfer a block of data to an RT?

This is a basic example program that sets up a simple BC Simulation. This program takes a block of data and transfers it to an RT. This approach could be used to transfer any amount of data; in this case it transfers 1000 words.

It uses an interrupt event to tell when the BC message completes, so it can write the next buffer of data to the BC message buffer. When all data has been sent, the event handler function sets a flag indicating that the transfer is complete. The main program waits for this transfer complete flag or for a timeout.

You can easily modify this program to set up your RT, SA, WC, data size, etc. You can also modify this program to read data from a file for transfer.

Download this example by clicking the attachment link on the right.