Texas Instruments TLV320AIC12KEVMB-K Calculator User Manual


 
www.ti.com
KitOperation
Forexample,towritethevalues0x450xA0toanI
2
Cdevicewithaslaveaddressof0x80,startingata
registeraddressof0x01,onewouldwrite:
#examplescript
ii2cfast
w800145A0
r800102
Thisscriptbeginswithacomment,specifiesthatafastI
2
Cbuswillbeused,thenwrites0x450xA0tothe
I
2
Cslavedeviceataddress0x80,writingthevaluesintoregisters0x01and0x02.Thescriptthenreads
backtwobytesfromthesamedevicestartingatregisteraddress0x01.Notethattheslavedevicevalue
doesnotchange.ItisnotnecessarytosettheR/WbitforI
2
Cdevicesinthescript;thereadorwrite
commandswilldothatfortheuser.
Anytexteditormaybeusedtowritethesescripts;Jeditisaneditorthatishighlyrecommendedfor
generalusage.Formoreinformation,goto:http://www.jedit.org.
Oncethescriptiswritten,itcanbeusedinthecommandwindowbyrunningtheprogram,andthen
selectingOpenCommandFile...fromtheFilemenu.Locatethescriptandopenit.Thescriptwillthenbe
displayedinthecommandbuffer.Theusermayalsoeditthescriptonceitisinthebufferandsaveitas
specifiedinSection6.9.
Oncethescriptisinthecommandbuffer,itmaybeexecutedbypressingtheExecuteCommandBuffer
button.Iftheuserhasplacedbreakpointsinthescript,itwillexecutetothatpoint,andadialogboxwill
showupwithacontinuebuttontocontinueexecutingthescript.
Pleaserefertosections3.1(PowerDownandReset)andsection3.2(AIC12ControlRegister
ProgrammingProcedures)ontheTLV320AIC12/13/14/15CodecOperatingInStand-AloneSlaveMode
applicationnoteforimportantdetailsonprogrammingthecodec.
Specialcaremustbetakenwhenwritingsubregisters(4A-4Band5A-5D).
Example:w800145A00120B800
Thepreviouscommandwritesregisters1,2,3,4A,5Cand6.Itwillnotincrementfrom3to4Aand
thento4B.Thesubregistertobewrittenwilldependonthedata.
SLAU229BOctober2007RevisedAugust2008TLV320AIC12KEVMB-KandTLV320AIC14KEVMB-KUser'sGuide27
SubmitDocumentationFeedback