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/66AK2G12: ASRC EXAMPLE EVMK2Gx

Part Number: 66AK2G12

Tool/software: Code Composer Studio

it is possible to get an example of the ASRC?

 

If not:

My main problem is to setup eDMA3 between MCASP and the ASRC.

  • Richard,

    Can you please provide details of your usecase for ASRC. The ASRC IP on the device is currently not supported in Processor SDK RTOS. We have some internal validation code that may help but we need to understand your application and usecase to provide appropriate examples

    Regards,

    Rahul

  • Hello Rahul,

    I think the internal validation code would be help me for my usecase as example. I need to upsample the input of my i2s input of the MCASP. In best case the output of the ASRC uses the main CLK.

    My currently setup is:

        asrcCfg -> AASRC_SYSCONFIG = 0x1;
        PID_ID = asrcCfg -> AASRC_PID;
        asrcCfg -> INPUT_CLOCKZONE_CONTROL_0 = 0x7;     //RXSYNC 7 MCASP AFSR
        asrcCfg -> OUTPUT_CLOCKZONE_COUNT_0 = 0x7;      //RXSYNC 7 MCASP AFSX
        asrcCfg -> INPUT_CLOCK_ZONE_DIVIDER = 0x0;      //Input Clock Divider -- disabled
        asrcCfg -> OUTPUT_CLOCK_ZONE_DIVIDER = 0x0;     //Output Clock Divider -- disabled
        asrcCfg -> SRC_FIFO_CONTROL_0 = 0x10001;        //IN/OUT Samples must be available for the interrupt
        asrcCfg -> SRC_CONTROL_0 = 0x200;               //Auto-mute
        asrcCfg -> AASRC_SYSCONFIG = 0x0;               // Auto data format
        asrcCfg -> SRC_CONTROL_0 = 0xC0000200;          //Enable Both Channels

    My first try was to loop input/output. I can setup edma for manual trigger. But the problem is in my case to setup it for hw-trigger. Do I need to use a Ping Pong transfer for input ouput? I am currently try to config the ASRC in stream mode. For that I mux the event muxctl10 and muxctl11 to the ASRC events. Group mode is possible, too.

  • Hello Rahul,

    is there a quick solution possible?

    Thank you!

    Richard

  • Richard.

    Unfortunately a quick solution here is not possible as any internal validation code that we may have needs licensing before external developers as per TI policy.  

    Regards,

    Rahul