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/TMS320F280048C: TMS320F280048C

Part Number: TMS320F280048C

Tool/software: Code Composer Studio

I am developing code to interface with an AD7988 using SPI.  I have it working in the CPU.  I would like to mode the code to CLA.  Can anyone point me to an example that shows how to configure the SPI-A bus in the CLA.  

    // Configure SPI-A (AD7988 ADC for O2 Sensor) **********
    GPIO_setPinConfig(GPIO_9_SPICLKA);  //GPIO9
    GPIO_setPinConfig(GPIO_8_SPISIMOA); //GPIO8
    GPIO_setPinConfig(GPIO_10_SPISOMIA); //GPIO10


    GPIO_setDirectionMode(GPIO_8_MOSI, GPIO_DIR_MODE_OUT);
    GPIO_WritePin(GPIO_8_MOSI, 1);     //SDI remains high
    GPIO_setDirectionMode(GPIO_10_MISO, GPIO_DIR_MODE_IN);
    GPIO_SetupPinMux(GPIO_O2_ADC_CS, GPIO_MUX_CPU1, 0); //GPIO4 O2_ADC_CS
    GPIO_WritePin(GPIO_O2_ADC_CS, 1);
    GPIO_setDirectionMode(GPIO_O2_ADC_CS, GPIO_DIR_MODE_OUT);
    //****************************************************************
Can I simply add the following code?
    GPIO_SetupPinMux(9U, GPIO_MUX_CPU1CLA, 7);
    GPIO_SetupPinMux(8U, GPIO_MUX_CPU1CLA, 7);
    GPIO_SetupPinMux(10U, GPIO_MUX_CPU1CLA, 7)
Thanks,
Steve Haddad
Ametek Aerospace
  • Steve,

    I don't understand why you would want to configure the SPI in CLA.

    Are you wanting to service your SPI transmit / receive interrupt using CLA task? If you are planning to service SPI transmit / receive interrupts using CLA, you need to configure DMA Channel trigger select register (DMACHSRCSELx register) using information provided in Table5-1. Configuration Options and you need to configure CLA. DId you check CLA example provided in C2000Ware?

    Regards,

    Manoj

  • I haven't heard back from you. Is this thread resolved?