HI 3593 ARINC 429 3.3V Dual Receiver, Single Transmitter With SPI Evaluation Board Users Guide
HI 3593 ARINC 429 3.3V Dual Receiver, Single Transmitter With SPI Evaluation Board Users Guide
Mission Viejo, CA
92691. USA.
Tel: + 1 949 859 8800
Fax: + 1 949 859 9643
Email: sales@holtic.com
Web: www.holtic.com
_____________________________________________________________________________________
1
INTRODUCTION
The Holt HI‐3593 ARINC 429 Evaluation Board can be used to evaluate most of the features of the HI‐
3593 ARINC Dual Receiver and Single Transmitter IC. The HI‐3593 features an on‐chip DC‐DC converter
which generates both +5V and ‐5V to supply the bipolar differential voltage levels needed to meet the
ARINC 429 Bus levels from a single 3.3V supply voltage. The main board “General Purpose SPI
Evaluation Board” includes switches, pushbutton switches and LEDs to help navigate the operating
modes and confirm data and status information. A Freescale MC9S12XDT512 microcontroller on the
main board communicates with the HI‐3593 through the SPI interface. A Serial UART port is provided
which enables viewing messages and status information or entering of optional commands using any
terminal program such as Hyper‐Terminal. The HI‐3593 Evaluation Board is a daughter card that plugs on
to the General Purpose SPI board via two 26 pin connectors.
This Users Manual provides a more detailed description of the evaluation board and demo program than
in the Quick Start Guide.
Kit Contents
_____________________________________________________________________________________
2
Demo board software features
Transmission and Reception of ARINC low speed and high speed messages.
Selectable ODD or EVEN parity.
Self Test mode (Internal digital loop back).
256 receiver labels.
Receiver label reverse bit order.
Transmitter label reverse bit order.
Receiver Priority Label Mailboxes.
Receiver filter on SD9 or SD10.
ARINC ACLK programmable divider.
The bottom main board is a general purpose board used to demonstrate a variety Holt devices.
The schematic of this board will have slightly different references for some of the Dip switches. For this
application BITRATE1 is used for Receiver‐1 Parity Checking and BITRATE2 is used for Receiver‐2 Parity
Checking. If in doubt refer to the HI‐3593 Quick Start Guide and Users Guide for the proper use of these
dip switches. IC U3 on this main board is not populated so that the HI‐3593 daughter card has full access
to the SPI interface. For this application the 9‐pin D connector J2 is Not Used.
_____________________________________________________________________________________
3
Evaluation Board Block Diagram
Expansion
RESET Button Headers
(2x14) x 2
Dip SWs
Dip SWs (6)
(4)
_____________________________________________________________________________________
4
Initial Board Set up
1. Connect a +3.3V power supply to TP1 and ground to TP6. The HI‐3593 uses +3.3V and this is
the only power supply needed by this demo since the HI‐3593 includes an on‐chip DC‐DC
converter which generates the +5V and ‐5V for the ARINC transmit levels.
2. Connect the RS‐232 cable to the board and the PC. Some features are only available using
Console commands entered through the serial port. To view ARINC messages, Control and
Status registers and enter optional commands, use a terminal program such as
HyperTerminal. Configure the communication for 115200 Baud, 8 bits, No Parity, No
handshaking.
JPR3 – shorted. Removing this jumper opens the VDD path only to the HI‐3593. This
jumper provides a way to measure the HI‐3593 power supply current ICC.
_____________________________________________________________________________________
5
J2 1‐2 – This configures the ACLK signal to come from the on‐board OSC U16. To use an
external clock source remove this jumper and connect an external clock source to J2 – 2.
Power On Reset
For normal operation ensure SW2 – 4 (MRST) is in the open position otherwise the MCU will be held in
the reset state. The purpose of this MRST Dip switch is to allow easy interfacing of an external MCU to
the HI‐3593 (the SPI signals from the Freescale MCU will be forced into high impedance so as not to
conflict with an external MCU). For normal operation keep this switch open and use the RESET button to
reset the MCU during testing.
Some jumpers do not apply to the HI‐3593 so they will typically be shown as NA.
JP1 ‐ NA
JP2 ‐ NA
JP3 ‐ VDD jumper to J5 VLOGIC. Removing JP3 can be used to measure ICC.
JP4 ‐ NA
JP5 ‐ NA
JP7 ‐ NA.
Mode Selection
_____________________________________________________________________________________
6
OPT2 switch Receiver Label, Priority Label Enable
Open=Enables label recognition. This includes the 256 possible labels and also the three Priority
Label Mail Boxes in both Receiver‐1 and Receiver‐2.
This program configures the Transmitter, Reciever‐1 and Receiver‐2 to High or Low speed
according to this switch setting.
LED Indicators
LEDs 1‐8 show the program revision after a reset and also status information during the demo
execution. The format for the program revision is
For program revision 1.0, LED5 will be turned on for two seconds before the program continues. The
program also displays the program revision on the Console.
The red LED8 is used to show a fault if the program cannot initialize the HI‐3593. After performing a MR
the program checks the transmit status register for the default value 0x01. If this value is not read the
program turns on the red LED and enters a dead loop.
LED7 will usually flash at a one second interval to show the program is running. For Mode‐1 and
Mode‐2, LEDs 5‐7 are reconfigured to blink when a Priority Label is received by either Receiver‐1 or
Receiver‐2:
_____________________________________________________________________________________
7
Priority Lable‐1 = LED5
LEDs 1‐4 show the last upper nibble of the transmitted LSB byte.
Mode Descriptions
There are six valid demo modes selectable by the Mode‐0, Mode‐1 and Mode‐2 Dip switches. Set the
switches according to the desired mode, ARINC speed and Receiver Parity checking and power cycle the
board or press the RESET button on the main board.
This is a simple test program that cycles the LEDs 1 ‐ 8 on briefly to verify operation. LED7 will flash
every second independently in addition to the normal flash. Pressing down SW‐1 will stop the sequence
and turn on LED1. Pressing SW 2‐4 will turn on LEDs 2‐4 respectively. This is a way to verify that the push
button switches work.
This mode demonstrates most of the capabilities in the HI‐3593. It first checks the dip switches and
configures the Transmitter and both Receiver control registers for Transmit Parity, Label enable/disable,
ARINC low/ high speed. Both receivers are also configured depending on the switch settings. The initial
console screen looks similar to this, depending on the switch settings:
Fast Speed
Receiver-1 Parity is Enabled
Receiver-2 Parity is Disabled
All labels are Disabled
_____________________________________________________________________________________
8
--- Button Commands ---
SW-1 or Space Bar to Display Status and Control Registers
SW-2 to Pause
SW-3 to Display Label Memory
Pressing SW‐1 will start the program to begin transmitting messages with incrementing data. The
console output shows the TX message and three data bytes and the Label byte as shown below. These
data values are in hex format by default. This demo mode copies the LSB byte to the Label byte in the
transmit buffer before transmitting the message to allow testing Label reception. Label reception is
enabled if the OPT2 switch is in the open position.
Transmitting
>
>TX Data:00 00 00 Label:30
>TX Data:00 00 01 Label:01
>TX Data:00 00 02 Label:02
Pressing SW‐1, SW‐2 or SW‐3 causes the program to pause and print out status information on the
Console. For example, pressing SW‐1 or optionally pressing the Space Bar on the console pauses the
transmissions and prints out the contents of the HI‐3593 control and status registers as follows.
9
PL2 Match 1 Reg 0xB0
PL2 Match 2 Reg 0xD0
PL2 Match 3 Reg 0xFF
Press SW4 or spacebar to continue
Pressing SW-3 displays the contents of the Label memory for both
receivers as shown:
Receiver 1 Labels
Labels 0 - 63: 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
Labels 64-127: 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
Labels 128-191: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
Labels 192-255: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
Receiver 2 Labels
Labels 0 - 63: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
Labels 64-127: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
Labels 128-191: 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
Labels 192-255: 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
Press Button-4 to Resume
While transmitting, Console commands are available by pressing the upper or lower case letter of the
Console command. Entering these commands on‐the‐fly alters the transmission characteristics such as
enabling or disabling Parity, reversing the label field bit order of either the transmitter or the receiver, or
enabling the SDON feature. The SDON feature allows filtering on the receiver data bits 9 and 10 based
on the Receiver Control Register setting of SD9 and SD10. A short message on the Console shows the
new status of any new command entered.
Using the on‐the‐fly Console commands while viewing the transmitter signal on an oscilloscope provides
an easy way to learn how the control register configuration bits affects the data pattern. Keep in mind
the OPT1 and OTP2 switches for Transmit Parity and Label recognition are only sampled immediately
after a reset. To change these settings first make the change and then press the RESET button.
While transmitting, it is possible to press the H key on the Console to display the help screen.
10
R = RFLIP Toggle on/off
S = SDON, SD9, SD10 Toggle on/off
H = This Help Page
Space Bar = Display Status and Control regs
I = Increment Message and Transmit. Explorer Mode - ONLY!
M = Enter Custom Message. Explorer Mode – ONLY!
ENTER= Transmit next message. Explorer Mode – ONLY!
The last three Console commands listed on the help screen (I, M and ENTER) are not available in this
mode. Those commands will be discussed in the Mode‐ 3 and Mode‐ 4 sections later.
By connecting an external ARINC source to one of the receiver inputs the program will also display
received ARINC messages. Demonstrate this by connecting the on‐board transmitter output to one of
the receiver inputs using two clip leads. Connect the transmitter to the Receiver‐2 input as follows:
This output shows a case where a Priority Label was received in addition to the regular message:
Mode‐2 is almost identical to Mode‐1 with the exception that the SELFTEST bit in the transmit control
register is set. This enables an internal digital loop back feature. In this mode no external transmitter
data will be outputted. Also, the normal data from the transmitter will be received on Receiver‐1 and an
inverted copy will be received on Receiver‐2 automatically. SELF‐TEST or digital loop back is very useful
when bringing up new hardware. Using the SELF‐TEST provides a means of testing the device at the
local level by enabling transmitter data to be routed internally to the receive FIFO so that software can
be tested without actually having an external ARINC source.
The first few messages on the console will appear similar to this:
_____________________________________________________________________________________
11
Transmitting
>
>TX Data:00 00 00 Label:30 (initial Label is 0x30)
>Rec-1 Data:00 00 00 Label:30
>Rec-2 Data:FF FF FF Label:CF
>
>TX Data:00 00 01 Label:01 (Label changes to LSB)
>Rec-1 Data:00 00 01 Label:01
>Rec-2 Data:FF FF FE Label:FE
>
>TX Data:00 00 02 Label:02
>Rec-1 Data:00 00 02 Label:02
>Rec-2 Data:FF FF FD Label:FD
The HI 3593 Explorer Mode‐3 allows greater control over the transmitted and received messages.
Mode‐3 shares much of the same functionality of Mode‐1 and Mode‐2. The Dip switches are defined the
same as Mode‐1 and Mode‐2 and most of the SW buttons and Console commands are the same. The
valid commands are listed on the Console output after a reset.
Both receivers are enabled and are configured according to the Dip switches. In addition some of the
receiver and transmitter options can be altered by entering Console commands. The transmitter
transmits a single message at a time by pressing SW‐2 or by pressing the ENTER key on the Console.
Between the dip switch settings and the on‐the‐fly Console commands, a wide variety of message types
can be exercised to learn how the HI‐3593 works.
Connect the transmitter to the Receiver‐2 input pins on the connectors as follows:
Press the RESET button. A similar header screen will be shown on the
Console
Explorer Mode
_____________________________________________________________________________________
12
Fast Speed
Receiver-1 Parity is Enabled
Receiver-2 Parity is Disabled
All labels are Enabled
Press the ENTER key on the Console or press SW‐2 to transmit the message currently in the transmit
buffer. The default message in the transmit buffer will be: 00 00 00 30 and this default message will be
re transmitted each time the ENTER key or SW‐2 is pressed. There are two ways to alter the contents of
the transmit buffer. One is to use the Increment data Console command “I” and the other way is to use
the Custom Message Console command “M”.
>Command M
To Transmit, enter 3 bytes followed by a label byte followed by ENTER
Format: Bits32-25, Bits24-17, Bits16-9, LABEL
:Example: 01 23 45 67 ENTER
:
Enter 8 valid hex digits (0‐F). The program displays each digit as it is pressed then a “Press ENTER”
prompt will be displayed. Press the ENTER key to transmit this new message.
13
>TX Data:12 34 56 Label:78
This transmits the message 0x12, 0x34, 0x56 with Label 0x78. The actual data on the SPI interface will be
0x0C (Opcode), 0x12, 0x34, 0x56, 0x78 and follows the same order shown on the HI‐3593 data sheet
figure 1, example 1. This new message will also be copied to the transmit buffer. Pressing the ENTER key
or pressing SW‐2 retransmits this new message from now on.
Notice that although there was a TX message transmitted, there was no message received by either
receiver. This is because labels were enabled by OTP2 in the open position. Enter message 12 34 56 80
using the M Console command. Receiver‐2 should have received the message now. This is because the
label memory in this program is configured so labels 0‐127 (0x00‐0x7F) are set for Receiver‐1 and labels
128‐255 (0x80‐0xFF) are set for Receiver‐2. This message with label 80h is now enabled to be received
because the label 128(Decimal) is set in the label memory.
Enter the R Console command to toggle the RFLIP bit and transmit a message using the ENTER
command. Notice the label value changed from 0x80 to 0x01. By viewing the actual data on an
oscilloscope, you can also see the effect of changing the Parity, TFLIP, RFLIP and DSON bits by using the
Console commands to alter these bits and then re transmitting the new message. These commands
toggle the corresponding bits on or off, depending on the previous state.
The I Console command is very simple; it just increments the current value in the transmit buffer and
transmits that message.
_____________________________________________________________________________________
14
Mode‐7 (Serial Commands)
Setting all the Mode switches to the open position enables Mode‐7. These are simple optional test
functions which could be easily expanded to perform other customized tests. A few simple examples
are provided:
Enter Selection:
_____________________________________________________________________________________
15
HI‐3593 demo CodeWarrior™ Software Project
The software project is built with Freescale’s CodeWarrior version 5.9.0 using the free limited 32K
version. The current code size of the demo is approximately 16K. The main functions are in main.c and
the low level HI‐3593 drivers are in the 3593Driver.c file. The software project “HI‐3593 Demo” will
normally be distributed in a zip file on a CD‐ROM with the same name. To develop, debug and
download this software into the board a debug cable is necessary. It is not provided in this kit. To
purchase this cable, go to the PE Micro website or purchase it from Digi‐Key.
Project Files
Source Files
main.c Main code
3593Driver.C SPI low‐level drivers for the HI‐3593
Peripherals.c GPIO, PLL frequency setup and SPI configuration
BoardTest.c Board Test functions
Uart.c Low‐level UART drivers
datapage.c Freescale™ IDE support file
Include Files
Main.h
3593Driver.h HI‐3593 header
Peripherals.h
BoardTest.H
Uart.h
Common.h Common defines for the project
Derivative.h Freescale™ IDE support file
Mc9s12xdt512.h Freescale™ IDE target part support file
_____________________________________________________________________________________
16
CodeWarrior™ and Software Project Setup:
1. Download and install the CodeWarrior™ IDE from the Freescale website. The download links are
provided below.
2. Unzip the HI‐3593 zip file into the directory you plan to use for your project.
3. Navigate to the HI‐3593 project folder and double click the HI‐3593 Demo.mcp project file to
launch this project with CodeWarrior. The IDE should open with the project files on the left side
of the window.
4. Click Make from the Project menu to rebuild the project. The project should build without
errors. You may receive a dead assignment warning if for example some defines are set to a zero
value.
5. Install the PE Micro USB Multilink Interface cable per the instructions.
6. Plug the USB Multilink 6‐pin debug cable into the J9 debug connector and power up the board
with 3.3V.
7. Download the program by clicking Debug from the Project menu. The first time the program is
downloaded the debugger will need to be configured for the USB Multilink cable. After
downloading is complete, the debugger window should be displayed with the first line in main.c
highlighted. Press the green arrow button to run the program. Since the program has been
loaded, you can power down the board and re‐power the board and the program should run
automatically without the debugger.
_____________________________________________________________________________________
17
Holt HI‐3593 project loaded into CodeWarrior™ 5.9.0
The Freescale™ microcontroller data sheet and other documentation can be found at this link:
http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=S12XD&tid=16bhp
A Free 32K limited version of the CodeWarrior™ IDE from Freescale™ is available:
_____________________________________________________________________________________
18
http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=CW‐HCS12X&fsrch=1
http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=USBMULTILINKBDM&parentCod
e=S12XD&fpsp=1
http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=USBMULTILINKBDME‐ND
References:
http://www.holtic.com/
_____________________________________________________________________________________
19
BILL OF MATERIALS
Bill of
Materials HI-3593 Daughter Card rev B Revised: 2/28/2012
_____________________________________________________________________________________
20
JPR3 TP2 R7 40.2K 1/8W
VDD3_3 1 2 VDD Header 1 x 6
+ C10 C8
6
AN‐160 Rev. C
Optional Ext. MCU I/F J3
J10 47uF 16V .01uF 16V .1uF 16V 5
44
43
C7 U3 4
1 3
2 MR 2
VDD
VDD
3 nCS 2 1
4 SI RIN1A-40
5 SCK 3 J7
6 SO RIN1A
Receiver 1
7 R1INT MR 10 4
8 R2INT MR RIN1B
9 ECLK nCS 12 5
10 SI 13 nCS RIN1B-40
SCK 14 SI R6 40.2K 1/8W
SO 15 SCK
SO R8 40.2K 1/8W
HEADER 10
MB1-1 17
VDD3_3 MB1-2 18 MB1-1 6
MB1-3 19 MB1-2 RIN2A-40 Header 1 x 6
C9 C2 MB2-1 20 MB1-3 7 6
.01uF + MB2-2 21 MB2-1 RIN2A 5
MB2-3 22 MB2-2 8 4
4.7uF 16V ACLK MB2-3 RIN2B 3
TP1 9 2
RIN2B-40 1
TEMPTY 27
21
TFULL 28 TEMPTY J8
U16 TFULL
Receiver 2
2
1 4 R2INT 23 R9 40.2K 1/8W
2 E/D VDD 3 1 3 R2FLAG 24 R2INT
GND OUT R2FLAG
ECLK R1INT 25 33 R16 31.6 ohm 1/8W
OSC, 4 PIN, 4MHz J2 R1FLAG 26 R1INT AMPA
backside of pcb JPR3 R1FLAG 32
TXAOUT 6
13 14 13 14 R2INT GND
This board plugs on to the SPI Demo board.
15 16 GND 15 16
Input 3.3V on VDD TP1 on Main SPI Demo Board.
39
35
40
17 18 17 18
19 20 R1FLAG 19 20 TEMPTY Default Jumpers:
21 22 R2FLAG 21 22 MB1-2 J2 1-2
23 24 ECLK 23 24 MB1-3 C4 J3 1-2
25 26 25 26 MB2-2
27 28 27 28 MB2-3 47uF 10V CER low ESR
Title
CONN RECT 14x2 CONN RECT 14x2 C3 HI-3593 ARINC Dual Receiv er/Single Transmitter Demo Board
47uF 10V CER low ESR
MOUNT ON BOTTOM SIDE MOUNT ON BOTTOM SIDE Size Document Number Rev
_____________________________________________________________________________________
A <Doc> B
Ite Qt Description
m y Reference DigiKey Mfr P/N
_____________________________________________________________________________________
22
11 Res 680, 1/8W 5% R1-R6,R8,R11,R12,R14,R16 RHM680ARCT-
28 0805 SMD ND MCR10EZPJ681
2 Res, 4.02 OHM 1% R9,R10 311-4.02CRCT- RC0805FR-
29 1/8W 0805 ND 074R02L
2 Res 60.4 Ohm 1/4W R15,R19 RHM60.4BDCT- MCR25JZHF60R
30 1% 1210 SMD ND 4
1 Res 0 ohm, 1/8W 5% R7 RHM0.0ARCT-
31 0805 SMD ND MCR10EZPJ000
1 Res 1.5M, 1/8W 5% R39 RHM1.5MARCT- RHM1.5MARCT-
32 0805 SMD ND ND
1 Res 4.7K, 1/8W 1% R28 RHM4.70KCRCT- MCR10EZPF470
33 0805 SMD ND 1
1 DIP Switch 4-Pos SW2 CT2194LPST-ND CTS 219-4LPST
34 Slide SMD
1 DIP Switch 6-Pos SW1 CT2196LPST-ND CTS 2196LPST
35 Slide SMD
5 Switch Tactile SPST- S1,S2,S3,S4,RESET BUTTON
36 NO 0.05A 32V CKN9195CT-ND KSC222J LFS
1 U2 Teconn
Polyzen 5.6V PPTC ZEN056V130A24 ZEN056V130A2
37 Zener SMD LSCT-ND 4LS
2 Test Point, Red TP1, TP9 5010K-ND Keystone 5010
Insulator, 0.062"
38 hole
3 Test Point, Black TP5,TP6,TP8 5011K-KD Keystone 5011
39 Insulator, 0.062" hole
1 Test Point White TP2 Keystone 5012
40 Insulator, 0.062" hole 5012K-ND
2 Test Point Orange TP3,TP4 Keystone 5013
41 Insulator, 0.062" hole 5013K-ND
1 IC, U1 MC9S12XDT512 MC9S12XDT512
MC9S12XDT512CAA CAA-ND CAA-ND
80 QFP 16-Bit MCU,
42 512K Flash 0-70C
1 IC, MAX3232CSE U4 MAX232CSE+- Texas Inst
44 Narrow 16-SOIC ND MAX3232CDR
1 Crystal 24MHz, SMD, Y1 631-1020-1-ND FOXSDLF/240F-
45 50ppm 20pF load 20
1 Crystal 4.00MHz, Y2
SMD, 50ppm 20pF
46 load 631-1005-1-ND FOXSDLF/040
1 OSC 24MHz, 5.0V, OSC1 ( Do Not Install)
47 1/2 SIZE XC275-ND ECS-2200B-240
48 5 3M Bumpon Install at four corners and center. SJ5746-0-ND 3M: SJ61A1
_____________________________________________________________________________________
23
_____________________________________________________________________________________
24
REVISION HISTORY
AN-160, Rev. A 3-4-11 Updated revision number text on screen console example
AN-160, Rev. C 6-14-12 Update daughter card photo and BOM for SPI demo board.
_____________________________________________________________________________________
25