Other Parts Discussed in Thread: USB2ANY, TS5A23159
Hello,
I linked this post to the other one because I'm basically in the same situation with the same setup. I'm trying to communicate with SPI between the PGA900 and my PC using a C232HM-DDHSL-0 cable from FTDI.
I wrote a code for the PGA where I initialize the SPI settings directly at the beggining of the main.c file (PIN_MUX set for SPI, SPI enabled in DIG_IF_CTRL, COMBUF RX interrupt enabled in COM_RX_INT_ENABLE register). I'm also using an XDS probe with CCS to program the PGA on the EVM board, and I connected the USB to SPI cable for the Master on the USB2ANY port pins.
My issue is that whenever I send a message from the Master to write on or to read the COMBUF registers while the MCU is running, I don't get any reaction from the PGA : the interrupt isn't triggered, the data from the Master's message isn't written in COMBUF, and the "answer" the Master receives from the PGA is a message with only 1s. I checked with a logic analyzer, and the MISO pin is always on a high state since the moment is was connected to the master cable.
This time I'm lost, I read the datasheet part on the SPI several times, and checked my hardware connections a dozen times. I'm sure my code for the Master chip is working correctly, so there must be something wrong with the PGA. Do you have an idea of what could be wrong here ?
Have a nice day,
Benjamin.