HOLT HI-3593 ARINC 429 3.3V User manual

_____________________________________________________________________________________
AN‐160Rev.CHOLTINTEGRATEDCIRCUITS
1
23351 Madero,
Mission Viejo, CA
92691. USA.
Tel: + 1 949 859 8800
Fax: + 1 949 859 9643
Web: www.holtic.com
HI‐3593ARINC4293.3VDualReceiver,
SingleTransmitterwithSPI
EvaluationBoard
UsersGuide
June14,2012
Downloaded from Arrow.com.

_____________________________________________________________________________________
AN‐160Rev.CHOLTINTEGRATEDCIRCUITS
2
INTRODUCTION
TheHoltHI‐3593ARINC429EvaluationBoardcanbeusedtoevaluatemostofthefeaturesoftheHI‐
3593ARINCDualReceiverandSingleTransmitterIC.TheHI‐3593featuresanon‐chipDC‐DCconverter
whichgeneratesboth+5Vand‐5Vtosupplythebipolardifferentialvoltagelevelsneededtomeetthe
ARINC429Buslevelsfromasingle3.3Vsupplyvoltage.Themainboard“GeneralPurposeSPI
EvaluationBoard”includesswitches,pushbuttonswitchesandLEDstohelpnavigatetheoperating
modesandconfirmdataandstatusinformation.AFreescaleMC9S12XDT512microcontrolleronthe
mainboardcommunicateswiththeHI‐3593throughtheSPIinterface.ASerialUARTportisprovided
whichenablesviewingmessagesandstatusinformationorenteringofoptionalcommandsusingany
terminalprogramsuchasHyper‐Terminal.TheHI‐3593EvaluationBoardisadaughtercardthatplugson
totheGeneralPurposeSPIboardviatwo26pinconnectors.
ThisUsersManualprovidesamoredetaileddescriptionoftheevaluationboardanddemoprogramthan
intheQuickStartGuide.
KitContents
QuickStartGuide.
GeneralPurposeSPIEvaluationboardandschematic.
HI‐3593EvaluationBoard(daughtercard)andschematic.
HI‐3593DataSheet.
RS‐2329PinSerialCable.
DemoProjectcompatiblewithFreescale™CodeWarrior™.
ThisHI‐3593UsersGuide.
HI‐3593ApplicationNote.
Downloaded from Arrow.com.Downloaded from Arrow.com.

_____________________________________________________________________________________
AN‐160Rev.CHOLTINTEGRATEDCIRCUITS
3
Demoboardsoftwarefeatures
TransmissionandReceptionofARINClowspeedandhighspeedmessages.
SelectableODDorEVENparity.
SelfTestmode(Internaldigitalloopback).
256receiverlabels.
Receiverlabelreversebitorder.
Transmitterlabelreversebitorder.
ReceiverPriorityLabelMailboxes.
ReceiverfilteronSD9orSD10.
ARINCACLKprogrammabledivider.
GeneralPurposeSPIBoard
ThebottommainboardisageneralpurposeboardusedtodemonstrateavarietyHoltdevices.
TheschematicofthisboardwillhaveslightlydifferentreferencesforsomeoftheDipswitches.Forthis
applicationBITRATE1isusedforReceiver‐1ParityCheckingandBITRATE2isusedforReceiver‐2Parity
Checking.IfindoubtrefertotheHI‐3593QuickStartGuideandUsersGuidefortheproperuseofthese
dipswitches.ICU3onthismainboardisnotpopulatedsothattheHI‐3593daughtercardhasfullaccess
totheSPIinterface.Forthisapplicationthe9‐pinDconnectorJ2isNotUsed.
Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.

_____________________________________________________________________________________
AN‐160Rev.CHOLTINTEGRATEDCIRCUITS
4
EvaluationBoardBlockDiagram
MC9S12XD
16 Bit MCU
HOLT
HI-3593
SPI (4)
R1INT,R2INT,MB1-1,MB2-1
RS-232 Console
USB Debug Port
LEDs (10)
User Push
Button
Switches (4)
Dip SWs
(4) Dip SWs (6)
Expansion
Headers
(2x14) x 2
RESET Button
Transmitter
Receiver-2
Receiver-1
+3.3V
ARINC TX BUS
ARINC RX BUS
ARINC RX BUS
Single Supply
+3.3V
DC / DC
Converter
MR
4MHz
OSC
Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.

