Texas Instruments TLV320AIC1110EVM-K Evaluation Module TLV320AIC1110EVM-K TLV320AIC1110EVM-K Scheda Tecnica

Codici prodotto
TLV320AIC1110EVM-K
Pagina di 36
www.ti.com
Kit Operation
For example, to write the values 0x45 0xA0 to an I
2
C device with a slave address of 0x80, starting at a
register address of 0x01, one would write:
#example script
I i2cfast
w 80 01 45 A0
r 80 01 02
This script begins with a comment, specifies that a fast I
2
C bus will be used, then writes 0x45 0xA0 to the
I
2
C slave device at address 0x80, writing the values into registers 0x01 and 0x02. The script then reads
back two bytes from the same device starting at register address 0x01. Note that the slave device value
does not change. It is not necessary to set the R/W bit for I
2
C devices in the script; the read or write
commands will do that for the user.
Any text editor may be used to write these scripts; Jedit is an editor that is highly recommended for
general usage. For more information, go to:
Once the script is written, it can be used in the command window by running the program, and then
selecting Open Command File... from the File menu. Locate the script and open it. The script will then be
displayed in the command buffer. The user may also edit the script once it is in the buffer and save it as
specified in
Once the script is in the command buffer, it may be executed by pressing the Execute Command Buffer
button. If the user has placed breakpoints in the script, it will execute to that point, and a dialog box will
show up with a continue button to continue executing the script.
Please refer to sections 3.1 (Power Down and Reset) and section 3.2 (AIC12 Control Register
Programming Procedures) on the
application note for important details on programming the codec.
Special care must be taken when writing subregisters (4A-4B and 5A-5D).
Example: w 80 01 45 A0 01 20 B8 00
The previous command writes registers 1, 2, 3, 4A, 5C and 6. It will not increment from 3 to 4A and
then to 4B
. The subregister to be written will depend on the data.
23
SLAU297A – November 2009 – Revised January 2011
TLV320AIC1103/1110EVM-K
© 2009–2011, Texas Instruments Incorporated