Texas Instruments TLV320AIC12KEVMB-K appendix 0x01 0x80 0x02

Page 24

Kit Operation

www.ti.com

If the command is sent with no problem, the returning byte [0] should be the same as the sent one logically or'd with 0x20 - in the second example above (fast mode), the returning packet should be:

[0]0x32

[1]0x80

[2]0x02

[3]0x01

[4]0x45

[5]0xA0

If for some reason the interface fails (for example, the I2C device does not acknowledge), it would come back as:

[0]0x52 --> interface INTF_ERROR

[1]0x80

[2]0x02

[3]0x01

[4]0x45

[5]0xA0

If the request is malformed, that is, the interface byte (byte [0]) takes on a value which is not described above, the return packet would be:

[0]0x93 --> 0x13 was sent, which is not valid, so 0x93 is returned

[1]0x80

[2]0x02

[3]0x01

[4]0x45

[5]0xA0

Examples above used writes. Reading is similar:

Read two bytes from device starting at register 1 of an I2C device with address A0:

[0]0x01

[1]0x80

[2]0x02

[3]0x01

The return packet should be

[0]0x21

[1]0x80

[2]0x02

[3]0x01

[4]0x45

[5]0xA0

assuming that the values we wrote above starting at Register 5 were actually written to the device.

24

TLV320AIC12KEVMB-K and TLV320AIC14KEVMB-K User's Guide

SLAU229B–October 2007–Revised August 2008

Submit Documentation Feedback

Image 24
Contents EVM-Compatible Device Data Sheets SN74LVC125ASN74LVC1G07 Power Supply Pinout List of Jumpers USB-MODEVM SW2 Settings Features EVM OverviewIntroduction Analog InterfaceAlternate Analog Connectors Digital InterfaceDigital Interface Pinout AIC12K/14K Reset SCLSDA SclkPower Supplies USB-MODEVM Interface PowerPower Supply Pinout Stand-Alone OperationDefault Jumper Locations TLV320AIC12KEVMB-K/14KEVMB-K Block DiagramAnalog Input Analog OutputTLV320AIC12KEVMB-K/14KEVMB-K Block Diagram Installation USB-MODEVM SW2 SettingsUSB-MODEVM Interface Board Program DescriptionIndicators and Main Screen Controls Information TabInformation Tab Preset Configurations Tab Sounds and Audio Devices PropertiesPreset Configurations Device Controls TabDevice Controls Tab Control Register 1 Tab Control Register 1 Tab Control Register 2 Tab Control Register 2 Tab Control Register 3 Tab Control Register 4 Tab Control Register 5 Tab Command Line Interface Tab Command Line Interface Tab File Menu USB-MODEVM Protocol USB Control Endpoint Hidsetreport RequestSetreport Data Packet Configuration 0x01 0x80 0x02 Gpio Capability Gpio Pin AssignmentsWriting Scripts I2cstdI2cfast Spi8#example script i i2cfast 80 01 45 A0 r 80 01 Here is an example of a script EVM Bill of Materials TLV320AIC12KEVMB/14KEVMB Bill of MaterialsUSB-MODEVM Bill of Materials JMP1-JMP4 JMP8-JMP14JMP5, JMP6 JMP7Appendix a TLV320AIC12KEVMB/14KEVMB Schematic Schematic diagram is provided as a referenceTLV320AIC12K14KDBTEVMB Ti a Appendix B USB-MODEVM Schematic Untitled USB-MODEVM Interface Rick Downs FCC Warnings Evaluation BOARD/KIT Important NoticeDSP Rfid