Other Parts Discussed in Thread: C2000WARE
目前想用该芯片16位ADC采样,不知道该如何写代码,可在C2000里只找到12位的例程,请问能否提供一下16位ADC的配置例程吗
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.
目前想用该芯片16位ADC采样,不知道该如何写代码,可在C2000里只找到12位的例程,请问能否提供一下16位ADC的配置例程吗
例程路径:C:\ti\c2000\C2000Ware_4_00_00_00\driverlib\f2837xd\examples\cpu1\adc
修改宏定义就能改成16位模式,比如:
#define EX_ADC_RESOLUTION 12
// 12 for 12-bit conversion resolution, which supports (ADC_MODE_SINGLE_ENDED)
// Sample on single pin (VREFLO is the low reference)
// Or 16 for 16-bit conversion resolution, which supports (ADC_MODE_DIFFERENTIAL)
// Sample on pair of pins (difference between pins is converted, subject to
// common mode voltage requirements; see the device data manual)