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.

TMS320F28379S: Comparator internal DAC issue

Part Number: TMS320F28379S


Hi

I'm writing code for F2837x comparator, the program compares CMPIN1P to 2 internal DACs. The results are

pulled out by output X-bar to GPIO14 and GPIO24. The program represents graphically in the following schematic:

CMPIN1P comes from DAC-A, the program runs at F28379S and the waveforms display as below:

The 2 internal DACs are set to different values but CMPSS1.CTRIPOUTH and CMPSS1.CTRIPOUTL are same.

But the outputs from GPIO14 and GPIO24 are correct if I change the code in function Task_1() in file TestCompOut.c from

fVDC2 = 1.0;
fZOH1 = fVDC2;
fVDC3 = 1.5;

to

fVDC2 = 1.5;
fZOH1 = fVDC2;
fVDC3 = 1.0;

 The waveforms display as below:

Is this a hardware bug or some register settings are wrong?

Since the project is generated by a software, the initialization code is included in a library. The initialization

actions can be only confirmed from register values. 

The project can be reached from the following URL:

drive.google.com/open

thanks,

Jiakai