Texas Instruments TLV320AIC12KEVMB-K appendix Data Packet Configuration

Page 23

www.ti.com

Kit Operation

The data packet consists of the following bytes, shown in Table 8:

Table 8. Data Packet Configuration

BYTE NUMBER

TYPE

DESCRIPTION

 

 

 

Specifies serial interface and operation. The two values are logically OR'd.

 

 

Operation:

 

 

 

READ

0x00

 

 

WRITE

0x10

0

Interface

Interface:

 

 

 

GPIO

0x08

 

 

SPI_16

0x04

 

 

I2C_FAST

0x02

 

 

I2C_STD

0x01

 

 

SPI_8

0x00

1

I2C Slave Address

Slave address of I2C device or MSB of 16-bit reg addr for SPI

2

Length

Length of data to write/read (number of bytes)

3

Register address

Address of register for I2C or 8-bit SPI; LSB of 16-bit address for SPI

 

 

Up to 60 data bytes could be written at a time. EP0 maximum length is 64. The

4..64

Data

return packet is limited to 42 bytes, so advise only sending 32 bytes at any one

 

 

time.

 

Example usage:

Write two bytes (45, A0) to device starting at register 1 of an I2C device with address 80:

[0]0x11

[1]0x80

[2]0x02

[3]0x01

[4]0x45

[5]0xA0

Do the same with a fast mode I2C device:

[0]0x12

[1]0x80

[2]0x02

[3]0x01

[4]0x45

[5]0xA0

In each case, the TAS1020 will return, in an HID interrupt packet, the following:

[0]interface byte status

status:

REQ_ERROR 0x80 INTF_ERROR 0x40 REQ_DONE 0x20

[1]for I2C interfaces, the I2C address as sent

for SPI interfaces, the read back data from SPI line for transmission of the corresponding byte

[2]length as sent

[3]for I2C interfaces, the reg address as sent

for SPI interfaces, the read back data from SPI line for transmission of the corresponding byte

[4..60] echo of data packet sent

SLAU229B–October 2007–Revised August 2008

TLV320AIC12KEVMB-K and TLV320AIC14KEVMB-K User's Guide

23

Submit Documentation Feedback

Image 23
Contents SN74LVC1G07 EVM-Compatible Device Data SheetsSN74LVC125A Power Supply Pinout List of Jumpers USB-MODEVM SW2 Settings Analog Interface FeaturesEVM Overview IntroductionDigital Interface Pinout Alternate Analog ConnectorsDigital Interface Sclk AIC12K/14K ResetSCL SDAStand-Alone Operation Power SuppliesUSB-MODEVM Interface Power Power Supply PinoutAnalog Output Default Jumper LocationsTLV320AIC12KEVMB-K/14KEVMB-K Block Diagram Analog InputTLV320AIC12KEVMB-K/14KEVMB-K Block Diagram USB-MODEVM SW2 Settings InstallationProgram Description USB-MODEVM Interface BoardInformation Tab Indicators and Main Screen ControlsInformation Tab Sounds and Audio Devices Properties Preset Configurations TabDevice Controls Tab Preset ConfigurationsDevice 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 Setreport USB-MODEVM ProtocolUSB Control Endpoint Hidsetreport Request Data Packet Configuration 0x01 0x80 0x02 Gpio Pin Assignments Gpio CapabilitySpi8 Writing ScriptsI2cstd I2cfast#example script i i2cfast 80 01 45 A0 r 80 01 Here is an example of a script TLV320AIC12KEVMB/14KEVMB Bill of Materials EVM Bill of MaterialsUSB-MODEVM Bill of Materials JMP7 JMP1-JMP4JMP8-JMP14 JMP5, JMP6Schematic diagram is provided as a reference Appendix a TLV320AIC12KEVMB/14KEVMB SchematicTLV320AIC12K14KDBTEVMB Ti a Appendix B USB-MODEVM Schematic Untitled USB-MODEVM Interface Rick Downs Evaluation BOARD/KIT Important Notice FCC WarningsRfid DSP