Professional Documents
Culture Documents
Introduction:
TheHoltHI3717ARINC717EvaluationBoarddemonstratesmostofthefeaturesoftheHI3717A
ARINC717ProtocolIC.ARINC717isacommunicationprotocolusedbetweentheDigitalFlightData
AcquisitionUnit(DFDAU)andtheDigitalFlightDataRecorder(DFDR)usedonmostcommercialaircraft.
TheHI3717Arequiresasingle3.3Vpowerinput.ItfeaturesanonchipDCDCconverterwhich
generatesboth+5Vand5VtosupplythebipolardifferentialvoltagelevelsneededtomeettheARINC
717BipolarReturntoZero(BPRZ)Buslevels.AFreescaleMC9S12XDT512microcontroller
communicateswiththeHI3717AthroughtheSPIinterface.ThemainGeneralPurposeSPIEvaluation
BoardincludesswitchesandLEDstonavigatetheoperatingmodesandconfirmdataandstatus
information.ASerialUARTportontheMCUallowsdebuganddatamessagestobesenttoaPCusing
anyterminalprogram,suchasWindowsHyperTerminal.TheHI3717EvaluationBoardisadaughter
cardthatplugsontotheGeneralPurposeSPIboardviatwo26pinconnectors.
Thisguidesummarizeshowtogetsetupandrunningquickly.Additionalsupportmaterialandsoftware
areprovidedintheincludedCDROM.Sincethedemocodeispreprogrammedintotheflashinthe
microcontrollerthedemoisoperationalrightoutofthebox.Nosoftwaredevelopmenttoolsare
neededtorunthedemo.
HOLTINTEGRATEDCIRCUITS
AN170,Rev.C 1 3/12/15
AN170
KIT CONTENTS
ThisQuickStartGuide.
GeneralPurposeSPIEvaluationboardandschematic.
HI3717AEvaluationBoard(daughtercard)andschematic.
HI3717ADataSheet.
RS2329PinSerialCable.
DemoProjectcompatiblewithFreescaleCodeWarrior.
HI3717AUsersGuide.
HI3717AApplicationNote.
CDROMcontainingallthedocumentsandsoftware.
HOLTINTEGRATEDCIRCUITS
2
AN170
1. Connecta+3.3VpowersupplytoTP1andgroundtoTP6.Thisistheonlypowersupply
neededbythisdemo;theHI3717AincludesanonchipDCDCconverterwhichgenerates
+5Vand5VtomeettheARINCtransmitlevels.
2. ConnecttheincludedRS232cablebetweentheboardandthePCSerial(COM)port.To
viewARINCdata,ControlandStatusRegistersandenteroptionalcommands,aterminal
programmaybeused.Configurethecommunicationfor115200Baud,8bits,NoParity,No
handshaking.
3. HI3717daughtercardfactorydefaultjumpersettings:
J1shorted J4open
J7shorted J5open
HOLTINTEGRATEDCIRCUITS
3
AN170
BoardRESET
ARESETpushbuttonisprovided.ADIPswitchisalsoprovidedtocontinuouslyassertprocessorRESET.
Fornormaloperation,ensureSW24(MRST)isintheopenpositionotherwisetheMCUwillbeheldin
theresetstate.TheMRSTDIPswitchallowseasyinterfacingofanexternalMCUtotheHI3717A.
ClosingSW24willkeeptheRESETpinlowforcingtheFreescaleMCUGPIOpinsintoahighimpedance
state
SomejumpersdonotapplytotheHI3717AsotheywilltypicallybeshownasNA.
JP1NA,JP2NA
JP3VDDjumperto3.3V.
JP4NA,JP5NA,JP7NA.
DemoModeSelection
Mode2 Mode1 Mode0 MODENUMBER DEMOMODE
0 0 0 0 BoardTest
0 0 1 1 TransmitReceiveMode
0 1 0 2 TransmitReceiveModeSELFTEST
0 1 1 3 TransmitSpecialMode
1 0 0 4 ReceiveModeCompareOff
1 0 1 5 ReceiveModeCompareOn
1 1 0 6 SoftwareSyncMode
1 1 1 7 SerialCommands
(0=CLOSED,1=OPEN)
OPT1switchReceiverMode
Open=BPRZ(BipolarReturntoZero)Receivemode.
Closed=HBP(HarvardBiphase)Receivemode.
OPT2switch32WPS
Open=32WPS(overridesallotherrates).
Closed=RatefollowsBitRate0,BitRate1andBitrate2switchsettings.
HOLTINTEGRATEDCIRCUITS
4
AN170
WPSBitRateDIPswitches
PushButtonsSW1SW4
Dependingontheselectedmode,thesebuttonsperformspecifictasks.
DaughterCardLEDs
TheGreenLEDwhenonindicatesdataintheReceiveFIFO.
TheAmberLEDindicatespowerisappliedtotheboard.
TheYellowLEDturnsonwhenthereceiverissynchronizedtotheincomingdata.
LED1AMBER 3.3VPOWER ON
LED2GREEN RECEIVEDATA ON
HOLTINTEGRATEDCIRCUITS
5
AN170
MainBoardStatusLEDs
SelectthedemomodeusingtheMode0,Mode1andMode2DIPswitches.
SettheWordRatefor648192WPSusingBITR0,BITR1andBIT2DIPswitches.
SettheWordRatefor32WPSbyopeningOPT1.ThisoverridestheBITRxswitchsettings.
Powercycletheboard,orpresstheRESETbuttononthemainboard.
Afterapoweronreset,theprogramrevisionisdisplayedontheLEDsfortwosecondsinbinaryformat,
whereLED1istheLSB.Aftertwoseconds,theLEDsturnoff,andthenLED7flasheseverysecondasthe
mainMCUliveoperatingindicator.
AmessageisalsosenttotheConsolePort.Someofthedisplayedinformationreflectstheoptions
selectedbytheDIPswitches.
HOLTINTEGRATEDCIRCUITS
6
AN170
Mode0 BoardTest:
ThisisasimpletestprogramthatcyclestheLEDs18onbrieflytoverifyoperation.LED7flashesevery
second,inadditiontothenormalflash.PressingdownS1stopsthesequenceandturnsonLED1.
PressingS24turnsonLEDs24respectively.Thisisawaytoverifythatthepushbuttonswork.
Theoutputontheconsolewillbesimilarto:
Forthefollowingexamples,configuretheDIPswitchesasfollows:
Mode1 TransmitReceiveMode
Thismodedemonstratesbothtransmittingandreceiving.TheWordRateandthereceivermodeare
configuredaccordingtotheDIPswitchsettings.ThetransmittertransmitsaSYNCwordfollowedbyan
incrementingdatawordpatternfrom1tothemaximumcount.Thevalueofthemaximumwordcount
dependsontheWordRate.A64WordRatewouldcountto63(0x3F).Thedataoutputsequencewould
be:SYNC,1,2,363.ThereceiverdisplaysthedatainhexformatandtheSYNCwordsaremarkedwith
anasterisk.TheconsoledisplaybelowshowsfoursubframeseachwithaSYNCwordfollowedbythe
dataword.
Forthereceivertoreceivedata,connectthetransmittertothereceiverinputsbyconnectingtwowires
ontheJ2andJ6terminalblocks:
J65ToJ26
J64ToJ25
Theinitialconsolescreenlookssimilartothis,dependingontheswitchsettings:
HOLTINTEGRATEDCIRCUITS
7
AN170
HI-3717 Initialized OK
Match Word Count Register set to = 0x0005
Press S1 to start
TheHI3717AhasbeensuccessfullyinitializedandtheprogramiswaitingfortheS1pushbuttontobe
pressedbeforetransmittingandreceivingbegins.AcheckisperformedwheninitializingtheHI3717A
ControlRegister0byreadingbackthevalue;ifthevaluereaddoesnotmatchthewrittenvalue,an
errormessageisdisplayedontheconsole;theRedLEDturnsonandtheprogramentersadeadloop.
OncetheS1buttonispressed,theTransmittingmessageisdisplayedontheconsole.Thereceiver
fetchesanddisplaystheSYNCwordsanddataasshownbelow:
Transmitting
247*001 002 003 004 005 006 007 008 009 00A 00B 00C 00D 00E 00F
010 011 012 013 014 015 016 017 018 019 01A 01B 01C 01D 01E 01F
020 021 022 023 024 025 026 027 028 029 02A 02B 02C 02D 02E 02F
030 031 032 033 034 035 036 037 038 039 03A 03B 03C 03D 03E 03F
5B8*001 002 003 004 005 006 007 008 009 00A 00B 00C 00D 00E 00F
010 011 012 013 014 015 016 017 018 019 01A 01B 01C 01D 01E 01F
020 021 022 023 024 025 026 027 028 029 02A 02B 02C 02D 02E 02F
030 031 032 033 034 035 036 037 038 039 03A 03B 03C 03D 03E 03F
A47*001 002 003 004 005 006 007 008 009 00A 00B 00C 00D 00E 00F
010 011 012 013 014 015 016 017 018 019 01A 01B 01C 01D 01E 01F
020 021 022 023 024 025 026 027 028 029 02A 02B 02C 02D 02E 02F
030 031 032 033 034 035 036 037 038 039 03A 03B 03C 03D 03E 03F
DB8*001 002 003 004 005 006 007 008 009 00A 00B 00C 00D 00E 00F
010 011 012 013 014 015 016 017 018 019 01A 01B 01C 01D 01E 01F
020 021 022 023 024 025 026 027 028 029 02A 02B 02C 02D 02E 02F
030 031 032 033 034 035 036 037 038 039 03A 03B 03C 03D 03E 03F
ThereceiverperformsacompareontheincomingSYNCwordsandincrementeddatawords.Ifeitherof
thesedonotmatchwiththeexpectedvalues,theprogramstopsanddisplaysaDataFailmessage.For
example,ifyouremoveoneofthejumperwireswhiledataisreceivedtheerrormessagemaylook
similartothis:
Inthissituationthereceivedvalue0xFFEdidnotmatchtheexpectedvalue003.OnceDataFailoccurs,
theprogramturnsontheRedLEDandentersadeadloop.ResettheboardbypressingtheRESETbutton
torestarttheprogram.
HOLTINTEGRATEDCIRCUITS
8
AN170
PressingS1orthespacebarontheHyperTerminalprogramwhiletheprogramistransmittingtostop
theprogramanddisplaytheHI3717AControlandStatusRegisters.
PressS4ontheboardorpressthespacebarontheHyperTerminalprogramtoresumetransmittingand
receivingdata.Whentheprogramisresumed,afoursecondresynchronizingdelayoccursbeforedata
isdisplayedagainontheconsole.
Mode2 TransmitReceiveModeSELFTEST
Mode2isnearlyidenticaltoMode1excepttheTESTbitissetintheControlRegister1registerto
enableTestMode.TestModedisablesthelinedriversandreceiveranddigitallyloopsbackthe
transmitteddatatothereceiver.ThesamedatawillbereceivedasMode1butwithouttheneedto
providejumpersontheterminalblock.
TheaddedpromptmessagewillindicatedTestModewasselected:
SELF-TEST, Internal Digital Loop-back, No data is transmitted
externally
Mode3 TransmitSpecialMode
Mode3isaspecialtransmitfunctionwhichallowscustomizeddatapatternstobegeneratedby
combiningpredefinedsetsofsubframestogether.Thereareafewexamplesinthecodewhichcanbe
groupedtogethertocreategroupsofsubframes.EachsubframebeginswithaSNYCwordanda
numberofdatawordsdeterminedbytheWPSswitchsettings.Eachsubframefunctionispassedthe
desiredSYNCwordvalue;withinthesubframemodulethedatacanbecustomizedbyaddingadditional
CASEstatementstotransmitanydatawordpatterntothetransmitfunction.Theprogramdefaultwill
repeatedlytransmitfoursubframes.Thefirstsubframecontainsallzeros,thesecondsubframewill
containsallones,the3rdsubframewillcontainsallzerosagainandfinallythelastsubframetransmits
anincrementingdatawordpattern.
HOLTINTEGRATEDCIRCUITS
9
AN170
Pressabuttonontheboardorenteringacharacterontheconsoleselectsadifferentdatawordpattern
onthefly.
PressingS1orthespacebarontheHyperTerminalprogramwhiletheprogramistransmittingcauses
theprogramtostopanddisplaytheHI3717AControlandStatusRegisters.Theremaybeanoticeable
delaywhenabuttonorthespacebarispressed.Whenpressingabuttonontheboardpressandholdit
downuntilyouseethechangetakeeffect.
Modes4&5 ReceiveMode
ReceiveModes4&5arenearlyidenticaltotheReceivefunctionusedforModes1and2.Mode5
receivesthedatawithoutperformingacompareonthedatasoitcanbeusetoreceiveanddisplayany
dataaslongastheSYNCwordsremainintheirpropersequence(0x0247,0x05B8,0x0A47,0xDB8).
Mode4performsacompareontheexpectedSYNCword,DataWordandWordCountlikeMode1or
Mode2.
Mode6 SoftwareSynchronizationMode
Mode6issimilartomode1inthatittransmitsandreceivesdatabutusesSoftwareSynchronization
(SFTSYNC)Mode.SFTSYNCisenabledwhentheSFTSYNCbit2issethighintheControlRegister1.
SFTSYNCmodespeedsupthesynchronizationprocessandisusefulduringtesting.SFTSYNConly
requirestwosequentialordersyncmarkstoestablishsynchronization;thisshortenssynchronization
timefrom48secondsto23seconds.
InFlightRecorderMode,(normalmode)SYNC0andSYNC1outputpinsandcorrespondingSYNC1:0bits
intheReceiveFIFOStatusRegisterreflectthesubframephasewhenINSYNCis1.Thesepinsand
statusregisterbitsarevalidinFlightRecorderMode(normalmode).InSoftwareSynchronizationmode
(SFTSYNCbit2=1intheCTRL1register)theSYNC0andSYNC1andstatusregisterbitswillnotmatchthe
truephasecorrespondingtotheBarkercodes.Mode6demonstrateshowsoftwarecandeterminethe
truephasebyexaminingtheSYNC(BarkerCode)words.
TheexampleprogramexaminestheBarkerCodesinthereceiveddatatodeterminethesubframe
phase,thenoutputsthetruephaseontwoadditionalspareoutputpinsPT4andPT5oftheFreescale
MCUonthelowerboard.
HOLTINTEGRATEDCIRCUITS
10
AN170
Selectmode6onthemodeDIPswitchesperthetableshownonpage4.Connectthetransmittertothe
receiverusingtwoclipleadstoprovideanexternalloopbackconnection.
J65ToJ26
J64ToJ25
SetOpt1DIPswitchclosedtoselectHarvardmode.Forthisdemo,select4096WPSusingtheDIPswitch
settingsshownonpage5.
PresstheRESETbuttononthebaseboard.Theconsoleoutputshouldappearasfollows:
Press S1 to start
AfterpressingS1,theconsolewillstarttoupdatewithjusttheSync(Barker)codesshownbelow.To
alsoseethedata,selectawordratelessthan4096butforthistestitiseasiertoseetheSynccodes
alonesoa4096WPSisrecommended.ThenewSYNC1:SYNC0bitscanbeviewonanoscilloscopeon
J13andJ14headerconnectorsontheMCUboard(bottom).
PressS1buttontopausetransmissionandnotetheSYNC1andSYNC0stateswillmatchthelastSync
codeontheconsole.NoticethefirstSynccodeis0x0A47andnottheexpected0x0247value.Thisis
becauseSFTSYNCmodeonlyneedstwoconsecutivesyncmarkstoestablishsync.Thefirst0x0247in
Flightmodeisactuallythefifthsyncword.Tocontinuetransmitting,pressS4orthespacebaronthePC
keyboard.
HOLTINTEGRATEDCIRCUITS
11
AN170
Note:AllprogramconsoleoutputreferencestoHI3717applytoHI3717Ainthisversion.
Summary
ThisUsersGuideexplainsthecapabilitiesoftheHI3717demosoftware.Tolearnmoreaboutthedemo
softwareprojectandhowtosetuptheFreescaleCodewarriorIDE,refertotheAN171Software
ApplicationNoteontheCDROM.
HOLTINTEGRATEDCIRCUITS
12
43
.01uF 50V 4.7uF 6.3V 47uF 16V C5 U1 40.2K 1/8W 4
RIN1A
1uF 6.3V MLCC .01uF 50V 5 R2 3
RIN1A-40 2 RIN1B
40.2K 1/8W GND
VDD
2 R3 TP3 1
TP2 RIN1B-40 GND
J3 HEADER 10 GND 4
RIN1A
1 VDD3_3 nMR 15 3
2 nMR nMR RIN1B
3 nCS nCS 21
4 SI SI 18 nCS
5 SCK SCK 19 SI
6 SO SO 20 SCK
DEFAULT OPEN SO Harvard Transmitter
7 RFIFO 34
8 TFIFO J4 JUMPER TXHA
9 1 2 1 29
10 J5 JUMPER NOCONV TXHB J6
13
REC DATA MATCH BPRZ Transmitter
JP1 U2 MATCH TXBB
1 4 RFIFO 13 27 R7 32.4 ohm 1/8W
AN170
HOLTINTEGRATEDCIRCUITS
Default=open under U2 TXOUTBB 3
C8 0.47uF 2 TXOUTBA
J9 J10 41 1 TXOUTBB
HI-3717PQ CP+ TRACES WIDE AND SHORT GND GND
1 2 VDD3_3 1 2 nMR 42 TP5
3 4 VDD3_3 3 4 TRFO 6 CP- C9 2.2uF
5 6 5 6 nCS GND 37
7 8 TFIFO 7 8 SO 17 CN+ TRACES WIDE AND SHORT
9 10 ROVF 9 10 SI GND 36
11 12 INSY NC 11 12 SCK CN-
V-
V+
GND
13 14 13 14 MATCH
15 16 GND 15 16 GND
35
40
38
17 18 17 18 TP6
19 20 SY NC0 19 20 TEMPTY
21 22 SY NC1 21 22
23 24 23 24 C10 C11 +
25 26 25 26 Short path U3
27 28 27 28 +
47uF 16V
47uF 16V
Title
CONN RECT 14x2 CONN RECT 14x2 TRACES WIDE AND SHORT Holt Inc. HI-3717 ARINC 717 daughter card
Date: Thursday, 18 2011 Sheet 1 of 1
AN170
HOLTINTEGRATEDCIRCUITS
14
AN170
HOLTINTEGRATEDCIRCUITS
15
AN170
HOLTINTEGRATEDCIRCUITS
16
AN170
REVISION HISTORY
P/N Rev Date DescriptionofChange
HOLTINTEGRATEDCIRCUITS
17