Follow these steps to use the USB2ANY
Explorer GUI to write and read SPI commands from the TXE81XX.
- Connect the TXE81XXEVM to a
computer/laptop with USB2ANY Explorer v2.8.2.0 installed.
- Open USB2ANY Explorer v2.8.2.0
(Follow steps 1-3 of "Downloading USB2ANY Firmware" for download
instructions).
- On the
bottom of the TXE81XXEVM, make sure that the SPI switch for SDO/SDI/CS/SCLK is
enabled.
- Make sure that either 5V or 3.3V
power jumper (J7 or J10, respectively) is shorted on the TXE81XXEVM. This
matches the supply that is enabled in the USB2ANY Explorer GUI (in this case
5V).
Note: Do not short both J7 and J10 at the same time.
This shorts the 5V supply to the 3.3V supply with potential to create an
over-current event if both supplies are enabled in the USB2ANY Explorer
GUI.
- Click
"Select Interfaces", select "SPI", and hit "close".
- Open up
the SPI tab and select the following configuration for SPI communication:
- Clock Polarity = Inactive
Low
- Clock Phase = Leading
Edge
- CS Polarity = Active
Low
- Bit Direction = MSB
First
- Length = 8 bits
- Bit Rate = user
preference
- Slave Device = 0
- CS Type = per packet
- # of Bytes = 3
- Begin
writing/reading SPI data.
- Example, set port 0
GPIO's to OUTPUT through the direction control register (0x04). Write
data = 04 00 FF.