Texas Instruments ADS61B23EVM Computer Hardware User Manual


 
3.2SettingUptheEVMforADCSPIControl
3.3UsingtheTIADCSPIInterfaceSoftware
3.3.1SPIRegisterWrites
3.3.2SPIRegisterWriteUsingaScriptFile
3.3.2.1ADS61xxFrequentlyUsedRegisters
www.ti.com
TIADCSPIControlInterface
UserswhowishtousetheADCSPIinterfacemustsupply5VDCtoJ20,whichprovidespowertothe
USBcircuit.Bydefault,theEVMcomeswiththeADCconfiguredinparallelmode.InordertousetheSPI
interfacetocontroltheADCmodesofoperation,usersmustmoveseveraljumpers.
MovejumperJ3toshortpositions1–2,whichplacestheADCintoserialoperationmode.
MovejumperJ7toshortpositions1–2,whichallowstheUSBcircuittocontrolSCLK.
MovejumperJ6toshortpositions1–2,whichallowstheUSBcircuittocontrolSDATA.
MovejumperJ2toshortpositions1–2,whichallowstheUSBcircuittocontrolSEN.
OncethesoftwareisinstalledandtheUSBcableisconnected,threeprimarymodesofoperatingthe
softwareareavailable:SPIRegisterWrites,SPIRegisterWriteUsingaScriptFile,and
ADS61xx/ADS61B23FrequentlyUsedRegisters.
Themostbasicmodeofoperationallowsfullcontrolofwritingtoindividualregisteraddresses.Inthetop
leftcorneroftheinterfacescreen(Figure1),selecttheADS61xxADCfromtheADCSPIProtocol
drop-downlist.Next,typetheAddressBytes(s)inhexadecimal(hex)andDataByte(s)inhex,whichcan
befoundinthedevicedatasheet.WhenyouarereadytosendthiscommandtotheADC,press"Enter"
onyourkeyboard.ThegraphindicatorisupdatedwiththepatternssenttotheADC.Thedefaultinputsto
boththeAddressByte(s)andDataByte(s)fieldsarehexinputsasdesignatedbythesmallxinthe
control.Userscanchangethedefaultinputstylebyclickingonthe"x"tobinary,decimal,octal,orhex.
MultipleregisterwritescanbewrittensimplybychangingthecontentsoftheAddressByte(s)andData
Byte(s)fieldandpressingEnteragain.
Forsituationswherethesamemultipleregistersmustbewrittenonafrequentbasis,userscaneasilyuse
atexteditortocreateascriptfilecontainingallADCregisterwrites.Anexamplescriptfileislocatedinthe
\\InstallDirectory\ScriptFiles\ADS6145_LVDS_CourseGain.txt.Userswhowishtotakeadvantageof
writingtheirownscriptfilesshouldstartbyusingtheADS6145_LVDS_CourseGain.txtasatemplatefile.
WhenreadytowritethecontentsofthescriptfiletotheADC,userscanpresstheLoadScriptbuttonand
theywillbepromptedforthefilelocationoftheirscriptfile.ThecommandsaresenttotheADCwhenthe
useracknowledgestheselectionofthefile.
Foreaseofuse,severalbuttonshavebeenaddedthatallowone-clickregisterwritesofcommonlyused
featuresfoundinTable4.ThesearefoundintheADS61xxtab,asthesecommandsarespecifictothe
ADS61xxADConly.ThesoftwarewritestotheADCboththecontentsoftheassociatedaddressanddata
whenthebuttonisclicked.WhentheADS61xxResetbuttonispressed,itissuesasoftwareresettothe
ADC,anditresetsthebuttonvaluestomatchthecontentsinsideoftheADC.Thegraphindicatorplots
theSPIcommandswrittentotheADCwhenabuttonhasbeendepressed.
SLAU206BSeptember2007RevisedApril200811
SubmitDocumentationFeedback