AIC Script Language
AIC Script Language
A script is simply a text file that contains data to send to the serial control buses.
The scripting language is quite simple. Each line in a script file is one command.
There is no provision for extending lines beyond one line. A line is terminated by
a line feed (0x0a) or a carriage return and line feed (0x0d0a). Characters can be
either upper or lower case as all are converted to lower case (except for the
string text in the Break command).
Script language files can be created by users with text editors and by the
PurePathStudio assembler. The files are used as input by the codec EVM GUI’s
and the device drivers of supported operating systems. The codec EVM GUI’s
send the commands through a USB device to the codec’s command port. The
device drivers will send the command directly to the codec’s command port.
Command Syntax
REGISTER READ
r [i2c address] [register] [read amount]
Where 'i2c address', 'register' and 'read amount' are in hexadecimal format and
read amount is less than or equal to 32 (0x20).
COMMENT
# [any text]
Lines beginning with the # character are ignored.
DELAY
d [milliseconds]
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.