background image

Writing Scripts

www.ti.com

9

Writing Scripts

A script is simply a text file that contains data to send to the serial control buses.

Each line in a script file is one command. No provision is made for extending lines beyond one line, except
for the > command. A line is terminated by a carriage return.

The first character of a line is the command. Commands are:

I—

Set interface bus to use

r—

Read from the serial control bus

w—

Write to the serial control bus

>—

Extend repeated write commands to lines below a

w

#—

Comment

b—

Break

d—

Delay

f—

Wait for Flag

The first command,

I

, sets the interface to use for the commands to follow. This command must be

followed by one of the following parameters:

i2cstd—

Standard mode I

2

C bus

i2cfast—

Fast mode I

2

C bus

spi8—

SPI bus with 8-bit register addressing

spi16—

SPI bus with 16-bit register addressing

For example, if a fast mode I

2

C bus is to be used, the script begins with:

I i2cfast—

A double-quoted string of characters following the

b

command can be added to provide

information to the user about each breakpoint. When the script is executed, the software's
command handler halts as soon as a breakpoint is detected and displays the string of characters
within the double quotes.

The Wait for Flag command,

f

, reads a specified register and verifies if the bitmap provided with the

command matches the data being read. If the data does not match, the command handler retries for up to
200 times. This feature is useful when switching buffers in parts that support the adaptive filtering mode.
The command f syntax follows:

f [i2c address] [register] [D7][D6][D5][D4][D3][D2][D1][D0]

where 'i2c address' and 'register' are in hexadecimal format

and 'D7' through 'D0' are in binary format with values of 0,

1 or X for don't care.8

Anything following a comment command

#

is ignored by the parser, provided that it is on the same line.

The delay command

d

allows the user to specify a time, in milliseconds, that the script pauses before

proceeding. Note: The delay time is entered in decimal format.

A series of byte values follows either a read or write command. Each byte value is expressed in
hexadecimal, and each byte must be separated by a space. Commands are interpreted and sent to the
TAS1020B by the program.

22

TLV320AIC3268EVM-U Evaluation Module

SLAU564A – February 2014 – Revised February 2014

Submit Documentation Feedback

Copyright © 2014, Texas Instruments Incorporated

Summary of Contents for TLV320AIC3268EVM-U

Page 1: ...User Interface GUI 5 5 TLV320AIC3268EVM U Default Jumper Locations 7 6 TLV320AIC3268EVM U EVM Schematics 8 7 TLV320AIC3268EVM U EVM Board Layout 17 8 TLV320AIC3268EVM U Bill of Materials 19 9 Writing...

Page 2: ...that features the TLV320AIC3268 Audio Codec with miniDSP 2 1 Electrostatic Discharge Warning Many of the components on the EVM are susceptible to damage by electrostatic discharge ESD Users are advis...

Page 3: ...2 If either of the board or the TLV320AIC3268 device is missing contact the Texas Instruments Product Information Center to inquire about a replacement Figure 1 TLV320AIC3268EVM U Top Board Photo Fig...

Page 4: ...control panel To adjust playback volume open Sound in control panel select the USB AudioEVM device and click Properties Similarly the other example configurations can be tried and sound can be record...

Page 5: ...ommand Buffer Interface 4 2 3 I2C Logger The Command Buffer Interface communicates with the TLV320AIC3268 using a simple scripting language described in Section 9 The TAS1020B USB controller handles a...

Page 6: ...ormation such as register name current register value and the bit field of the current register value Specify the page number when using the register inspector table Once the page is specified the reg...

Page 7: ...JP39 Shorted JP10 2 3 JP40 2 3 JP11 2 3 JP41 Shorted JP12 2 3 JP42 Open JP13 2 3 JP43 Open JP14 2 3 JP44 2 3 JP15 2 3 JP45 Shorted JP16 2 3 JP46 Open JP17 2 3 JP47 Open JP18 2 3 JP48 Shorted JP19 2 3...

Page 8: ...I2C_ADDR SCLK SCL_SSZ DVDD_18 IOVDD1_33 RESETZ WCLK1 GPIO2 DOUT1 DIN1 GPIO1 WCLK2 DIN2 IOVDD2_33 DVDD_18 GPIO4 BCLK2 DOUT2 DVSS DVSS DVDD_18 VBAT SPK_V SPKM SVDD SPKP AVDD4_18 MICBIAS_EXT MICBIAS RECP...

Page 9: ...ESIGN LEAD PAGE INFO FILENAME DATE OF DRAWN BY SHEET PCB REV SCH REV 3 3VIO 3 3VIO 3 3VIO 3 3VIO 3 3VIO 3 3VIO 3 3VIO FB5 220ohms 2A FB6 220ohms 2A 1 2 3 4 5 J1 Data GND ID_NC 5v Data 3 3VIO 1 2 3 4 Y...

Page 10: ...IELD GND INPUT VCC 1 2 3 SPDIF IN1 PLR135 T10 Case GND VCC OUT GND SPDIF IN2 3 2 1 PLR135 T10 Case GND VCC OUT GND GND 3 1 2 SPDIF OUT2 PLT133 T10W SHIELD GND INPUT VCC IOVD1 1 8VIO IOVD2 1 8VIO IOVD1...

