Other Parts Discussed in Thread: CONTROLSUITE , MOTORWARE 现在在做往Motorware电机控制例程中添加CAN通信的内容。因为controlsuite与motorware编程风格不一样,且Motorware的例程中没有对can的寄存器进行封装,编写相应的结构体。所以自己模仿其他外设模块的编程方式写了一个can.c的文件,利用can.h定义的结构体来编写程序。
其中两部分程序如下图所示:
1. 将定义的寄存器结构体与对应的内存地址相联系
2.…
Other Parts Discussed in Thread: MOTORWARE 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。 https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/622434/motorware-wish-for-next-releases…
Other Parts Discussed in Thread: MOTORWARE 1 使用motorware里面的prog_lab02c工程,启动电机识别功能,识别后电机参数比如Rs,Ls等保存在哪里,如何查看呢
2 两个电机参数有一些差异,其中一个电机能识别,另一个识别过程中电机不转,什么原因呢,我应该在识别前设置哪些参数呢
在 Motorware 较老的版本(1_01_00_13)中USER.H中USER_MAX_VS_MAG_PU的设置是这样的
//! \brief Defines the maximum Voltage vector (Vs) magnitude allowed. This value sets the maximum magnitude for the output of the //! \brief Id and Iq PI current controllers. The Id and Iq current…
Other Parts Discussed in Thread: MOTORWARE 在测试中发现,motorware历程中的usDelay()函数的延时时间不准确。
通过测试发现(launchpad-28069M(90M主频)),
我设置usDelay(15),延时时间才能达到1us.
这里使用CCS内部的clock工具测试。