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/PGA970: Need an example of a SPI message that accomplishes read/write to PGA970

Part Number: PGA970

Tool/software: Code Composer Studio

Can anybody give me an example SPI message that I could send to write a change to the MICRO_INTERFACE_CONTROL register in the PGA970, then read back the value of that register? As I understand SPI, I need to send a message that is:

{COMMAND}     {ADDRESS}    {DATA}

But I dont know what the command for read OR write is for the PGA970 and I'm not sure what the address map below means? Do I send the base address followed by the address followed by the DevAddr? So the command would be 0x???? 4000 0400 0C00 0001, where ???? is the write command that I want to know, 4000 0400 is what I believe the base address is from below, and 0C00 is the specific address following the BaseAddr, and 0001 is the data I want to write. Or maybe I've misunderstood SPI communications entirely? I'm fairly new to this...

  • Well, looks like I should have RTFM closer. Page 42 gives examples and page 41 has the format. Here's an example:
    Read COM_MCU_TO_DIF_B0
    000 00000100 0 XXXXXXXX 0000

    It's split like that to correspond to the useful bits. I guess to write over SPI I would only have to transfer 0x004... which is an incomplete 16bit word... Can anybody clarify if I can tack on a 0x0 to the end of the initial word and not cause problems? And clarify what the address/devaddr/baseaddr in the image correspond to?