Texas Instruments TLV320AIC12KEVMB-K appendix Gpio Capability, Gpio Pin Assignments

Page 25

www.ti.com

Kit Operation

6.9.1.1GPIO 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):

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

SLAU229B–October 2007–Revised August 2008

TLV320AIC12KEVMB-K and TLV320AIC14KEVMB-K User's Guide

25

Submit Documentation Feedback

Image 25
Contents SN74LVC125A EVM-Compatible Device Data SheetsSN74LVC1G07 Power Supply Pinout List of Jumpers USB-MODEVM SW2 Settings EVM Overview FeaturesIntroduction Analog InterfaceDigital Interface Alternate Analog ConnectorsDigital Interface Pinout SCL AIC12K/14K ResetSDA SclkUSB-MODEVM Interface Power Power SuppliesPower Supply Pinout Stand-Alone OperationTLV320AIC12KEVMB-K/14KEVMB-K Block Diagram Default Jumper LocationsAnalog Input Analog OutputTLV320AIC12KEVMB-K/14KEVMB-K Block Diagram USB-MODEVM SW2 Settings InstallationProgram Description USB-MODEVM Interface BoardInformation Tab Indicators and Main Screen ControlsInformation Tab Sounds and Audio Devices Properties Preset Configurations TabDevice Controls Tab Preset ConfigurationsDevice Controls Tab Control Register 1 Tab Control Register 1 Tab Control Register 2 Tab Control Register 2 Tab Control Register 3 Tab Control Register 4 Tab Control Register 5 Tab Command Line Interface Tab Command Line Interface Tab File Menu USB Control Endpoint Hidsetreport Request USB-MODEVM ProtocolSetreport Data Packet Configuration 0x01 0x80 0x02 Gpio Pin Assignments Gpio CapabilityI2cstd Writing ScriptsI2cfast Spi8#example script i i2cfast 80 01 45 A0 r 80 01 Here is an example of a script TLV320AIC12KEVMB/14KEVMB Bill of Materials EVM Bill of MaterialsUSB-MODEVM Bill of Materials JMP8-JMP14 JMP1-JMP4JMP5, JMP6 JMP7Schematic diagram is provided as a reference Appendix a TLV320AIC12KEVMB/14KEVMB SchematicTLV320AIC12K14KDBTEVMB Ti a Appendix B USB-MODEVM Schematic Untitled USB-MODEVM Interface Rick Downs Evaluation BOARD/KIT Important Notice FCC WarningsRfid DSP