6.9.1.1GPIOCapability
www.ti.com
KitOperation
TheUSB-MODEVMhassevenGPIOlines.Theusercanaccessthembyspecifyingtheinterfacetobe
0x08,andthenusingthestandardformatforpackets—butaddressesareunnecessary.TheGPIOlines
aremappedintoonebyte(seeTable9):
Table9.GPIOPinAssignments
76543210
xP3.5P3.4P3.3P1.3P1.2P1.1P1.0
Example:writeP3.5toa0,allothersto1:
[0]0x18-->write,GPIO
[1]0x00-->thisvalueisignored
[2]0x01-->length-ALWAYSa1
[3]0x00-->thisvalueisignored
[4]0x3F-->00111111
TheusermayalsoreadbackfromtheGPIOtoseethestateofthepins.Supposetheportpinswere
writtenasinthepreviousexample.
Example:readtheGPIO
[0]0x08-->read,GPIO
[1]0x00-->thisvalueisignored
[2]0x01-->length-ALWAYSa1
[3]0x00-->thisvalueisignored
Thereturnpacketshouldbe:
[0]0x28
[1]0x00
[2]0x01
[3]0x00
[4]0x3F
SLAU229B–October2007–RevisedAugust2008TLV320AIC12KEVMB-KandTLV320AIC14KEVMB-KUser'sGuide25
SubmitDocumentationFeedback