Texas Instruments TLV320AIC32 Evaluation Module (EVM) and USB motherboard TLV320AIC32EVM-PDK TLV320AIC32EVM-PDK Datenbogen

Produktcode
TLV320AIC32EVM-PDK
Seite von 47
www.ti.com
Kit Operation
The return packet should be
[0] 0x21
[1] 0xA0
[2] 0x02
[3] 0x05
[4] 0xAA
[5] 0x55
assuming that the values we wrote above starting at Register 5 were actually written to the device.
6.14.1.1
GPIO Capability
The USB-MODEVM has seven GPIO lines. You can access them by specifying the interface to be 0x08,
and then using the standard format for packets—but addresses are unnecessary. The GPIO lines are
mapped into one byte (see
Table 9. GPIO Pin Assignments
7
6
5
4
3
2
1
0
x
P3.5
P3.4
P3.3
P1.3
P1.2
P1.1
P1.0
Example: write P3.5 to a 1, set all others to 0:
[0] 0x18
--> write, GPIO
[1] 0x00
--> this value is ignored
[2] 0x01
--> length - ALWAYS a 1
[3] 0x00
--> this value is ignored
[4] 0x40
--> 01000000
You may also read back from the GPIO to see the state of the pins. Let's say we just wrote the previous
example to the port pins.
Example: read the GPIO
[0] 0x08
--> read, GPIO
[1] 0x00
--> this value is ignored
[2] 0x01
--> length - ALWAYS a 1
[3] 0x00
--> this value is ignored
The return packet should be:
[0] 0x28
[1] 0x00
[2] 0x01
[3] 0x00
[4] 0x40
6.14.2
Writing Scripts
A script is simply a text file that contains data to send to the serial control buses. The scripting language is
quite simple, as is the parser for the language. Therefore, the program is not very forgiving about mistakes
made in the source script file, but the formatting of the file is simple. Consequently, mistakes should be
rare.
TLV320AIC32EVM and TLV320AIC32EVM-PDK User's Guide
34
SBAU113 – November 2005