Other Parts Discussed in Thread: C2000WARE
Dear team,
The customer wants to use the CMPSS comparator to realize the protection of ADC differential sampling. Please help to check how to realize it?
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.
Dear team,
The customer wants to use the CMPSS comparator to realize the protection of ADC differential sampling. Please help to check how to realize it?
user3455617,
There are CMPSS examples in C2000Ware that might be helpful:
~\C2000Ware_XXXX\driverlib\f2837xd\examples\cpu1\cmpss
~\C2000Ware_XXXX\device_support\f2837xd\examples\cpu1
However, the CMPSS is not able to natively interpret the signal characteristics that are required by the ADC in differential mode. CMPSS is designed to monitor for voltage crossing between the comparator inputs, whereas the ADC requires its differential signals to cross at the midpoint of the fullscale range. So if the ADC input signals are conditioned properly, the CMPSS would always trip at the midpoint.
For continuous CMPSS monitoring, the signal would need to be converted to a single-ended input. If periodic monitoring is acceptable, the ADC Post Processing Block (PPB) can also generate an event signal to trip the EPWM if the conversion results exceed predefined threshold limits.
-Tommy