background image

AN-6131API 

 

 

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. 

 

Содержание HI-6131 API

Страница 1: ...AN 6131API Rev A Holt Integrated Circuits HI 6131 API Application Development Kit December 2018...

Страница 2: ...Integrated Circuits REVISION HISTORY Revision Date Description of Change AN 6131API Rev New 06 07 16 Initial Release AN 6131API Rev A 12 12 18 Rename API Library file to coincide with software update...

Страница 3: ...the included Holt CD ROM A version of the demonstration software is already programmed into the microcontroller flash the board is operational right out of the box without installing or running the p...

Страница 4: ...2 serial cable DB 9M to DB 9F for console I O using a connected computer 2 board assembly comprised of o Upper TARGET board with HI 6131 device and dual transformer coupled MIL STD 1553 bus interfaces...

Страница 5: ...The kit includes a simple USB cable for connecting the board s debug interface to your computer For users already owning an ARM debug interface with ribbon cable connector an ARM standard 2x10 debug...

Страница 6: ...mes refers RT1 as just RT 1 The PC will need a serial COM port and a terminal emulation program like TeraTerm Most computers no longer have RS232 com ports so will require a serial to USB adapter supp...

Страница 7: ...ss each pair of red and black Bus test points For this demonstration half Watt resistors are adequate because duty cycle is sufficiently low When using the on chip HI 6131 to generate BC messages dire...

Страница 8: ...AN 6131API 8 Holt Integrated Circuits Press R or r to display the HI 613x registers...

Страница 9: ...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 couple...

Страница 10: ...emo 5 BC Low Priority Asynchronous Message Insertion Command L inserts a low priority message into the scheduled BC message list Low priority Inserted messages occur upon completion of any BC minor fr...

Страница 11: ...and E Enumerate Card is reserved for future use 8 From a RESET if the BC is started before enabling the K and T sequence to display message traffic the first message may contain an error This is norma...

Страница 12: ...sage Traffic capture using a Ballard USB 1553 monitor When a BC message is transmitted to a RT that is not enabled RT no response NORES error is indicated MSG 0170 TIME 00086918us BUS A TYPE2 RT to RT...

Страница 13: ...he RESET button and then Press B to enable the RT RT1 then Press K and T to activate the RT traffic on the console Compose a BC to RT message with SA 1 and 32 data words similar to the message shown b...

Страница 14: ...ome messages to the monitor use this command to display the addresses and use the Memory Watch window to view the Command and Data in memory The SMT is also initialized with the K command that provide...

Страница 15: ...View pull down menu Make any window adjustments or open any of the folder groups to view included files to suit your preferences 4 Double click the main c file it should appear in the text editor pane...

Страница 16: ...AN 6131API 16 Holt Integrated Circuits Main Project demo screen move and size the windows according to preference...

Страница 17: ...y the user A simple way to create a new configuration is to select Project Edit Configurations and then select New The dialog box will allow a new configuration based on an existing configuration with...

Страница 18: ...ls After initialization is complete function calls demonstrate powerful addressing methods for all RAM structures used by the enabled terminal modes Demo initialization and execution uses Holt high le...

Страница 19: ..._x100ms num Flash_Red_LED Flash_Green_LED board_613x h Contains ARM MCU i o definitions controlled by macros The SPI pins are common between MAMBA and HI 6131 since both use a SPI interface BC h BC h...

Страница 20: ...emos c Provides all demo functions that are called by the console menu DisplayDecodedMsg used to display 1553 formatted data to the console when the T command is used displayRTTraffic called from main...

Страница 21: ...watch capability via SPI by using a C function called Memory_watch This function call only works when Console I O is enabled It displays 256 consecutive register or RAM values starting with the provid...

Страница 22: ...f the screen lists available Memory Watch options Pressing D DOWN command changes the displayed address range to 0x0100 0x01FF Pressing U UP command from the above screen wraps around the device addre...

Страница 23: ...HI 6131 SPI interface simplifies MIL STD 1553 terminal hardware design and saves considerable board space over a similar 16 bit parallel address and data bus interface The Holt 1553 API Runtime Librar...

Страница 24: ...OT SOLDER 15 1 LED Yellow 0805 LED5 160 1175 1 ND Lite On LTST C170YKT 16 3 LED Green 0805 LED1 LED3 160 1179 1 ND LiteOn LTST C170GKT 17 1 LED Red 0805 LED4 160 1176 1 ND LiteOn LTST C170CKT 18 1 Osc...

