Texas Instruments TLV320AIC3107EVM-K quick start Appendix G USB-MODEVM Protocol

Page 48

Appendix G

www.ti.com

Appendix G USB-MODEVM Protocol

G.1 USB-MODEVM Protocol

The USB-MODEVM is defined to be a Vendor-Specific class, and is identified on the PC system as an NI-VISA device. Because the TAS1020 has several routines in its ROM which are designed for use with HID-class devices, HID-like structures are used, even though the USB-MODEVM is not an HID-class device. Data is passed from the PC to the TAS1020 using the control endpoint.

Data is sent in an HIDSETREPORT (see Table G-1):

Table G-1. USB Control Endpoint

HIDSETREPORT Request

Part

Value

Description

bmRequestType

0x21

00100001

bRequest

0x09

SET_REPORT

wValue

0x00

don't care

wIndex

0x03

HID interface is index 3

wLength

calculated by host

 

Data

 

Data packet as described below

The data packet consists of the following bytes, shown in Table G-2:

Table G-2. Data Packet Configuration

Byte Number

Type

Description

 

0

Interface

Specifies serial interface and operation. The two values are logically ORed.

 

 

Operation:

 

 

 

READ

0x00

 

 

WRITE

0x10

 

 

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

4..64

Data

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

 

 

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

Example usage:

Write two bytes (AA, 55) to device starting at register 5 of an I2C device with address A0:

[0]0x11

[1]0xA0

[2]0x02

[3]0x05

[4]0xAA

[5]0x55

46

USB-MODEVM Protocol

SLAU261–November 2008

Submit Documentation Feedback

Image 48
Contents EVM-Compatible Device Data Sheets TLV320AIC3107EVM-KUSB-MODEVM SW2 Settings Features TLV320AIC3107EVM-K Block DiagramEVM Overview IntroductionTLV320AIC3107EVM-K Block Diagram USB-MODEVM Interface BoardDefault Configuration and Connections USB-MODEVM SW2 Settings2 TLV320AIC3107EVM Jumpers and Switches List of Stand-alone JumpersPower Connections TLV320AIC3107EVM-K Setup and Installation Software InstallationEVM Connections Quick Start USB-MODEM Configurations TLV320AIC3107EVM SoftwareQuick Start Tabs Quick Start Preset Configurations Quick Start Preset Configurations TabMain Software Screen With Indicators and Functions Main Software ScreenDetailed TLV320AIC3107 Block Diagram Audio Input/ADC Tab Audio Input/ADC TabBypass Paths Tab Bypass Paths TabAudio Interface Tab Audio Interface TabConfiguring the Codec Clocks and Fsref Calculation Clocks TabSetting ADC and DAC Sampling Rates Use Without PLLUse With PLL GPIO1 Tab GPIO1 TabAGC Tab AGC TabLeft AGC Settings Filters Tab Filters TabADC Filters High-Pass FilterDigital Effects Filter ADC DAC Filters De-emphasis FiltersDAC Digital Effects Filter Digital Effects Filters Shelf FiltersEQ Filters Analog Simulation FiltersPreset Filters User Filters10 DAC/Line Outputs Tab 3.6 3D EffectDAC Controls Line Output MixersHP Output Stage Configuration Tab Output Stage Configuration TabHigh Power Outputs Tab HP Outputs TabClass-D Output Tab Class-D Output TabCommand Line Interface Tab Command Line Interface TabFile Menu Appendix a EVM Connector Descriptions Analog Interface ConnectorsAnalog Input/Output Connectors Table A-1. Analog Input/Output ConnectorsBlock a and Block B Digital Interface Connectors J16 and J17 Table A-2. Block a and Block B Digital Interface PinoutPower Supply Connector Pin Header, J15 Table A-3. Power Supply PinoutAppendix B TLV320AIC3107EVM Schematic TP4 Avdd DACAppendix B Figure C-1. Assembly layer Appendix C TLV320AIC3107EVM Layout ViewsFigure C-3. Layer Figure C-5. Bottom Layer Appendix D TLV320AIC3107EVM Bill of Materials Table D-1. TLV320AIC3107EVM Bill of MaterialsNot Appendix E USB-MODEVM Schematic Ti a HIGH-PERFORMANCE Analog Division Appendix F USB-MODEVM Bill of Materials Table F-1. USB-MODEVM Bill of MaterialsDesignators Description Manufacturer Table G-2. Data Packet Configuration Appendix G USB-MODEVM ProtocolUSB-MODEVM Protocol Table G-1. USB Control Endpoint Hidsetreport Request0x12 0xA0 0x02 0x05 0xAA 0x55 0x01 0xA0 0x02 0x05 Gpio Capability Table G-3. Gpio Pin AssignmentsWriting Scripts Writing Scripts Evaluation BOARD/KIT Important Notice FCC WarningImportant Notice