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.

TMS320F280049C: CMPSS configuration error

Part Number: TMS320F280049C

Hi Experts,

     I am doing the OC protection, when I want to setup the current protection. And I use the CMPSS3_L to implement the one-shot PWM protection.

     So the below code is my CMPSS configure, I also check the register about the CMPSS3, you can see the COMPLSTS.

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CMPSS_enableModule(PUSH_PULL_OCP_CMPSS_BASE); //COMPDACE
CMPSS_configLowComparator(PUSH_PULL_OCP_CMPSS_BASE,CMPSS_INSRC_DAC);//
// Select positive input of CMPSSL to come from B2/C6/PGA3_OF (ILV_FB)
ASysCtl_selectCMPLPMux(PUSH_PULL_OCP_CMPSS_ASYSCTRL_CMPLPMUX,
PSFB_PCMC_OCP_CMPSS_ASYSCTRL_MUX_VALUE); //
// VDDA--
CMPSS_configDAC(PUSH_PULL_OCP_CMPSS_BASE, CMPSS_DACVAL_SYSCLK |
CMPSS_DACREF_VDDA | CMPSS_DACSRC_SHDW); //
CMPSS_setDACValueLow(PUSH_PULL_OCP_CMPSS_BASE, PSFB_OCP_DAC_INIT); //OC-DACLVALS-3584
// CMPSS_setDACValueHigh(PUSH_PULL_OCP_CMPSS_BASE, PSFB_OCP_DAC_INIT);
CMPSS_configFilterLow(PUSH_PULL_OCP_CMPSS_BASE, PSFB_OCP_SAMPLE_PRESCALE,
PSFB_OCP_SAMPLE_WINDOW, PUSH_PULL_OCP_THRESHOLD);
//
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

The register about the CMPSS3 as below:

could you help me out from the CMPSS configuration?