Texas Instruments TLV320DAC3120EVM-U Evaluation Module TLV320DAC3120EVM-U TLV320DAC3120EVM-U Datenbogen

Produktcode
TLV320DAC3120EVM-U
Seite von 18
www.ti.com
Control Software
2.8
Script Syntax
A script is a text file that contains data to send to a device.
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:
r
Read from the serial control bus
w
Write to the serial control bus
>
Extend repeated write commands
#
Comment
i
Set interface bus to use
b
Break
d
Delay
f
Wait for Flag
Command: <address> <register> <length>
<address> is the device address in hexadecimal format. For example 30 for device address 0x30.
<register> is the register in hexadecimal format that will be read from.
<length> is the number of bytes that will be read from <register> in auto-increment mode.
The result will be displayed in the right-side output window of the command interpreter dialog.
Command: <address> <register> <data ...>
<address> is the device address in hexadecimal format. For example 30 for device address 0x30.
<register> is the register in hexadecimal format that will be written to.
<data…> is a sequence of bytes that will be written to the <register> in auto-increment mode. Each
byte is in hexadecimal format.
Command: <data ...>
This command continues a write sequence in a new line.
<data…> is a sequence of bytes that will be written in auto-increment mode. Each byte is in
hexadecimal format.
Command: [optional comment]
This command indicates a comment.
Command: i<interface>
<interface> is i2c for I2C or spi for SPI
Command: b[optional comment]
[optional comment] is a string of characters. The command interpreter will show a modal dialog with
the optional comment. Script execution will resume once the dialog is closed.
Command: d<time>
This command suspends script execution by at least <time> milliseconds.
Command: <address> <register> <mask> [optional timeout]
This commands suspends script execution until the value read from <address> <register> matches
<mask>
<address> is the device address in hexadecimal format. For example 30 for device address 0x30.
<register> is the register in hexadecimal format that will be read from.
<mask> is a 8-bit binary format mask that is compared with the data from the device. Each bit can be
0, 1 or X.
For example: <mask> = 010XX01X tests, if the data from the device has D7=0, D6=1, D5=0, D4=don’t
care, D3=don’t care, D2=0, D1=1, D0=don’t care.
11
SLAU302 – December 2009
ACEV-1A EVM
Copyright © 2009, Texas Instruments Incorporated