_____________________________________________________________________________________
AN‐160Rev.CHOLTINTEGRATEDCIRCUITS
5
InitialBoardSetup
1. Connecta+3.3VpowersupplytoTP1andgroundtoTP6.TheHI‐3593uses+3.3Vandthisis
theonlypowersupplyneededbythisdemosincetheHI‐3593includesanon‐chipDC‐DC
converterwhichgeneratesthe+5Vand‐5VfortheARINCtransmitlevels.
2. ConnecttheRS‐232cabletotheboardandthePC.Somefeaturesareonlyavailableusing
Consolecommandsenteredthroughtheserialport.ToviewARINCmessages,Controland
Statusregistersandenteroptionalcommands,useaterminalprogramsuchas
HyperTerminal.Configurethecommunicationfor115200Baud,8bits,NoParity,No
handshaking.
3. HI‐3593daughtercardfactorydefaultjumpersettings:
JPR3–shorted.RemovingthisjumperopenstheVDDpathonlytotheHI‐3593.This
jumperprovidesawaytomeasuretheHI‐3593powersupplycurrentICC.
Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.

_____________________________________________________________________________________
AN‐160Rev.CHOLTINTEGRATEDCIRCUITS
6
J21‐2–ThisconfigurestheACLKsignaltocomefromtheon‐boardOSCU16.Tousean
externalclocksourceremovethisjumperandconnectanexternalclocksourcetoJ2–2.
MainBoardJumpers
PowerOnReset
FornormaloperationensureSW2–4(MRST)isintheopenpositionotherwisetheMCUwillbeheldin
theresetstate.ThepurposeofthisMRSTDipswitchistoalloweasyinterfacingofanexternalMCUto
theHI‐3593(theSPIsignalsfromtheFreescaleMCUwillbeforcedintohighimpedancesoasnotto
conflictwithanexternalMCU).FornormaloperationkeepthisswitchopenandusetheRESETbuttonto
resettheMCUduringtesting.
SomejumpersdonotapplytotheHI‐3593sotheywilltypicallybeshownasNA.
JP1‐NA
JP2‐NA
JP3‐VDDjumpertoJ5VLOGIC.RemovingJP3canbeusedtomeasureICC.
JP4‐NA
JP5‐NA
JP7‐NA.
ModeSelection
Mode‐2 Mode‐1Mode‐0Mode
00 0 BoardTest
00 1 TransmitMessageswithLabels
01 0 TransmitMessageswithLabelsSELF‐TEST
01 1 HI3593ExplorerMode
10 0 HI3593ExplorerSELF‐TESTMode
11 1 SerialConsoleCommands
OPT1switch TransmitterPartyEnable
Open=TransmitParityEnabled.
Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.

_____________________________________________________________________________________
AN‐160Rev.CHOLTINTEGRATEDCIRCUITS
7
OPT2switch ReceiverLabel,PriorityLabelEnable
Open=Enableslabelrecognition.Thisincludesthe256possiblelabelsandalsothethreePriority
LabelMailBoxesinbothReceiver‐1andReceiver‐2.
BITRATE0switch ARINCHighorLowSpeedselection
Open=LowSpeed.
Closed=HighSpeed.
ThisprogramconfigurestheTransmitter,Reciever‐1andReceiver‐2toHighorLowspeed
accordingtothisswitchsetting.
BITRATE1switch Receiver‐1ParityChecking
Open=Receiver‐1paritycheckingEnabled.
Closed=Receiver‐1ParitycheckingDisabled.
BITRATE2switch Receiver‐2ParityChecking
Open=Receiver‐2paritycheckingEnabled.
Closed=Receiver‐2ParitycheckingDisabled.
PushButtonsSW1‐SW4
Dependingonselectedmode,thesebuttonsperformspecifictasks.
LEDIndicators
LEDs1‐8showtheprogramrevisionafteraresetandalsostatusinformationduringthedemo
execution.Theformatfortheprogramrevisionis
LED8–LED5=digit,LED4‐LED1=subdigit
Forprogramrevision1.0,LED5willbeturnedonfortwosecondsbeforetheprogramcontinues.The
programalsodisplaystheprogramrevisionontheConsole.
TheredLED8isusedtoshowafaultiftheprogramcannotinitializetheHI‐3593.AfterperformingaMR
theprogramchecksthetransmitstatusregisterforthedefaultvalue0x01.Ifthisvalueisnotreadthe
programturnsontheredLEDandentersadeadloop.
LED7willusuallyflashataonesecondintervaltoshowtheprogramisrunning.ForMode‐1and
Mode‐2,LEDs5‐7arereconfiguredtoblinkwhenaPriorityLabelisreceivedbyeitherReceiver‐1or
Receiver‐2:
Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.