Страница 25: ...P DSN A HI 6131 EVAL PCB Use With Std ARM CM3 Lower PCB A 1 4 Thursday October 06 2011 HI 6131 PQFP 1553 BUS DIP SWITCH SIGNALS SIGNALS SHARED WITH MCU COMP TEST PIN IS MUXED WITH EECOPY PIN SERIAL EE...

Страница 26: ...t Number Rev Date Sheet of 6131 EVAL TOP DSN A HI 6131 EVAL PCB Use With Std ARM CM3 Lower PCB A 2 4 Thursday October 06 2011 Title Size Document Number Rev Date Sheet of 6131 EVAL TOP DSN A HI 6131 E...

Страница 27: ...A 3 4 Thursday October 06 2011 REMOTE TERMINAL 1 ADDRESS RT1 CONFIG REMOTE TERMINAL 2 ADDRESS DIP SWITCHES SERIAL EEPROM ALL DIP SWITCH SIGNALS WITH A PULL UP OR A PULL DOWN GO TO THE MCU FOR ALL DIP...

Страница 28: ...PROM USER EEPROM FOR DIAGNOSTIC TESTS JUMPERS SPAN COLUMNS B C SO THE MCU SPI CAN READ WRITE THE SERIAL EEPROM THE C PROGRAM CONTROLS TEST SLAVE SELECT SIGNAL nTSTSS HI 6120 SPI TO EEPROM JUMPERS NORM...

Страница 29: ...or 4 7K 5 1 8W 0805 R3 P4 7KACT ND Panasonic ERJ 6GEYJ472V 26 1 Resistor 6 8K 5 1 8W 0805 R6 P6 8KACT ND Panasonic ERJ 6GEYJ682V 27 0 Resistor 47K 5 1 8W 0805 R18 DO NOT STUFF Panasonic ERJ 6GEYJ473V...

Страница 30: ...RT USB DEBUG PORT J5 HOLT INTEGRATED CIRCUITS Mission Viejo CA USA Title Size Document Number Rev Date Sheet of CM3 BOARD REV E DSN E ARM CORTEX M3 MICROCONTROLLER BOARD A 1 7 Wednesday June 01 2016 T...

Страница 31: ...79 PB4 AD12BAD3 80 PB5 AD1 65 PB6 D15 66 PB7 A0 NBS0 67 PB8 A1 68 PB9 D0 31 PB10 D1 30 PB11 D2 59 PB12 D3 61 PB13 D4 62 PB14 D5 29 PB15 D6 97 PB16 D7 96 PB17 NANDOE 26 PB18 NANDWE 25 PB19 NRD 24 PB20...

Страница 32: ...SWDIO 7 TCK SWCLK 9 VBG 39 DHSDP 37 DHSDM 38 DFSDM 41 DFSDP 42 FWUP 135 SHDN 136 ERASE 137 TEST 138 NRSTB 141 XIN32 144 XOUT32 143 XIN 36 XOUT 35 ADVREF 74 AD12BVREF 76 VDDCORE1 16 VDDCORE2 27 VDDCORE...

Страница 33: ...3 Header 2x20 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 J4 Header 2x20 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23...

Страница 34: ...e Size Document Number Rev Date Sheet of CM3 BOARD REV E DSN E ARM CORTEX M3 MICROCONTROLLER BOARD A 5 7 Wednesday June 01 2016 R14 0R U3 MAX3232CSE T1IN 11 T2IN 10 R1OUT 12 R2OUT 9 T1OUT 14 T2OUT 7 R...

Страница 35: ...e Size Document Number Rev Date Sheet of CM3 BOARD REV E DSN E ARM CORTEX M3 MICROCONTROLLER BOARD A 6 7 Wednesday June 01 2016 Title Size Document Number Rev Date Sheet of CM3 BOARD REV E DSN E ARM C...

Страница 36: ...M3 MICROCONTROLLER BOARD Custom 7 7 Wednesday June 01 2016 Title Size Document Number Rev Date Sheet of CM3 BOARD REV E DSN E ARM CORTEX M3 MICROCONTROLLER BOARD Custom 7 7 Wednesday June 01 2016 Tit...

Отзывы: