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/LAUNCHXL-F28027: ADCDRV_1ch in BOOSTXL-C2KLED

Part Number: LAUNCHXL-F28027

Tool/software: Code Composer Studio

I am running open loop in  BOOSTXL-C2KLED.

There seems to be no call of the macro in DPL_ISR() for ADCDRV_1ch 9-12 as shown below. But there are data for it when viewing in debug.

.if(INCR_BUILD = 1) ; Open-Loop
ADCDRV_1ch 1
ADCDRV_1ch 2
PWMDRV_DualUpDwnCnt 1

ADCDRV_1ch 3
PWMDRV_1ch_UpDwnCnt 2

.endif
;---------------------------------------------------------
.if(INCR_BUILD = 2) ; Closed-Loop 2P2Z

ADCDRV_1ch 1
ADCDRV_1ch 2
ADCDRV_1ch 3

LCR #_comp

CNTL_2P2Z 1
CNTL_2P2Z 2
PWMDRV_DualUpDwnCnt 1

CNTL_2P2Z 3
PWMDRV_1ch_UpDwnCnt 2

ADCDRV_1ch 9
ADCDRV_1ch 10
ADCDRV_1ch 11
ADCDRV_1ch 12
.endif

  • Hi Victor,

    I am not entirely familiar with this kit but I believe the software follows our digital power software structure. Even though ADCDRV_1ch9-12 are not executed inside the ISR, the ADC results may be directly read from the slower background loop. This can be done in open loop because the ADC values do not need to be read at the PWM ISR rate, as these feedback values are not used to close any loops. In he closed loop implementation, however, these macros must be executed inside the ISR where the corresponding control loops are run.

    I hope this helps.

    Hrishi