_____________________________________________________________________________________
AN‐160Rev.CHOLTINTEGRATEDCIRCUITS
8
PriorityLable‐1=LED5
PriorityLabel‐2=LED6
PriorityLabel‐3=LED7
LEDs1‐4showthelastuppernibbleofthetransmittedLSBbyte.
ModeDescriptions
TherearesixvaliddemomodesselectablebytheMode‐0,Mode‐1andMode‐2Dipswitches.Setthe
switchesaccordingtothedesiredmode,ARINCspeedandReceiverParitycheckingandpowercyclethe
boardorpresstheRESETbuttononthemainboard.
Mode‐0 BoardTest:
ThisisasimpletestprogramthatcyclestheLEDs1‐8onbrieflytoverifyoperation.LED7willflash
everysecondindependentlyinadditiontothenormalflash.PressingdownSW‐1willstopthesequence
andturnonLED1.PressingSW2‐4willturnonLEDs2‐4respectively.Thisisawaytoverifythatthepush
buttonswitcheswork.
Theoutputontheconsolewillbesimilarto:
Holt HI-3593 Demonstration Software Revision: X.X
Board Test
Mode‐1 TransmitMessageswithLabels
ThismodedemonstratesmostofthecapabilitiesintheHI‐3593.Itfirstchecksthedipswitchesand
configurestheTransmitterandbothReceivercontrolregistersforTransmitParity,Labelenable/disable,
ARINClow/highspeed.Bothreceiversarealsoconfigureddependingontheswitchsettings.Theinitial
consolescreenlookssimilartothis,dependingontheswitchsettings:
Holt HI-3593 Demonstration Software Revision: X.X
Transmit & Receive With Labels Mode
Fast Speed
Receiver-1 Parity is Enabled
Receiver-2 Parity is Disabled
All labels are Disabled
Press Button-1 to start initially
Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.

_____________________________________________________________________________________
AN‐160Rev.CHOLTINTEGRATEDCIRCUITS
9
--- Button Commands ---
SW-1 or Space Bar to Display Status and Control Registers
SW-2 to Pause
SW-3 to Display Label Memory
--- Console Commands Help ---
P = Parity Toggle on/off
T = TFLIP Toggle on/off
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!
PressingSW‐1willstarttheprogramtobegintransmittingmessageswithincrementingdata.The
consoleoutputshowstheTXmessageandthreedatabytesandtheLabelbyteasshownbelow.These
datavaluesareinhexformatbydefault.ThisdemomodecopiestheLSBbytetotheLabelbyteinthe
transmitbufferbeforetransmittingthemessagetoallowtestingLabelreception.Labelreceptionis
enablediftheOPT2switchisintheopenposition.
Transmitting
>
>TX Data:00 00 00 Label:30
>TX Data:00 00 01 Label:01
>TX Data:00 00 02 Label:02
PressingSW‐1,SW‐2orSW‐3causestheprogramtopauseandprintoutstatusinformationonthe
Console.Forexample,pressingSW‐1oroptionallypressingtheSpaceBarontheconsolepausesthe
transmissionsandprintsoutthecontentsoftheHI‐3593controlandstatusregistersasfollows.
HI-3593 Status, Control Registers
REC1 Status Reg 0x01
REC1 Control Reg 0x86
REC2 Status Reg 0x01
REC2 Control Reg 0x86
Transmit Status Reg 0x01
Transmit Control Reg 0x60
FLAG Int Assig 0x00
ACLK Divisor 0x08
PL1 Match 1 Reg 0x20
PL1 Match 2 Reg 0x40
PL1 Match 3 Reg 0x7F
Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.

