KitOperation
www.ti.com
Ifthecommandissentwithnoproblem,thereturningbyte[0]shouldbethesameasthesentone
logicallyor'dwith0x20-inthesecondexampleabove(fastmode),thereturningpacketshouldbe:
[0]0x32
[1]0x80
[2]0x02
[3]0x01
[4]0x45
[5]0xA0
Ifforsomereasontheinterfacefails(forexample,theI
2
Cdevicedoesnotacknowledge),itwouldcome
backas:
[0]0x52-->interface|INTF_ERROR
[1]0x80
[2]0x02
[3]0x01
[4]0x45
[5]0xA0
Iftherequestismalformed,thatis,theinterfacebyte(byte[0])takesonavaluewhichisnotdescribed
above,thereturnpacketwouldbe:
[0]0x93-->0x13wassent,whichisnotvalid,so0x93isreturned
[1]0x80
[2]0x02
[3]0x01
[4]0x45
[5]0xA0
Examplesaboveusedwrites.Readingissimilar:
Readtwobytesfromdevicestartingatregister1ofanI
2
CdevicewithaddressA0:
[0]0x01
[1]0x80
[2]0x02
[3]0x01
Thereturnpacketshouldbe
[0]0x21
[1]0x80
[2]0x02
[3]0x01
[4]0x45
[5]0xA0
assumingthatthevalueswewroteabovestartingatRegister5wereactuallywrittentothedevice.
24TLV320AIC12KEVMB-KandTLV320AIC14KEVMB-KUser'sGuideSLAU229B–October2007–RevisedAugust2008
SubmitDocumentationFeedback