SPRUIZ1B July 2023 – August 2024 TMS320F28P650DH , TMS320F28P650DK , TMS320F28P650SH , TMS320F28P650SK , TMS320F28P659DH-Q1 , TMS320F28P659DK-Q1 , TMS320F28P659SH-Q1
The ADC supports two signal modes: single-ended and differential.
In single-ended mode, the input voltage to the converter is sampled through a single pin (ADCINx), referenced to VREFLO.
In differential signaling mode, the input voltage to the converter is sampled through a pair of input pins, one of which is the positive input (ADCINxP) and the other is the negative input (ADCINxN). The actual input voltage is the difference between the two (ADCINxP – ADCINxN).
The data sheet for a particular device places some requirements on how close this voltage needs to be to: (VREFHI + VREFLO)/2
Note: The above condition is not met by connecting the negative input to VSSA or VREFLO.
The signal mode must be configured by using either the ADC_setMode() or AdcSetMode() functions, depending on the header files used, provided in C2000warein f28p65x_adc.c. These functions make sure that the correct trim is loaded into the ADC trim registers. These functions must be called at least once after a device reset. The signal mode must not be configured by writing to the ADCCTL2 register directly.