_____________________________________________________________________________________
AN‐160Rev.CHOLTINTEGRATEDCIRCUITS
10
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
On‐The‐FlyConsoleCommands
Whiletransmitting,Consolecommandsareavailablebypressingtheupperorlowercaseletterofthe
Consolecommand.Enteringthesecommandson‐the‐flyaltersthetransmissioncharacteristicssuchas
enablingordisablingParity,reversingthelabelfieldbitorderofeitherthetransmitterorthereceiver,or
enablingtheSDONfeature.TheSDONfeatureallowsfilteringonthereceiverdatabits9and10based
ontheReceiverControlRegistersettingofSD9andSD10.AshortmessageontheConsoleshowsthe
newstatusofanynewcommandentered.
Usingtheon‐the‐flyConsolecommandswhileviewingthetransmittersignalonanoscilloscopeprovides
aneasywaytolearnhowthecontrolregisterconfigurationbitsaffectsthedatapattern.Keepinmind
theOPT1andOTP2switchesforTransmitParityandLabelrecognitionareonlysampledimmediately
afterareset.TochangethesesettingsfirstmakethechangeandthenpresstheRESETbutton.
Whiletransmitting,itispossibletopresstheHkeyontheConsoletodisplaythehelpscreen.
ConsoleCommandsHelpScreen:
--- Console Commands Help ---
P = Parity Toggle on/off
T = TFLIP Toggle on/off
Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.

_____________________________________________________________________________________
AN‐160Rev.CHOLTINTEGRATEDCIRCUITS
11
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!
Press Space Bar or Button-4 to resume
ThelastthreeConsolecommandslistedonthehelpscreen(I,MandENTER)arenotavailableinthis
mode.ThosecommandswillbediscussedintheMode‐3andMode‐4sectionslater.
ByconnectinganexternalARINCsourcetooneofthereceiverinputstheprogramwillalsodisplay
receivedARINCmessages.Demonstratethisbyconnectingtheon‐boardtransmitteroutputtooneof
thereceiverinputsusingtwoclipleads.ConnectthetransmittertotheReceiver‐2inputasfollows:
J9-5 to J8-5 (TXAOUT to RIN2A)
J9-4 to J8-4 (TXBOUT to RIN2B)
ThisoutputshowsacasewhereaPriorityLabelwasreceivedinadditiontotheregularmessage:
>TX Data:00 0F B0 Label:B0
>Rec-2 Data:00 0F B0 Label:B0
>PL2-1 Data:00 0F B0 Match:B0 ( Priority Label 1 from Receiver-2)
Mode‐2 TransmitMessageswithLabelsSELF‐TEST
Mode‐2isalmostidenticaltoMode‐1withtheexceptionthattheSELFTESTbitinthetransmitcontrol
registerisset.Thisenablesaninternaldigitalloopbackfeature.Inthismodenoexternaltransmitter
datawillbeoutputted.Also,thenormaldatafromthetransmitterwillbereceivedonReceiver‐1andan
invertedcopywillbereceivedonReceiver‐2automatically.SELF‐TESTordigitalloopbackisveryuseful
whenbringingupnewhardware.UsingtheSELF‐TESTprovidesameansoftestingthedeviceatthe
locallevelbyenablingtransmitterdatatoberoutedinternallytothereceiveFIFOsothatsoftwarecan
betestedwithoutactuallyhavinganexternalARINCsource.
Theheaderontheconsoledisplaysthisadditionalmessage:
SELF-TEST, Internal Digital Loop-back, No data is transmitted
externally
Thefirstfewmessagesontheconsolewillappearsimilartothis:
Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.

