SLAU855A June   2021  – March 2022 TLV320AIC3101 , TLV320AIC3104 , TLV320AIC3104-Q1 , TLV320AIC3105 , TLV320AIC3106 , TLV320AIC3106-Q1 , TLV320AIC3107 , TLV320AIC3109-Q1 , TLV320AIC34

 

  1.   1
  2.   2
    1.     3
    2.     4
  3.   5
    1.     6
    2.     7
    3.     8
    4.     9
  4.   10
    1.     11
      1.      12
        1.       13
      2.      14
        1.       15
        2.       16
    2.     17
    3.     18
    4.     19
    5.     20
    6.     21
    7.     22
    8.     23
  5.   24

GPIO Capability

The USB-MODEVM has seven GPIO lines. Access them by specifying the interface to be 0x08, and then using the standard format for packets—but addresses are unnecessary. The GPIO lines, as shown in Table 3-5 are mapped into one byte.

Table 3-5 GPIO Pin Assignments
Bit 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 is always a 1

[3] 0x00 → This value is ignored

[4] 0x40 → 01000000

The user may also read back from the GPIO to see the state of the pins. For this example, assume the previous example was written to the port pins.

Example: read the GPIO

[0] 0x08 → Read, GPIO

[1] 0x00 → This value is ignored

[2] 0x01 → Length is always a 1

[3] 0x00 → This value is ignored

The return packet is:

[0] 0x28

[1] 0x00

[2] 0x01

[3] 0x00

[4] 0x40