Texas Instruments TLV320AIC12KEVMB-K Calculator User Manual


 
www.ti.com
KitOperation
Thedatapacketconsistsofthefollowingbytes,showninTable8:
Table8.DataPacketConfiguration
BYTENUMBERTYPEDESCRIPTION
Specifiesserialinterfaceandoperation.ThetwovaluesarelogicallyOR'd.
Operation:
READ0x00
WRITE0x10
Interface:
0Interface
GPIO0x08
SPI_160x04
I2C_FAST0x02
I2C_STD0x01
SPI_80x00
1I
2
CSlaveAddressSlaveaddressofI
2
CdeviceorMSBof16-bitregaddrforSPI
2LengthLengthofdatatowrite/read(numberofbytes)
3RegisteraddressAddressofregisterforI
2
Cor8-bitSPI;LSBof16-bitaddressforSPI
Upto60databytescouldbewrittenatatime.EP0maximumlengthis64.The
4..64Datareturnpacketislimitedto42bytes,soadviseonlysending32bytesatanyone
time.
Exampleusage:
Writetwobytes(45,A0)todevicestartingatregister1ofanI
2
Cdevicewithaddress80:
[0]0x11
[1]0x80
[2]0x02
[3]0x01
[4]0x45
[5]0xA0
DothesamewithafastmodeI
2
Cdevice:
[0]0x12
[1]0x80
[2]0x02
[3]0x01
[4]0x45
[5]0xA0
Ineachcase,theTAS1020willreturn,inanHIDinterruptpacket,thefollowing:
[0]interfacebyte|status
status:
REQ_ERROR0x80
INTF_ERROR0x40
REQ_DONE0x20
[1]forI
2
Cinterfaces,theI
2
Caddressassent
forSPIinterfaces,thereadbackdatafromSPIlinefortransmissionofthecorrespondingbyte
[2]lengthassent
[3]forI
2
Cinterfaces,theregaddressassent
forSPIinterfaces,thereadbackdatafromSPIlinefortransmissionofthecorrespondingbyte
[4..60]echoofdatapacketsent
SLAU229BOctober2007RevisedAugust2008TLV320AIC12KEVMB-KandTLV320AIC14KEVMB-KUser'sGuide23
SubmitDocumentationFeedback