background image

www.ti.com

Writing Scripts

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 06

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 buffers

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:

http://www.jedit.org

.

Once the script is written, it can be used in the command window by running the program, and then
selecting

Open Script File...

from the File menu. Locate the script and open it. The script is then displayed

in the command buffer. The user can also edit the script once it is in the buffer and save it by selecting

Save 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 there are breakpoints in the script, the script executes to that point, and the user is presented
with a dialog box with a button to press to continue executing the script. When ready to proceed, push that
button and the script continues.

SLAU282 – April 2009

USB-MODEVM Protocol

33

Submit Documentation Feedback

Содержание TSC2117EVM-K

Страница 1: ...2 2 Control Software 4 2 3 Installation 4 2 4 Concepts 4 2 5 Main Window 5 2 6 Dialogs and Active Objects 6 3 EVM Hardware 19 3 1 Connectors and Jumpers 19 3 2 EVM Schematics 22 3 3 EVM Bill of Mater...

Страница 2: ...e the capabilities of the TSC2117 The USB MODEVM board contains a TAS1020B streaming audio USB controller which enumerates as a USB audio class device When the USB MODEVM TSC2117 EVM is connected to a...

Страница 3: ...in Figure 2 1 TSC2117 EVM USB MODEVM Figure 1 TSC2117 EVM USB MODEVM Note USB MODEVM configuration To control the TSC2117 from the PC via the USB MODEVM set switch SW2 position 1 3 4 5 6 7 to ON and p...

Страница 4: ...a block diagram view of the TSC2117 or select modules within the TSC2117 The block diagram consists of active objects that can react to user input for example switches or amplifiers with variable gai...

Страница 5: ...evice for a specific use case The toolbar contains a control that determines the zoom factor Change the zoom by selecting the desired zoom factor To move the block diagram click on a blank area within...

Страница 6: ...In the case of the amplifier active object the function is a volume control Moving the volume control slider changes the volume setting of the amplifier it is also possible to change the volume by cl...

Страница 7: ...detected or if the user selects another use case To show or edit the initialization script choose View Init Script from the main window menu bar Figure 3 Initialization Script Click the Run button to...

Страница 8: ...ad only text area on the right side of the command dialog displays control data read from the TSC2117 The Clear button clears the Read Data field The one line text edit field on the left bottom allows...

Страница 9: ...on The description column contains a description for each register If the register has no function assigned it is declared Reserved The data columns show the data of each register one byte The first d...

Страница 10: ...r is in the vicinity showing that it can be selected To change the frequency and gain of a biquad grab and drag its handle It is also possible to change the gain using the slider for each biquad Each...

Страница 11: ...ise color To trace the routing of a specific signal follow its color The example in Figure 6 shows that the BCLK signal from the internal clock generation module is routed to the primary I2C BCLK pin...

Страница 12: ...ngs based on the available input frequency and the desired sample rate 1 Choose the clock input using the Clock Input drop down box 2 Type the available input frequency in the Input Frequency edit fie...

Страница 13: ...access to the PLL and codec clock dividers It will recalculate the clock results dynamically whenever a parameter is changed The internally generated bit clock signal BCLK can be derived from several...

Страница 14: ...DSP Right Justified Left Justified For details about the digital audio interface formats see the TSC2117 data sheet SLAS550 5 4 AUDIO DIGITAL I O INTERFACE The Word Length drop down box defines the n...

Страница 15: ...rts polling the TSC2117 touch screen registers with a period of 50 ms The inside of the touch screen active object rectangle shows the current coordinates X and Y and a drawing based on touch screen i...

Страница 16: ...he TSC2117 touch screen module for Conversion Mode 9 and starts polling the TSC2117 SAR data registers with a period of 50 ms The inside of the SAR data active object rectangle shows the conversion re...

Страница 17: ...the AGC dialog shows the Amplitude of the ADC output data in decibel with 0dB equal to a full scale signal The target level line can be adjusted using the mouse pointer It will change color to red if...

Страница 18: ...DRC transfer function Figure 13 DRC Transfer Function and DRC Dialog The horizontal axis of the DRC transfer function shows the input to the DRC and the vertical axis shows the output of the DRC The...

Страница 19: ...2 AGND J5 1 LN speaker filtered 2 LP speaker filtered 3 RN speaker filtered 4 RP speaker filtered J6 1 SPLN speaker 2 SPLP speaker 3 SPRN speaker 4 SPRP speaker J7 1 BATT 2 GND J8 Headphones J9 Headph...

Страница 20: ...2 select EVM W19 HPL CAP bypass 1 2 bypass 1 2 TSC2117 2 3 3 3V W20 Reset source 1 2 reset from USB MODEVM not populated Table 5 Expansion Connectors P12 J12 Pin Number Signal Description P12 1 J12 1...

Страница 21: ...P22 11 J22 11 DIN Audio Serial Data Bus Data Input P22 12 J22 12 NC P22 13 J22 13 DOUT Audio Serial Data Bus Data Output P22 14 J22 14 NC P22 15 J22 15 NC P22 16 J22 16 NC P22 17 J22 17 MCLK Master Cl...

Страница 22: ...3 2 EVM Schematics EVM Hardware www ti com The schematic diagram for the TSC2117EVM is provided as a reference TSC2117EVM K 22 SLAU282 April 2009 Submit Documentation Feedback...