_____________________________________________________________________________________
AN‐160Rev.CHOLTINTEGRATEDCIRCUITS
12
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
Mode‐3 HI3593ExplorerMode
TheHI3593ExplorerMode‐3allowsgreatercontroloverthetransmittedandreceivedmessages.
Mode‐3sharesmuchofthesamefunctionalityofMode‐1andMode‐2.TheDipswitchesaredefinedthe
sameasMode‐1andMode‐2andmostoftheSWbuttonsandConsolecommandsarethesame.The
validcommandsarelistedontheConsoleoutputafterareset.
BothreceiversareenabledandareconfiguredaccordingtotheDipswitches.Inadditionsomeofthe
receiverandtransmitteroptionscanbealteredbyenteringConsolecommands.Thetransmitter
transmitsasinglemessageatatimebypressingSW‐2orbypressingtheENTERkeyontheConsole.
Betweenthedipswitchsettingsandtheon‐the‐flyConsolecommands,awidevarietyofmessagetypes
canbeexercisedtolearnhowtheHI‐3593works.
ForthisDemo,configurethefollowing:
EnableLabelsbysettingtheOPT2switchtotheopenposition.
ConnectthetransmittertotheReceiver‐2inputpinsontheconnectorsasfollows:
J9-5 to J8-5 (TXAOUT to RIN2A)
J9-4 to J8-4 (TXBOUT to RIN2B)
Press the RESET button. A similar header screen will be shown on the
Console
Holt HI-3593 Demonstration Software Revision: 1.00
Explorer Mode
Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.

_____________________________________________________________________________________
AN‐160Rev.CHOLTINTEGRATEDCIRCUITS
13
Fast Speed
Receiver-1 Parity is Enabled
Receiver-2 Parity is Disabled
All labels are Enabled
--- Button Commands ---
SW-1 or spacebar to Display Status and Control Registers
SW-3 to Display Label Memory
--- Console Commands Help ---
P = Parity Toggle on/off
T = TFLIP Toggle on/off
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!
Press ENTER to Transmit or use the (T) command to enter a custom
message
>
PresstheENTERkeyontheConsoleorpressSW‐2totransmitthemessagecurrentlyinthetransmit
buffer.Thedefaultmessageinthetransmitbufferwillbe:00000030andthisdefaultmessagewillbe
retransmittedeachtimetheENTERkeyorSW‐2ispressed.Therearetwowaystoalterthecontentsof
thetransmitbuffer.OneistousetheIncrementdataConsolecommand“I”andtheotherwayistouse
theCustomMessageConsolecommand“M”.
PresstheMkeytogetthiscommandprompt:
>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
:
Enter8validhexdigits(0‐F).Theprogramdisplayseachdigitasitispressedthena“PressENTER”
promptwillbedisplayed.PresstheENTERkeytotransmitthisnewmessage.
:12 34 56 78 Press RETURN Transmitted..
>
Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.

_____________________________________________________________________________________
AN‐160Rev.CHOLTINTEGRATEDCIRCUITS
14
>TX Data:12 34 56 Label:78
Thistransmitsthemessage0x12,0x34,0x56withLabel0x78.TheactualdataontheSPIinterfacewillbe
0x0C(Opcode),0x12,0x34,0x56,0x78andfollowsthesameordershownontheHI‐3593datasheet
figure1,example1.Thisnewmessagewillalsobecopiedtothetransmitbuffer.PressingtheENTERkey
orpressingSW‐2retransmitsthisnewmessagefromnowon.
NoticethatalthoughtherewasaTXmessagetransmitted,therewasnomessagereceivedbyeither
receiver.ThisisbecauselabelswereenabledbyOTP2intheopenposition.Entermessage12345680
usingtheMConsolecommand.Receiver‐2shouldhavereceivedthemessagenow.Thisisbecausethe
labelmemoryinthisprogramisconfiguredsolabels0‐127(0x00‐0x7F)aresetforReceiver‐1andlabels
128‐255(0x80‐0xFF)aresetforReceiver‐2.Thismessagewithlabel80hisnowenabledtobereceived
becausethelabel128(Decimal)issetinthelabelmemory.
>TX Data:12 34 56 Label:80
>Rec-2 Data:12 34 56 Label:80 (label 80 was received)
EntertheRConsolecommandtotoggletheRFLIPbitandtransmitamessageusingtheENTER
command.Noticethelabelvaluechangedfrom0x80to0x01.Byviewingtheactualdataonan
oscilloscope,youcanalsoseetheeffectofchangingtheParity,TFLIP,RFLIPandDSONbitsbyusingthe
Consolecommandstoalterthesebitsandthenretransmittingthenewmessage.Thesecommands
togglethecorrespondingbitsonoroff,dependingonthepreviousstate.
TheIConsolecommandisverysimple;itjustincrementsthecurrentvalueinthetransmitbufferand
transmitsthatmessage.
Mode‐4–HI3593ExplorerModeSELF‐TEST
Mode‐4isidenticaltoMode‐3exceptitsetstheSELF‐TESTbit.
Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.

_____________________________________________________________________________________
AN‐160Rev.CHOLTINTEGRATEDCIRCUITS
15
Mode‐7(SerialCommands)
SettingalltheModeswitchestotheopenpositionenablesMode‐7.Thesearesimpleoptionaltest
functionswhichcouldbeeasilyexpandedtoperformothercustomizedtests.Afewsimpleexamples
areprovided:
******* HOLT HI-3593 Serial Console Commands *******
Input String Demo 0
Reset HI-3593 using the MR pin 1
Control and Status Register Dump 2
Initialize TCR, RCR1 and RCR2 3
Enter Selection:
HI‐3593DaughterCardstandaloneuse:
TousetheDaughterCardinstandalonemodewithoutconnectiontotheHoltGeneralPurposeSPImain
boarda10pinconnectorJ10isprovidedwithmostofthesignalsneededtoconnecttoanexternal
MCU.ConnectorsJ5andJ6canprovidesomeofthesignalsnotpresetonJ10.
Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.

_____________________________________________________________________________________
AN‐160Rev.CHOLTINTEGRATEDCIRCUITS
16
HI‐3593demoCodeWarrior™SoftwareProject
ThesoftwareprojectisbuiltwithFreescale’sCodeWarriorversion5.9.0usingthefreelimited32K
version.Thecurrentcodesizeofthedemoisapproximately16K.Themainfunctionsareinmain.cand
thelowlevelHI‐3593driversareinthe3593Driver.cfile.Thesoftwareproject“HI‐3593Demo”will
normallybedistributedinazipfileonaCD‐ROMwiththesamename.Todevelop,debugand
downloadthissoftwareintotheboardadebugcableisnecessary.Itisnotprovidedinthiskit.To
purchasethiscable,gotothePEMicrowebsiteorpurchaseitfromDigi‐Key.
ProjectFiles
SourceFiles
main.c Maincode
3593Driver.C SPIlow‐leveldriversfortheHI‐3593
Peripherals.c GPIO,PLLfrequencysetupandSPIconfiguration
BoardTest.c BoardTestfunctions
Uart.c Low‐levelUARTdrivers
datapage.c Freescale™IDEsupportfile
IncludeFiles
Main.h
3593Driver.h HI‐3593header
Peripherals.h
BoardTest.H
Uart.h
Common.h Commondefinesfortheproject
Derivative.h Freescale™IDEsupportfile
Mc9s12xdt512.h Freescale™IDEtargetpartsupportfile
Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.

_____________________________________________________________________________________
AN‐160Rev.CHOLTINTEGRATEDCIRCUITS
17
CodeWarrior™andSoftwareProjectSetup:
1. DownloadandinstalltheCodeWarrior™IDEfromtheFreescalewebsite.Thedownloadlinksare
providedbelow.
2. UnziptheHI‐3593zipfileintothedirectoryyouplantouseforyourproject.
3. NavigatetotheHI‐3593projectfolderanddoubleclicktheHI‐3593Demo.mcpprojectfileto
launchthisprojectwithCodeWarrior.TheIDEshouldopenwiththeprojectfilesontheleftside
ofthewindow.
4. ClickMakefromtheProjectmenutorebuildtheproject.Theprojectshouldbuildwithout
errors.Youmayreceiveadeadassignmentwarningifforexamplesomedefinesaresettoazero
value.
5. InstallthePEMicroUSBMultilinkInterfacecablepertheinstructions.
6. PlugtheUSBMultilink6‐pindebugcableintotheJ9debugconnectorandpoweruptheboard
with3.3V.
7. DownloadtheprogrambyclickingDebugfromtheProjectmenu.Thefirsttimetheprogramis
downloadedthedebuggerwillneedtobeconfiguredfortheUSBMultilinkcable.After
downloadingiscomplete,thedebuggerwindowshouldbedisplayedwiththefirstlineinmain.c
highlighted.Pressthegreenarrowbuttontoruntheprogram.Sincetheprogramhasbeen
loaded,youcanpowerdowntheboardandre‐powertheboardandtheprogramshouldrun
automaticallywithoutthedebugger.
Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.

