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.

Keep CLA running when C28x is halted.

I want to use the CLA to control a buck converter. But when the C28x is halted, reach a breakpoint, the CLA must keep the converter running, Is it possible?



  • How can I do that?

    I think that I need to clear ADC interrupt flag so the next SOC can occur, I'm trying this:

    MMOVF32      MR3,#1.0

    MF32TOUI16  MR2,MR3

    MMOV16      @_AdcRegs.ADCINTFLGCLR.bit.ADCINT7,MR2

  • I think that CLA don't have access to the ADCINTFLCLR register, now I'm trying clear the flag using the assembler code:

    MMOVXI  MR1,#0x40

    MMOV16  @_AdcRegs.ADCINTFLGCLR.all,MR1

    Is there a CLA example that are triggered by the ADC or by the PWM that don't need to generate a C28x interrupt to clear the flag?



  • CLA can clear interrupt flags on PWM registers,

    If the CLA task is triggered by the ADC you can configure the ADC to be in auto clear mode where the ADC does not wait for the INT clear before the next conversion can begin,

    You can check the ADC_SOC_Cnf file in the digital power library where CLA mode is supported,

    if (mode == 2)        // CLA mode, Start Stop ADC with auto clr ADC Flag
        {
            AdcRegs.ADCINTFLG.bit.ADCINT1 = 0;  // clear interrupt flag for ADCINT1
            AdcRegs.INTSEL1N2.bit.INT1CONT = 1;    // set ADCInterrupt 1 to auto clr
            AdcRegs.ADCINTSOCSEL1.all=0x0000;    // No ADCInterrupt will trigger SOCx
               AdcRegs.ADCINTSOCSEL2.all=0x0000;
        }

  • Thanks Manish.

    This is working now.

    I changed the  Example_2803xClaAdcFirFlash:

    AdcRegs.IntSEL7N8.bit.INT7CONT= 1;  //set ADCInterrupt to auto clr.

    Now when the C28x halt, the CLA keep reading the ADC,filtering and writing to PWM.

    I'm starting to like the CLA!