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:Driverlib 错误

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

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1389552/tms320f28p650dk-driverlib-bug

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

工具与软件:

我在 driverlib 中发现了 c2000Ware 中的一个软件错误(版本号为5_02_00)、例如、在 函数所在的第4639行中、路径是 driverlib/28p65x/driverlib/epwm.h  

'EPWM_setDeadBandControlShadowLoadMode'。  
代码不正确、  
HWREGH (BASE + EPWM_O_DBCTL2)=
     ((HWREGH (base + EPWM_O_DBCTL2)&~EPWM_DBCTL2_LOADDBCTLMODE_M)|
      (EPWM_DBCTL2_SHDWDBCTLMODE |(uint16_t) loadMode);
它应该是这样的:
HWREGH (BASE  + EPWM_O_DBCTL2) =
     ((HWREGH (base  + EPWM_O_DBCTL2 ) & ~EPWM_DBCTL2_LOADDBCTLMODE_M|
      (EPWM_DBCTL2_SHDWDBCTLMODE 和 (uint16_t) loadMode);