First off all thanks for your help :)
mon2 wrote:1) Are you writing custom code to use the XHRA-2HPA-TQ64 processor ? If not, believe that this processor has encrypted code supplied by XMOS so the code is a fixed function and cannot be changed.
If I'm correct the firmware has a configuration stored in the SPI memory with some basic events and commands to execute. (Check datasheet page 25&26), in this case I can tell the chip to put GPIO1 to high (0xE2) on both USB connect (0x1A) and disconnect (0x1C) (Which will if I'm not mistaken result in having GPIO1 always on)
mon2 wrote:
4) From our understanding, the QSPI flash memory is read during boot time and the read information is copied to local ram for execution. After the boot is finished, believe you are ok to re-use this port pin - if the code is written to do so. Again, all 4 bits of the QSPI pins must be all in the same direction.
Alright thanks, I'll make sure my design takes this into concideration and will wait for the chip to load its firmware before it sets UAC1_SEL to high / put any power on the pin while it still serves as QSPI_D1
mon2 wrote:
Perhaps you can supply more details on your project ?
Its going to be a high quality ('audiophile-grade') USB audio device combined with the WM8741 as DAC.
mon2 wrote:
How will you select Audio Class 1.0 support ?
How will you select Audio Class 2.0 support ?
There will be a switch on the device for easy access, either blocking the current flow (low) or sending VCC33 (high) to UAC1_SEL
mon2 wrote:
If you map a logic switch to a port pin, then that port pin will need to toggle HIGH or LOW. How will the end user make this selection ? The code (firmware) must offer this support to toggle the selection pin.
If I'm not mistaken the datasheet tells me that putting high on this pin will tell the chips default (XMOS provided) firmware to use Audio Class 1.0 instead of 2.0, like I said the user will toggle between the two with a little switch.
mon2 wrote:
Not fully understanding why this QSPI pin D1 must be used for your switch unless the firmware supports this feature already from XMOS.
QSPI_D1 has two fuctions, it serves as QSPI data pin and after initialization it will become UAC1_SEL (alternative function, check datasheet page 7 "Configuration I/O pins")
This all is, if I'm not mistaken.