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.

[参考译文] TMS320F28335:在 ADC_16ch_LCD_main.c 示例中

Guru**** 2539500 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/610311/tms320f28335-in-adc_16ch_lcd_main-c-example

器件型号:TMS320F28335

您好!

 在 ADC_16ch_LCD_main.c 示例中描述的以下术语的含义是什么、

SampleTable[0]= AdcRegs.ADCRESULT0 >> 4;
SampleTable[1]= AdcRegs.ADCRESULT1 >> 4;
SampleTable[2]= AdcRegs.ADCRESULT2 >> 4;
SampleTable[3]= AdcRegs.ADCRESULT3 >> 4;
SampleTable[4]= AdcRegs.ADCRESULT4 >> 4;
SampleTable[5]= AdcRegs.ADCRESULT5 >> 4;
SampleTable[6]= AdcRegs.ADCRESULT6 >> 4;
SampleTable[7]= AdcRegs.ADCRESULT7 >> 4;

请解释相同的内容。

谢谢你。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    你(们)好,Saran

    以上是将 ADC 结果寄存器右移4位的意思。 之所以这样做、是因为 F28335具有12位 ADC、而寄存器是16位宽。

    此致、
    Gautam