Страница 23: ...EV dd MMM yyyy DRAWN BY ENGINEER REVISION HISTORY REV ENGINEERING CHANGE NUMBER APPROVED B DATA ACQUISITION PRODUCTS HIGH PERFORMANCE ANALOG DIVISION SEMICONDUCTOR GROUP FRYE D ZERKETTS I C SPOTTS A 1...

Страница 24: ...GPIO5 19 J12 CONN_EVM_SERIAL GPIO0 2 DGND 4 GPIO1 6 GPIO2 8 DGND 10 GPIO3 12 GPIO4 14 SCL 16 DGND 18 SDA 20 CNTL 1 CLKX 3 CLKR 5 FSX 7 FSR 9 DX 11 DR 13 INT 15 TOUT 17 GPIO5 19 P22 CONN_EVM_SERIAL GPI...

Страница 25: ...OL MPWR C24 NI C23 NI MCLK SS R32 0 RED C62 0 1uF 1A 1 1B 2 1Y 7 VCC 8 GND 4 2Y 3 2B 6 2A 5 U6 SN74LVC2G00 2 1 3 SW2 RESET 3 3VD R37 10K 3 3VD R36 10K TP48 RESET R34 332 C61 0 1uF 3 3VD D5 RESET A 1 B...

Страница 26: ...C11 CAP CER 10UF 6 3V X5R 10 0402 17 0 1uF C20 C27 C34 C40 C43 CAP CER 0 1 F 25V X7R 0603 C52 C60 C62 1 22uF C26 CAP CER 0 22 F 16V X7R 10 0603 1 33uF C1 CAP CER 0 33 F 16V X7R 0603 1 2 2uF C39 CAP 2...

Страница 27: ...SMT Plug Header 4 J11 J12 J21 J22 20 pin SMT Socket Header 6 TP1 TP6 TEST POINT PC MULTI PURPOSE BLK 7 W2 W8 Bus Wire 18 22 Gauge 8 W14 W18 W20 W22 2 Pin Thru hole Plug Header Jumper 0 1 spacing 7 W1...

Страница 28: ...endix A USB MODEVM Schematic www ti com Appendix A The schematic diagram for USB MODEVM Interface Board is provided as a reference SLAU282 April 2009 USB MODEVM Schematic 25 Submit Documentation Feedb...

Страница 29: ...PRODUCTS HIGH PERFORMANCE ANALOG DIVISION SEMICONDUCTOR GROUP FRYE D ZERKETTS I C SPOTTS A 1 1 untitled DOCUMENT CONTROL NO 1234567 MCLK BCLK LRCLK I2SDIN I2SDOUT MISO MOSI SS SCLK RESET INT PWR_DWN P...

Страница 30: ...ER SERIAL 5VD 5VA A0 2 A1 4 A2 6 A3 8 A4 10 A5 12 A6 14 A7 16 REF 18 REF 20 A0 1 A1 3 A2 5 A3 7 AGND 9 AGND 11 AGND 13 VCOM 15 AGND 17 AGND 19 J16 DAUGHTER ANALOG 1 8VD 3 3VD 1 8VD 3 3VD 1 2 3 JMP5 1...

Страница 31: ...220 GREEN USB I2S USB MCK USB SPI USB SPI USB I2S USB MCK 1 8VD RESET C24 0 1uF USB ACTIVE USB RST USB RST 2 4 6 1 3 5 7 8 9 10 11 12 J15 EXTERNAL SPI 2 4 6 1 3 5 7 8 9 10 11 12 J14 EXTERNAL AUDIO DA...

Страница 32: ...0J1306K D1 50V 1A Diode MELF SMD Micro Commercial Components DL4001 D2 Yellow Light Emitting Diode Lumex SML LX0603YW TR D3 D7 Green Light Emitting Diode Lumex SML LX0603GW TR D5 Red Light Emitting Di...

Страница 33: ...07 L S JMP5 JMP6 3 position jumper 0 1 spacing Samtec TSW 103 07 L S JMP7 3 position dual row jumper 0 1 spacing Samtec TSW 103 07 L D SW1 SMT half pitch 2 position switch C K Division ITT TDA02H0SK1...

Страница 34: ...e C 2 The data packet consists of the following bytes shown in Table C 2 Table C 2 Data Packet Configuration BYTE NUMBER TYPE DESCRIPTION 0 Interface Specifies serial interface and operation The two v...

Страница 35: ...f reg addr 2 0x02 3 0xE0 4 0xAA 5 0x55 In each case the TAS1020 returns in an HID interrupt packet the following 0 interface byte status status REQ_ERROR 0x80 INTF_ERROR 0x40 REQ_DONE 0x20 1 for I2 C...

Страница 36: ...ck as 0 0x51 interface INTF_ERROR 1 0xA0 2 0x02 3 0x05 4 0xAA 5 0x55 If the request is malformed that is the interface byte byte 0 takes on a value which is not as previously described the return pack...

Страница 37: ...000000 The user can also read back from the GPIO to see the state of the pins Assume the previous example was just written to the port pins Example read the GPIO 0 0x08 read GPIO 1 0x00 this value is...

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

Страница 39: ...enotes 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 http www jedit org On...

Страница 40: ...ce TI is not responsible or liable for any such statements TI products are not authorized for use in safety critical applications such as life support where a failure of the TI product would reasonabl...

Отзывы: