Texas Instruments TLV320AIC3007EVM-K TV Converter Box User Manual


 
G.2GPIOCapability
GPIOCapability
www.ti.com
TheUSB-MODEVMhassevenGPIOlines.Accessthembyspecifyingtheinterfacetobe0x08,andthen
usingthestandardformatforpackets—butaddressesareunnecessary.TheGPIOlinesaremappedinto
onebyte(seeTableG-3):
TableG-3.GPIOPinAssignments
Bit76543210
xP3.5P3.4P3.3P1.3P1.2P1.1P1.0
Example:writeP3.5toa1,setallothersto0:
[0]0x18-->write,GPIO
[1]0x00-->thisvalueisignored
[2]0x01-->length-ALWAYSa1
[3]0x00-->thisvalueisignored
[4]0x40-->01000000
TheusermayalsoreadbackfromtheGPIOtoseethestateofthepins.Let'ssaywejustwrotethe
previousexampletotheportpins.
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]0x40
USB-MODEVMProtocol 48SLAU286June2009
SubmitDocumentationFeedback