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.

[参考译文] TMS320F28P650DK:DriveLib 功能:待审核

Guru**** 2564565 points
Other Parts Discussed in Thread: C2000WARE

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1392756/tms320f28p650dk-drivelib-functions-to-be-review

器件型号:TMS320F28P650DK
Thread 中讨论的其他器件:C2000WARE

工具与软件:

您好、TI 支持团队:

请回顾这些函数

  • ASysCtl_selectCMPHPMUX
  • ASysCtl_selectCMPLPMUX

因为比较 HP 函数的 C 代码、  

静态内联空
ASysCtl_selectCMPHPMUX (ASysCtl_CMPHPMuxSelect、uint32_t 值)

断言(值<= 4U);

EALLOW;

//
//设置适当的复用选择的值。
//
if ((uint16_t) select > 32u)

HWREG (ANALOGESUBSYS_BASE + ASYSCTL_O_CMPHPMXSEL1)=
(HWREG (ANALOGESUBSYS_BASE + ASYSCTL_O_CMPHPMXSEL1)&
~((uint32_t) ASYSCTL_CMPHPMXSEL1_CMP11HPMXSEL_M <<(uint32_t) SELECT)|
(value <<(uint32_t) select - 32u);
}

枚举  

 ASYSCTL_CMPHPMUX_SELECT_11 = 0U + 32U //!< CMPHPMUX 选择11

由于使用了 关系运算符 >、因此始终会跳过"if"实例。

从用户的角度来看、无法将 ADC 输入连接到 CMP11 HP 和 LP。

我已从 C2000Ware 5_02中拾取代码。

这是我的谦虚的意见,所以随时可以评论。

此致、

Ettore