This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/PGA970EVM: SPI Interface not working, and locking the PGA970EVM

Part Number: PGA970EVM

Tool/software: Code Composer Studio

Hi, I am working on the SPI code to transfer data from the PGA970EVM board to my Digital Interface. I already created the code to synch both devices, and move the data to the COMBUF registers. I can see the DIF writing to the register COM_DIF_TO_MCU. However, when I check the transmission using the Logic Analyzer I don't see the 0x05 at the beginning of the communication. I tried to enable the SPI communication using the following commands

DIG_IF_CTRL = 0x00;

MICRO_INTERFACE_CONTROL = 0x00;

But the only thing that it happened is that the board got locked in reset mode. The Logic Analyzer and the MCU are configured in SPI MODE 1. Could someone help us figure out what is going on? It feels that something is missing or a configuration is missing, but we are not able to find it. 

Thanks,

Hector

  • Hi Hector,

    When you write to COM_DIF_TO_MCU are you able to read back that data again from the register?

    In order to enable the SPI, but to keep the microcontroller in a running state, your registers should be:

    DIF_IF_CTRL = 0x01

    MICRO_INTERFACE_CONTROL = 0x00

    When you say the board is locked in reset state, do you meant that the microcontroller is in reset or something else? The microcontroller should only go into reset when you write a 0x03 to the MICRO_INTERFACE_CONTROL register or if the firmware places it in reset for some reason.

    Regards,
  • Thanks for the clarification, I believe that the Datasheet is a little confusing on how to enable SPI