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.

TMS320F28379D: Possible bug in SDFM driverlib sample from C2000ware 3.04

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE

It seems to me there is a bug in C2000Ware_3_04_00_00\driverlib\f2837xs\examples\cpu1\sdfm\sdfm_ex1_filters.c

The call to SDFM_configComparator looks like

SDFM_configComparator(SDFM1_BASE,
                                          (SDFM_FILTER_1 | SDFM_FILTER_SINC_3 | SDFM_SET_OSR(32)),
                                          (SDFM_GET_LOW_THRESHOLD(llt) | SDFM_GET_HIGH_THRESHOLD(hlt)));

But SDCMPHx register is zero after this call. I think the last line should be replaced with 'SDFM_THRESHOLD(hlt, llt)' :

 SDFM_configComparator(SDFM1_BASE,
                                          (SDFM_FILTER_1 | SDFM_FILTER_SINC_3 | SDFM_SET_OSR(32)),
                                          SDFM_THRESHOLD(hlt, llt) );

Regards,
Alex