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.

[参考译文] TMS320F2800157-Q1:c2000ware 器件支持中缺少信息

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

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1451546/tms320f2800157-q1-missing-info-in-c2000ware-device-support

器件型号:TMS320F2800157-Q1
Thread 中讨论的其他器件:C2000WARE

工具与软件:

器件支持的"f280015x_EPWM_defines.h"文件中缺少信息。

在 "f280015x_EPWM_defines.h"中缺失分频信息(8分频、16分频、32分频等)

//
// HSPCLKDIV 和 CLKDIV 位
//
#define TB_DIV1 0x0

#define TB_DIV2 0x1

#define TB_DIV4 0x2

请考虑在将来的 c2000ware 版本中更正它们。

将与 driverlib 中的"epwm.h"进行比较:

//
//
//! 可作为传递给 EPWM_setClockPrescaler()的值
//! \e 预分频器参数。
//
//
typedef 枚举

EPWM_CLOCK_DIVIDER_1 = 0、//!<对时钟进行1分频
EPWM_CLOCK_DIVIDER_2 = 1、//!<将时钟除以2
EPWM_CLOCK_DIVIDER_4 = 2、//!<对时钟进行4分频
EPWM_CLOCK_DIVIDER_8 = 3、//!<对时钟进行8分频
EPWM_CLOCK_DIVIDER_16 = 4、//!<对时钟进行16分频
EPWM_CLOCK_DIVIDER_32 = 5、//!<将时钟除以32
EPWM_CLOCK_DIVIDER_64 = 6、//!<将时钟除以64
EPWM_CLOCK_DIVIDER_128 = 7 //!<时钟除以128
} EPWM_ClockDivider;

//
//
//! 可作为传递给 EPWM_setClockPrescaler()的值
//! \e highSpeedPrescaler 参数。
//
//
typedef 枚举

EPWM_HSCLOCK_DIVIDER_1 = 0、//!<对时钟进行1分频
EPWM_HSCLOCK_DIVIDER_2 = 1、//!<对时钟进行2分频
EPWM_HSCLOCK_DIVIDER_4 = 2、//!<对时钟进行4分频
EPWM_HSCLOCK_DIVIDER_6 = 3、//!<对时钟进行6分频
EPWM_HSCLOCK_DIVIDER_8 = 4、//!<对时钟进行8分频
EPWM_HSCLOCK_DIVIDER_10 = 5、//!<对时钟进行10分频
EPWM_HSCLOCK_DIVIDER_12 = 6、//!<对时钟进行12分频
EPWM_HSCLOCK_DIVIDER_14 = 7 //!<对时钟进行14分频
} EPWM_HSClockDivider;



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

    您好!

    我将在下一个 c2000ware 版本中提交一个请求单以更正此问题。

    谢谢!

    Luke