Texas Instruments TLV320AIC1103EVM-K Evaluation Module TLV320AIC1103EVM-K TLV320AIC1103EVM-K Hoja De Datos

Los códigos de productos
TLV320AIC1103EVM-K
Descargar
Página de 36
www.ti.com
Kit Operation
6.9.1.1
GPIO Capability
The USB-MODEVM has seven GPIO lines. The user 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 0, all others to 1:
[0] 0x18
--> write, GPIO
[1] 0x00
--> this value is ignored
[2] 0x01
--> length - ALWAYS a 1
[3] 0x00
--> this value is ignored
[4] 0x3F
--> 00111111
The user may also read back from the GPIO to see the state of the pins. Suppose the port pins were
written as in the previous example.
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] 0x3F
21
SLAU297A – November 2009 – Revised January 2011
TLV320AIC1103/1110EVM-K
© 2009–2011, Texas Instruments Incorporated