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:
thanks,
Jiakai


