background image

www.ti.com

Writing Scripts

The first byte following an

r

(read) or

w

(write) command is the I

2

C slave address of the device (if I

2

C is

used) or the first data byte to write. (If SPI is used, note that SPI interfaces are not standardized on
protocols, so the meaning of this byte varies with the device being addressed on the SPI bus.) The
second byte is the starting register address that data will be written to (again, with I

2

C; SPI varies).

Following these two bytes are data, if writing; if reading, the third byte value is the number of bytes to
read, (expressed in hexadecimal).

For example, to write the values 0xAA 0x55 to an I

2

C device with a slave address of 0x30, starting at a

register address of 0x03, the user writes:

#example script

I i2cfast

w 30 03 AA 55

r 30 03 02e

This script begins with a comment, specifies that a fast I

2

C bus is used, then writes

0xAA 0x55

to the I

2

C

slave device at address 0x30, writing the values into registers 0x03 and 0x04. The script then reads back
two bytes from the same device starting at register address 0x03. Note that the slave device value does
not change. It is unnecessary to set the R/W bit for I

2

C devices in the script; the read or write commands

does that.

If extensive repeated write commands are sent and commenting is desired for a group of bytes, the >
command can be used to extend the bytes to other lines that follow. A usage example for the > command
follows:

#example script for '>' command

I i2cfast

# Write AA and BB to registers 3 and 4, respectively

w 30 03 AA BB

# Write CC, DD, EE and FF to registers 5, 6, 7 and 8, respectively

> CC DD EE FF

# Place a commented breakpoint

b "AA BB CC DD EE FF was written, starting at register 3"

# Read back all six registers, starting at register 3

r 30 03 06b

The following example demonstrates usage of the Wait for Flag command,

f

:

#example script for 'wait for flag' command

I i2cfast

# Switch to Page 44

w 30 00 2C

# Switch buffer

w 30 01 05

# Wait for bit D0 to clear. 'x' denotes a don't care.

f 30 01 xxxxxxx0

Any text editor can be used to write these scripts; jEdit is an editor that is highly recommended for general
usage. For more information, go to:

www.jedit.org

.

23

SLAU564A – February 2014 – Revised February 2014

TLV320AIC3268EVM-U Evaluation Module

Submit Documentation Feedback

Copyright © 2014, Texas Instruments Incorporated

Содержание TLV320AIC3268EVM-U

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 27: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information Texas Instruments TLV320AIC3268EVM U...

Отзывы: