ch10_handbook:mil-std-1553_data
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
ch10_handbook:mil-std-1553_data [2014/04/13 18:10] – created bob | ch10_handbook:mil-std-1553_data [2014/04/14 20:28] – Fixed figures bob | ||
---|---|---|---|
Line 5: | Line 5: | ||
Reserved for future use. | Reserved for future use. | ||
+ | ---- | ||
==== Type 0x19, MIL-STD-1553 Data, Format 1 (MIL-STD-1553B Data) ==== | ==== Type 0x19, MIL-STD-1553 Data, Format 1 (MIL-STD-1553B Data) ==== | ||
Line 11: | Line 12: | ||
general, the 1553 data packet will contain multiple 1553 messages. | general, the 1553 data packet will contain multiple 1553 messages. | ||
- | The layout of the CSDW is shown in Figure 6-21. The uMsgCnt field indicates the | + | The layout of the CSDW is shown below. The uMsgCnt field indicates the |
number of messages contained in the data packet. The uTTB field indicates the 1553 message | number of messages contained in the data packet. The uTTB field indicates the 1553 message | ||
bit to which the time tag corresponds. | bit to which the time tag corresponds. | ||
- | < | + | < |
struct Su1553F1_ChanSpec | struct Su1553F1_ChanSpec | ||
{ | { | ||
Line 24: | Line 25: | ||
</ | </ | ||
- | **Type 0x19 MIL-STD-1553 Data Format 1 CSDW** | + | < |
+ | Type 0x19 MIL-STD-1553 Data Format 1 CSDW | ||
+ | </ | ||
The individual 1553 messages follow the CSDW. Each 1553 message has an intra-packet | The individual 1553 messages follow the CSDW. Each 1553 message has an intra-packet | ||
time stamp, an intra-packet header data word, and then the actual 1553 message. The | time stamp, an intra-packet header data word, and then the actual 1553 message. The | ||
- | layout of the message header is shown in Figure 6-22. The suIntPktTime field is an 8-byte | + | layout of the message header is shown below. The suIntPktTime field is an 8-byte |
value. The specific interpretation of this field is determined by packet header flags. This time is | value. The specific interpretation of this field is determined by packet header flags. This time is | ||
interpreted as a RTC value as depicted in Figure 6-5 if Secondary Headers are not enabled by | interpreted as a RTC value as depicted in Figure 6-5 if Secondary Headers are not enabled by | ||
Line 58: | Line 62: | ||
</ | </ | ||
- | **Type 0x19 MIL-STD-1553 Data Format 1 intra-packet header** | + | < |
+ | Type 0x19 MIL-STD-1553 Data Format 1 intra-packet header | ||
+ | </ | ||
The amount of data that follows the intra-packet header is variable. The data length in | The amount of data that follows the intra-packet header is variable. The data length in | ||
Line 70: | Line 76: | ||
Command Word as well as the bRT2RT flag to determine the offsets of the other message | Command Word as well as the bRT2RT flag to determine the offsets of the other message | ||
structures such as the Status and Data Word(s). The layouts of the various types of 1553 | structures such as the Status and Data Word(s). The layouts of the various types of 1553 | ||
- | messages are shown in Figure 6-23 and Figure 6-24. When calculating data word count, be | + | messages are shown in the figures below. |
- | careful to take Mode Codes and word count wrap around into account. An algorithm to | + | |
- | determine | + | |
- | This algorithm only works for a message with no errors. Otherwise, Block Status Word bits and | + | |
- | the Length Word are used to determine data and status words actually present. | + | |
+ | {{ : | ||
- | FIXME | + | < |
+ | 1553 Message word layout | ||
+ | </ | ||
- | **1553 Message word layout** | + | {{ : |
- | FIXME | + | < |
+ | 1553 Broadcast message word layout | ||
+ | </ | ||
- | **1553 Broadcast message | + | When calculating data word count, be careful to take Mode Codes and word count wrap around into account. An algorithm to determine the number of data words in a message is shown in C-like pseudo-code below. This algorithm only works for a message with no errors. Otherwise, Block Status Word bits and the Length Word are used to determine data and status words actually present. |
< | < | ||
Line 97: | Line 104: | ||
</ | </ | ||
- | **Algorithm to determine 1553 data word count** | + | < |
+ | Algorithm to determine 1553 data word count | ||
+ | </ | ||
+ | |||
+ | ---- | ||
==== Type 0x1A, MIL-STD-1553 Data, Format 2 (16PP194 Bus) ==== | ==== Type 0x1A, MIL-STD-1553 Data, Format 2 (16PP194 Bus) ==== | ||
Line 106: | Line 117: | ||
Protocol. A 16PP194 transaction consists of six 32-bit words consisting of a 16PP194 | Protocol. A 16PP194 transaction consists of six 32-bit words consisting of a 16PP194 | ||
- | Command, Command Echo, Response, GO/NOGO, GO/NOGO Echo and Status as illustrated | + | Command, Command Echo, Response, GO/NOGO, GO/NOGO Echo and Status as illustrated |
- | Figure 6-26. Multiple transactions may be encoded into the data portion of a single packet. | + | |
- | FIXME | + | {{ : |
- | **16PP194 Message transaction** | + | < |
+ | 16PP194 Message transaction | ||
+ | </ | ||
- | The layout of the CSDW is show in Figure 6-27. The 16PP194 packet can contain | + | The layout of the CSDW is show below. The 16PP194 packet can contain multiple bus transactions. The uMsgCnt field indicates the number of 16PP194 messages in the packet. |
- | multiple bus transactions. The uMsgCnt field indicates the number of 16PP194 messages in the | + | |
- | packet. | + | |
< | < | ||
Line 124: | Line 134: | ||
</ | </ | ||
- | **Type 0x1A MIL-STD-1553 Data Format 2 (16PP194) CSDW** | + | < |
+ | Type 0x1A MIL-STD-1553 Data Format 2 (16PP194) CSDW | ||
+ | </ | ||
The 16PP194 message word is 26 bits in length and consists of 16 data bits, four address | The 16PP194 message word is 26 bits in length and consists of 16 data bits, four address | ||
bits, four sub-address bits, a parity bit, and a sync bit. Only the 24 bits of data, address, and | bits, four sub-address bits, a parity bit, and a sync bit. Only the 24 bits of data, address, and | ||
sub-address values are mapped into the 16PP194 recorded data word. Sync and parity bits are not | sub-address values are mapped into the 16PP194 recorded data word. Sync and parity bits are not | ||
- | recorded. The mapping of these bits is shown in Figure 6-28. | + | recorded. The mapping of these bits is shown below. |
- | FIXME | + | {{ : |
+ | < | ||
16PP194 to IRIG 106 Chapter 10 data bit mapping | 16PP194 to IRIG 106 Chapter 10 data bit mapping | ||
+ | </ | ||
- | The layout of the recorded 16PP194 word is shown in Figure 6-29. The uDataWord | + | The layout of the recorded 16PP194 word is shown in below. The uDataWord |
field contains the message data. The uRiuSubAddr field is the Remote Interface Unit (RIU) | field contains the message data. The uRiuSubAddr field is the Remote Interface Unit (RIU) | ||
sub-address. The uRiuAddr field is the RIU address. The bParityError flag indicates a | sub-address. The uRiuAddr field is the RIU address. The bParityError flag indicates a | ||
Line 142: | Line 156: | ||
the general range of gap time. The mapping of uGap values to gap time ranges can be found in | the general range of gap time. The mapping of uGap values to gap time ranges can be found in | ||
the Chapter 10 standard. The uBusID field indicates the bus on which the message occurred. | the Chapter 10 standard. The uBusID field indicates the bus on which the message occurred. | ||
- | Bus identification can be found in the Chapter 10 standard. The layout of a complete 16PP194 | + | Bus identification can be found in the Chapter 10 standard. |
- | transaction is shown in Figure 6-30. | + | |
- | + | ||
< | < | ||
struct SuSu16PP194_Word | struct SuSu16PP194_Word | ||
Line 158: | Line 171: | ||
</ | </ | ||
- | **16PP194 Word layout** | + | < |
+ | 16PP194 Word layout | ||
+ | </ | ||
+ | The layout of a complete 16PP194 transaction is shown below. | ||
+ | |||
< | < | ||
struct Su16PP194_Transaction | struct Su16PP194_Transaction | ||
Line 172: | Line 189: | ||
</ | </ | ||
- | **16PP194 Transaction layout** | + | < |
+ | 16PP194 Transaction layout | ||
+ | </ | ||
+ | |||
+ | ---- | ||
==== Type 0x1B - 0x1F, MIL-STD-1553 Data, Format 3 - Format 7 ==== | ==== Type 0x1B - 0x1F, MIL-STD-1553 Data, Format 3 - Format 7 ==== |
ch10_handbook/mil-std-1553_data.txt · Last modified: 2014/05/29 14:32 by bob