_____________________________________________________________________________________
AN‐160Rev.CHOLTINTEGRATEDCIRCUITS
18
HoltHI‐3593projectloadedintoCodeWarrior™5.9.0
Freescale™MC9S12XDT512xxxDevelopmentTools
TheFreescale™microcontrollerdatasheetandotherdocumentationcanbefoundatthislink:
http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=S12XD&tid=16bhp
Iftheselinksbecomeoutofdategoto:http://www.freescale.com/
andsearchforinformationon“S12XD:16‐BitAutomotiveMicrocontroller”.
AFree32KlimitedversionoftheCodeWarrior™IDEfromFreescale™isavailable:
Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.

_____________________________________________________________________________________
AN‐160Rev.CHOLTINTEGRATEDCIRCUITS
19
http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=CW‐HCS12X&fsrch=1
TheUSMultilinkdebuggercableusedforthisprojectis:
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/
Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.

_____________________________________________________________________________________
AN‐160Rev.CHOLTINTEGRATEDCIRCUITS
20
BILLOFMATERIALS
Bill of
Materials HI-3593 Daughter Card rev B Revised: 2/28/2012
Item Qty
Description Reference DigiKey Mfr P/N
1 1 PCB, Bare, Evaluation Board N/A --------
2 1 HI-3593PQT U3 Holt
3 1 4Mhz OSC, 6-SMD OSC1 631-1194-1-ND FOX: FX0-HC736R-4
4 2 Header, Female 2X14 0.1"
Pitch J5, J6 S7082-ND Sullins
5 3 Header, Male 1x6, 0.1" Pitch J7,J8,J9 S2012E-36-ND Sullins
6 1 Header, Male 1x10, 0.1" Pitch J10 S2012E-36-ND Sullins
7 1 Test Point, Black Insulator,
0.062" hole TP1, TP3 5011K-KD Keystone 5011
8 2 Test Point, Red Insulator,
0.062" hole TP2 5010K-ND Keystone 5010
9 1 Header, Male 1x2, 0.1" Pitch J3
10 1 Header, Male 1x3, 0.1" Pitch J2
11 2 Capacitor, Ceramic 10nF 10%
50V X7R 0805 C9, C10 399-1158-1-ND Kemet
C0805C103K5RACTU
12 1 Capacitor, Ceramic 0.1uF 20%
50V Z5U 0805 C8 399-1176-1-ND Kemet
C0805C104M5UACTU
13 2 Capacitor, CER 2.2uF 16V
SMD 0805, Low ESR C2, C5 587-1431-1-ND Yaiyo Yuden
EMK212B7225KG-T
13 1 Capacitor, CER 0.47uF 16V
SMD 0805, Low ESR C6 587-1282-1-ND Yaiyo Yuden
EMK212B7474KD-T
14 1 Capacitor, Tant 47uF 16V 20%
SMD 2917 C7 495-2251-6-ND Kemet
B45196H3476M409
2 Capacitor, CER 47uF 10V
20% Low ESR, SMT 1210 C3, C4 587-2783-1-ND Yaiyo Yuden
EMK325B7476MM-T
15 4 Resistor, 40.2K 1%, SMT 0805 R6, R7, R8,
R9 P40.2KCCT-ND ERJ‐6ENF4022V
16 2 Resistor, 31.6 ohm,1%, SMT
0805 R16, R17 P31.6CCT-ND ERJ‐6ENF31R6V
Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.
Table of contents
Other HOLT Computer Hardware manuals