Class Notes Avionics
Class Notes Avionics
Architecture
Reference Guide
N e xt
Controller-To- R e ce ive D a ta D a ta D a ta Sta tu s Com m and
... [] ^
RT Transfer Com m and Word Word Word Word Word
Bit Time 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
N e xt Command
MIL-STD-1553 Message Formats
SY N C D at a P
N e xt
M ode Com m and M ode Sta tu s Com m and
[] ^
w/o Data Word Command Word Word
Status Word 5 1 1 1 3 1 1 1 1 1 1
Message Error
Instrumentation
Service Request
Reserved
Subsystem Flag
Dynamic Bus Control Acceptance
Broadcast Command Receive
Busy
Terminal Flag
Parity
N e xt SY N C RT Address
M ode Com m and
M ode Sta tu s D a ta Com m and
With Data Word [] ^
Com m and Word Word Word
(Transmit)
T/R: Transmit Receive
P: Parity
N e xt
M ode Com m and
M ode D a ta Sta tu s Com m and
With Data Word [] ^
Com m and Word Word Word
( R e ce ive )
N e xt
Controller-To- R e ce ive D a ta D a ta D a ta Com m and Monitor Functions:
... ^
RT(S) Transfer Com m and Word Word Word Word • Sequential Monitoring
Broadcast Message Formats
[] ... ^
Transfers Com m and Com m and Word Word Word Word Word
• Full Error Detection and Flags for Each Word
• 46-bit Time Tag, System or IRIG Synced
N e xt • Filter to Word Count Level for any RT
M ode Com m and M ode Com m and
w/o Data Word Command
^
Word
• API Examples for Monitoring and Archiving
• ASCII to Binary to ASCII Conversions with Filters and Source Code
N e xt Bus Controller Functions:
M ode Com m and M ode D a ta Com m and
With Data Word Command Word
^
Word • Simple and Complex Framing Support
• Minor/Major Frame Auto Timing for Messages
• Conditional Branching for Status, Data, Triggers Events
• External Trigger Support - Sync to Time Events
^ Intermessage gap
• BC Retries to 8 Levels - Any Bus Combination
[] Response time • Full Error Detection for Validation of Messages
• Full Error Injection for Validation Tests
• Advanced API to Abstract Message Layers
D yn a m ic B u s C o n tro l 00000 1 No No
Syn ch ro n ize 00001 1 No Yes General:
Transmit Status Word 00010 *1 No No • One Megabyte of RAM per Channel
Initiate Self-Test 00011 1 No Yes
• Full API and Device Drivers with Source No-Cost
• Windows (all), VxWorks, Linux, Solaris, etc.
Transmitter Shutdown 00100 1 No Yes
• Easy Links to User Applications
Override Transmitter
Sh u td o w n
00101 *1 No Yes • Reduce Integration Time
Inhibit Terminal Flag Bit 00110 1 No Yes
• Single and Multi-Function Level Products
• Maximum Portability Across Backplanes and OS
O ve rrid e In h ib it • Common API for all Level of Products
00111 1 No Yes
Terminal Flag Bit
• 1-4 Channels on Most Backplanes (PMC included)
Reset RT 01000 *1 No Yes • Full Labview/Windows Support: Libraries and User's Manual
Transmit Vector Word 10000 1 Yes No • Internal and External A-B Bus Wrap BIT Tests
Syn ch ro n ize 10001 0 Yes Yes • Avionics Level Discretes
Transmit Last Command 10010 1 Yes No
Product Backplanes and Options:
Transmit Bit Word 10011 1 Yes No • PCI, cPCI and PMC with 1-4 Channels
Selected Transmitter
10100 0 Yes Yes • VMEbus and VXI with 1-4 Channels
Sh u td o w n
• 1-2 Channel Industry Pack Modules
O ve rrid e Se le cte d
Transmitter Shutdown
10101 0 Yes Yes • PC104
• Extended Temperature/Ruggedized
*Minimum Required Mode Code
• Conduction Cooling Option
• IRIG Decode and Generator
4 words for each RT
B C M e s s a g e B lo c k
rtbbase R T En ab les bcmsgpts 0 BC Control
RT 0
RT Status Word
1 Command Word 1
BC Message Blocks
RT 1
RT Address Buffer
RT Last Command Word
RT 2 2 BC Error Inject Pointer
RT Bit Word Data Buffer A
RT 3 3 In t er m es s ag e G ap T im e
4 D at a Po in t er A 1-33 Words
RT 4
RT 5 5 D at a Po in t er B
RT 6 6 Command Word 2
RT 7 lsb 0 Reserved 7 Status Word 1 Data Buffer B
1 Edbc - Enable dynamic bus control 8 Status Word 2 (optional)
(128 words) 2 Itf - Inhibit Terminal Flag 9 B C M es s ag e St at u s 1 1-33 Words
3 Dbcf - Dynamic bus control flag 10 B C M es s ag e St at u s 2
R T 24 4 11 N ext M es s ag e Po in t er
5 12
R T 25
6 13
R T 26 R es er ved Next BC Block,
7 14
R T 27 15 (Message Block,
8
R T 28 Conditional Block,
9 Unused
RT Enable Word
R T 29 Stop OP Block,
10
R T 30 or NOOP Block)
11
R T 31 12
13
14
15 Rtoff - Turn off with dynamic bus control
RT Control Buffer
rtfbase R T 0 , R eceive, SA 0 (non-broadcast)
R T M e s s a g e B u ff e r
R T 0 , R eceive, SA 1 Leg al W C /M C 1 5 ..0 (3 2 ) B C M e s s a g e B lo c k
0 R T N ext M es s ag e Po in t er
Leg al W C /M C 3 1 ..1 6 1 RT Error Inject Pointer 0 BC Control lsb 0 Nop - NOOP message
BC Control Word
RT Message Buffer Pointer 1 Command Word 1 1 Ctl0 - Control bit
RT Filter Buffer
2 R T In t er r u p t En ab le 1
R T 0 , R eceive, SA 3 1 2 BC Error Inject Pointer 2 Ctl1 - Control bit
3 R T In t er r u p t En ab le 2
RT 0, Transmit, SA 0 3 In t er m es s ag e G ap T im e 3 Mnfr - Start minor frame
4 R T M es s ag e St at u s 1 B it
4 D at a Po in t er A 4 Mint - Interrupt on msg
(2048 words) 5 R T M es s ag e St at u s 2 2 1
5 Rtrt - RTRT msg format
6 RT Time Tag 0 5 D at a Po in t er B C t l1 C t l0 B C B lo c k Ty p e
RT 0, Transmit, SA 31 6 Dta - Use data buffer A
7 RT Time Tag 1 6 Command Word 2 0 0 N O O P B lo ck
R T 1 , R eceive, SA 0 7 Emf - End minor frame
8 RT Time Tag 2 7 Status Word 1 Chan - Channel (A or B) 0 1 M es s ag e B lo ck
8
BC Control Word
9 RT Command Word 8 Status Word 2 9 Res - Reserved 1 0 St o p B C B lo ck
RT Control Buffer TRANSMIT Status Word 9 B C M es s ag e St at u s 1 10 Rtry - Retry enable 1 1 C o n d it io n al B lo ck
(broadcast) 10 10 B C M es s ag e St at u s 2
(Reserved for Receive buffers) 11
RT 31, Transmit, SA 30 RT Message Buffer Pointer 11 11 N ext M es s ag e Po in t er 12
RT 31, Transmit, SA 31 32 Data Words 12 Reserved
R T 0 Leg al W C /M C 1 5 ..0 (3 2 ) 13
N 13
R T 0 Leg al W C /M C 3 1 ..1 6 R es er ved 14
RECEIVE Status Word 14 15 Rapi - Reserved for API use
N+1
(64 words) (Reserved for Transmit buffers) 15
N+2
R T3 1 Leg al W C /M C 1 5 ..0 (3 2 ) R es er ved
R T3 1 Leg al W C /M C 3 1 ..1 6 47
R es er ved
R T M e s s a g e B u ff e r
0 R T N ext M es s ag e Po in t er B C M e s s a g e B lo c k RT Error Injection Buffer
1 RT Error Inject Pointer 0 BC Control 0 Errors on Status Words
RT Message Buffer,
2 R T In t er r u p t En ab le 1 1 Command Word 1 1
Interrupt Enables
4 R T M es s ag e St at u s 1 3 In t er m es s ag e G ap T im e
BC Message
5 R T M es s ag e St at u s 2 4 D at a Po in t er A
6 RT Time Tag 0 lsb 0 EM - End of message lsb 0 Hw - High word 5 D at a Po in t er B lsb 0
7 RT Time Tag 1 1 Bcm - Broadcast message 1 Iw - Invalid word 6 Command Word 2 1 Err_enc
8 RT Time Tag 2 2 Rtf - RTRT message format 2 Lw - Low word 7 Status Word 1 2 Err_inf - info for
15 14 13
9 RT Command Word 3 Rrt - Reset RT 3 Is - Inverted sync error 8 Status Word 2 3 error to be inj.
Bit Value
TRANSMIT Status Word 4 St - Self test 4 Mbe - Mid-bit error 9 B C M es s ag e St at u s 1 4
10 Mc - Mode code 2bus - two-bus error 5 0 0 0 none
(Reserved for Receive buffers) 5 5 10 B C M es s ag e St at u s 2
mid sync 0 crossing error
0 0 1
Interrupt Enable Word
11 (B C , R T)
32 Data Words 7 Rtb0 - RT busy bit 0 7 Ncd - Non-contiguous data 12 7 Ie - Inverted sync error (BC, RT)
N 8 Rtb1 - RT busy bit 1 8 Er - Early response 13 8 Pe - Parity error (BC, RT) mid bit 0 crossing error
R es er ved 0 1 0
RECEIVE Status Word 9 Rtry - Retry occurred 9 Lr - Late response 14 9 Gap - Gap between words (BC, RT) (B C , R T)
N+1 0 1 1 reserved
(Reserved for Transmit buffers) 10 Nres - No response 10 Ira - Incorrect RT Address 15 10 Wce - Word count error (BC, RT)
N+2 11 Me - Message error bit 11 Ch - Channel 11 Pres - Programmable response (RT) response on wrong bus
1 0 0
R es er ved 12 Tb - Trigger begin 12 Unt - Unterminated bus 12 Ira - Respond to wrong address (RT) (R T)
47 13 1 0 1 reserved
13 Te - Trigger end 13 Wb - Response on wrong bus
14 Bmo - Bus Monitor overflow 14 Bce - Bit count error 14 Err_enc - Encoded error 1 1 0 reserved
15 Res - Reserved 15 Nig - no/short intermessage gap 15 1 1 1 reserved
B C M e s s a g e B lo c k
R T M e s s a g e B u ff e r 0 BC Control
RT Error Injection Buffer
0 R T N ext M es s ag e Po in t er 1 Command Word 1
RT Message Buffer,
Status Words
3 R T In t er r u p t En ab le 2 33 4 D at a Po in t er A
BC Message
7 13 8
11 Pe - Parity error (BC, RT) mid bit 0 crossing error R es er ved
32 Data Words 8 0 1 0 14 9 Rtry - Retry occurred 9 Lr - Late response
Gap - Gap between words (BC, RT) (B C , R T)
N 9 15 10 Nres - No response 10 Ira - Incorrect RT Address
Wce - Word count error (BC, RT) 0 1 1 reserved Me - Message error bit
RECEIVE Status Word 10 11 11 Ch - Channel
N+1 11 Pres - Programmable response (RT) response on wrong bus 12 Tb - Trigger begin 12 Unt - Unterminated bus
(Reserved for Transmit buffers) 1 0 0
12 Ira - Respond to wrong address (RT) (R T) 13 Te - Trigger end 13 Wb - Response on wrong bus
N+2
R es er ved 13 1 0 1 reserved 14 Bmo - Bus Monitor overflow 14 Bce - Bit count error
47 14 Err_enc - Encoded error 1 1 0 reserved 15 Res - Reserved 15 Nig - no/short intermessage gap
15 1 1 1 reserved
BC Blocks - Conditional,
RT Last Status Word
rtlastsw RT 0 B C C o n d it io n a l B lo c k B C S t o p B C B lo c k B C N O O P B lo c k
Stop BC, NOOP
R T 26 Message Error 12 12 12
10
R T 27 11 13 13 13
R T 28 R es er ved R es er ved R es er ved
12 14 14 14
R T 29 13 RT Address 15 15 15
R T 30 14
R T 31 15
Interrupt Queue Entry
Interrupt Queues
iqueptr In t er r u p t M o d e lsb 0 Tp - BM Trigger Point
bmfbase M es s ag e Po in t er 1 Bc - BC interrupt
BM Filter Buffer
R T 0 , R eceive, SA 0 N ext In t er r u p t Q u eu e Po in t er
BM Control Buffer 2 Bm - BM interrupt
R T 0 , R eceive, SA 1
Leg al W C /M C 1 5 ..0 (3 2 ) 3 Rt - RT interrupt
Leg al W C /M C 3 1 ..1 6 In t er r u p t M o d e 4 Tmr - Tag timer load
BM Nth Occurence wd1 5 Iack - Interrupt Acknowledge
R T 0 , R eceive, SA 3 1 M es s ag e Po in t er
Bus Monitoring
5 BM Time Tag 0 5 BM Time Tag 0 5 BM Time Tag 0 BusTools_BM_Init() BusTools_BM_MessageAlloc()
6 BM Time Tag 1 6 BM Time Tag 1 6 BM Time Tag 1 Initialize & reset memory Initializes and allocates the given
7 BM Time Tag 2 7 BM Time Tag 2 7 BM Time Tag 2 management functions and bus number of BM message buffers in
8 BM Command Word 1 8 BM Command Word 1 8 BM Command Word 1 monitor. memory.
(85 words)
9 B M M es s ag e St at u s C W 1 9 B M M es s ag e St at u s C W 1 9 B M M es s ag e St at u s C W 2
10 10 B M R es p o n s e T im e 1 10 BM Command Word 2 BusTools_BM_StartStop()
11 BM Status Word 1 1 1 B M M es s ag e St at u s C W 1 Starts monitoring.
12 B M St at u s SW 1 12 B M R es p o n s e T im e 1
BM Data Words 13 13 BM Status Word 1 BusTools_BM_MessageReadBlock()
(2 words per data word) BusTools_BM_MessageRead() Your code
1 4 B M M es s ag e St at u s SW 1
Reads messages from monitor buffers. here
15 BM Data Words
BM Data Words (2 words per data word)
(2 words per data word)
B M R es p o n s e T im e 1 B M R es p o n s e T im e 2
BusTools_BM_StartStop()
BM Status Word 1 BM Status Word 2 Stops monitoring.
84 B M St at u s SW 1 84 84 B M St at u s SW 2
BusTools_API_Close()
Closes a given board/channel.
2 B M In t er r u p t En ab le 2
Int Enable Words
BusTools_API_InitExtended()
Functions Used for
0 Inte - BM interrupt host BOARD/CHANNEL LEVEL BC FUNCTION LEVEL MSG BUFFER LEVEL
lsb 1 Senb - Enable start trigger
2 Henb - Enable stop trigger BusTools_API_InitExtended()
BM Trigger Buffer
BC Simulation
6 Res - Reserved Initialize & reset memory Initialize BC functionality, sets frame
7 X0t - External output on trigger management Functions and bus rate, retries, etc.
eventptr 8 Tem - Trigger on every message monitor.
9 BusTools_BC_MessageAlloc()
10 Allocates memory for the specified
11 number of BC message buffers.
B M Tr ig g e r B u ff e r 12 Reserved
0 BM Tigger Header Word 13 BusTools_BC_StartStop()
1 BM Event Type 14 Starts the BC simulation.
2 BM Trigger Event Bit Mask 15
3 BM Trigger Event Value BusTools_BC_MessageRead()
BM Event Type Your code
4 B M Even t C o u n t BusTools_BC_MessageWrite()
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 here
5 TM Trigger Control Read or Write BC message buffers.
0 s t a co m Data Word
D at a channel.
lsb 0 RT ADDRESS LEVEL
RT Simulation
3
and bus monitor. address. Call this Initialize a given
4
function for each RT to subaddress, sets legal
5
be simulated. wordcount and number
6 Bit Count
of buffers.
7 Sync Polarity
8 Parity Error
BusTools_RT_StartStop()
9
Starts the RT simulation.
10 Not Used MSG BUFFER LEVEL
RTs will respond on 1553
11 once started. BusTools_RT_MessageRead() Your
12 End of Playback
BusTools_RT_MessageWrite() code
13 Gap Message Code
Read or Write RT RT/SA data buffers. here
14 Xmit message Code
Playb ack M es s ag e C o d e (en d ) 15 Channel (A or B) BusTools_RT_StartStop()
Stops the RT simulation.
BusTools_API_Close()
Closes a given board/channel.
Control Registers
Label Byte Address Description
Remote Terminal
Bus Controller
Bus Monitor
Playback
Other