Page 11: ...ND C52 0 1uF 16V C53 0 1uF 16V GND GND SPI_SELECT is only information Never drive this pin Use Jumper JP51 instead L DN 11 C C JOHN FEDAK IV JANUARY 31 2014 AIP013C_Schematic sbk DESIGN LEAD PAGE INFO...

Page 12: ...3 1 2 3 4 5 6 GND GND GND GND GND GND GND 0 1uF 16V C91 0 1uF 16V C90 SELECT CLOCK DATA VDD MIC2 6 5 4 3 2 1 JP19 3 2 1 JP18 1 2 3 JP17 3 2 1 GND GND GND GND GND GND GND GND GND GND 0 1uF 16V C74 0 1u...

Page 13: ...ND TP35 vref_sar R65 200 0 1uF 16V C99 GND JP46 2 1 TP36 C100 2 2ufd 10V GND C101 2 2uF 10V TP37 Vneg GND GND 0 1uF 16V C102 10uF 10V C103 GND 10uF 10V C104 GND 0 1uF 16V C105 JP40 1 2 3 JP41 2 1 GND...

Page 14: ...127 1 2 JP55 R77 1 00k 2200pF 50V C128 TP51 TP52 32 4 R78 1 2 JP56 recp TP53 recm TP54 L DN 11 C C JOHN FEDAK IV JANUARY 31 2014 AIP013C_Schematic sbk DESIGN LEAD PAGE INFO FILENAME DATE OF DRAWN BY S...

Page 15: ...C JOHN FEDAK IV JANUARY 31 2014 AIP013C_Schematic sbk DESIGN LEAD PAGE INFO FILENAME DATE OF DRAWN BY SHEET PCB REV SCH REV TI IOVD1 3 3VIO 3 3VIO 3 3VIO 3 3VIO 3 3VIO IOVD1 IOVD1 3 3VIO 3 3VIO IOVD1...

Page 16: ...LENAME DATE OF DRAWN BY SHEET PCB REV SCH REV TI GND GND 1 8V_CP 3 3VD GND GND 5V 5V 1 8V 1 8V 3 3VD 3 3VD GND J12 Anchor J11 Anchor TLV320AIC3268RGC EVALUATION BOARD 9 RESERVED RESERVED I2S_4 I2S_3 G...

Page 17: ...gure 14 through Figure 16 illustrate the TLV320AIC3268EVM U EVM board layouts Figure 14 Top Xray View Figure 15 Silkscreen Top 17 SLAU564A February 2014 Revised February 2014 TLV320AIC3268EVM U Evalua...

Page 18: ...EVM Board Layout www ti com Figure 16 Silkscreen Bottom 18 TLV320AIC3268EVM U Evaluation Module SLAU564A February 2014 Revised February 2014 Submit Documentation Feedback Copyright 2014 Texas Instrum...

Page 19: ...FREE NMOS SOT23 DBV5 ROHS 18 TPS73633DBVT TEXAS INSTRUMENTS 2 VR5 VR6 VOLT REG 3 3V 400MA LDO CAP FREE NMOS SOT23 DBV5 ROHS 19 PLR135 T10 EVERLIGHT ELECTRONICS 2 SPDIF IN1 SPDIF IN2 PHOTOLINK FIBER OP...

Page 20: ...R67 R68 R69 R74 R75 R76 R77 R86 R89 RESISTOR SMD0603 THICK FILM 1 00K OHM 1 1 10W ROHS 51 ERJ 3EKF3570V PANASONIC 5 R30 R31 R32 R33 R85 RESISTOR SMD0603 357 OHM 1 THICK FILM 1 10W ROHS 52 CRCW0603200...

Page 21: ...ESTPOINT YELLOW ROHS TP19 TP20 TP55 TP56 TP57 TP58 TP59 TP60 78 5011 KEYSTONE ELECTRONICS 7 TP62 TP63 TP64 TP65 TP66 TP67 TP68 PC TESTPOINT BLACK 063 HOLE ROHS 79 TL1015AF160QG E SWITCH 4 S1 S2 S3 S4...

Page 22: ...s command handler halts as soon as a breakpoint is detected and displays the string of characters within the double quotes The Wait for Flag command f reads a specified register and verifies if the b...

Page 23: ...ote that the slave device value does not change It is unnecessary to set the R W bit for I2 C devices in the script the read or write commands does that If extensive repeated write commands are sent a...

Page 24: ...Script File from the File menu Once the script is in the command buffer it can be executed by pressing the Execute Command Buffer button If breakpoints are in the script the script executes to that po...

Page 25: ...ation Reference Guide from the Related Documents table 1 Deleted section titled Operation 4 NOTE Page numbers for previous revisions may differ from page numbers in the current version 25 SLAU564A Feb...

Page 26: ...sponsible for compliance with all legal regulatory and safety related requirements concerning its products and any use of TI components in its applications notwithstanding any applications related inf...

Page 27: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information Texas Instruments TLV320AIC3268EVM U...

Reviews: