AN-6131API
9
Holt Integrated Circuits
General Structure of Demo Functions
The Holt API demonstration program is contained in module
demos.c
. The Holt API runtime library is
contained in the library file “
HI-613x API LIB.a”
as executable object code. File
demos.c
contains the demo initialization API function calls supporting demonstrations executed from the console
menu to initialize the BC, RT,RT2 and monitor terminals. Key presses are detected in
console.c
which is called from the main loop in
main.c
and executes demo functions in
demos.c
.
Commands ‘A’ and ‘N’ transmit BC commands can be viewed on an oscilloscope and optionally display
the message traffic data on the console using the ‘K’ and ‘T’ command sequence. These demos
demonstrate how Holt API’s are used to generate BC Asynchronous messages, Major/Minor frames, low
priority and high priority messages. View these messages with external MIL-STD-1553 test equipment or
view them with an oscilloscope.
This exercise uses the internal BC to transmit messages, so message traffic data is displayed on the
console. Since the internal BC, RTs and SMT share the same bus pins, the RT’s and SMT monitor
terminals receive the BC messages. If an external BC is already connected to the bus jack though a bus
coupler, it is okay to leave it connected, but disable any external BC transmissions that will conflict with
the on-chip BC transmissions.
For the following demonstrations all four terminals in the HI-6131 API demo program are enabled and
initialized by console commands.
BC and RT MT Mode.
This demonstrates BC, RT and MT all together and displays the traffic data on the console.
1.
Press command ‘B’ to enable the RT.
2.
Press command ‘K’ to enable the RTMT demo.
3.
Press command ‘T’ (or spacebar) to display RT traffic on the console. Command ‘T’ toggles on
and off alternately to enable or disable the RT traffic shown on the console. Using the ‘T’
command relies on prior execution of command ‘K’.
4.
Press command ‘A’ to start the BC transmitting messages.
Messages will display rapidly on the screen, Press the space bar to stop the console output. The
console should freeze and look similar to the screen below. Press space bar again to restart the
console output. Using the space bar does not stop BC transmission or prevent RT or MT message
reception; it only stops console output.