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.

TMS320F28377D: 16位差分ADC如何配置

Part Number: TMS320F28377D
Other Parts Discussed in Thread: C2000WARE

目前想用该芯片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)

  • 请问有无完整的16位·ADC差分采样程序呢,谢谢

  • 请教下,将宏定义改成16,差分输入,那结果寄存器的数值要怎么运算呢,手册里是{(2*ADCRESULTy/65535)-1},如果是ADCA0和ADCA1作为差分输入,那公式里的y,是指A0的还是A1的,如果是取其中一个结果寄存器的值,那另外一个结果寄存器的值有什么含义?