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.

[参考译文] CCS/TMS320F28027:软件驱动程序模型问题

Guru**** 2534260 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/605365/ccs-tms320f28027-issue-with-software-driver-model

器件型号:TMS320F28027

工具/软件:Code Composer Studio

您好!

我是微控制器的新手。 我正在处理软件驱动程序模式。 在使用 ADC 时、我在源文件中找到以下类型的利用率。 无法理解

请帮帮我

void ADC_setVoltRefSrc (ADC_Handle adcHandle、const ADC_VoltageRefSrc_e voltSrc)

ADC_Obj * ADC =(ADC_Obj *) adcHandle;

ENABLE_PROTECTED 寄存器_WRITE_MODE;

//清除位

ADC->ADCCTL1 &=(~ADC_ADCCTL1_ADCREFSEL_BITS);

//设置位

ADC->ADCCTL1 |= voltSrc;

disable_protected_register_write_mode;

返回;

}// adc_setVoltRefSrc()函数结束

谢谢你

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

    您好!

    您尤其不理解哪一项? 该函数的目的是什么? 实际代码的含义? 如果您可以指定、我很乐意解释。

    谢谢、

    惠特尼