请问:
例程中,ecmp模块的作用?我这边在1227开发板上调试时,该模块问题较多,包括while循环中无法跳出,重复进入ecmpReadRegister等,进入sys_intvecs.asm异常等;
gui\guicomposer\webapps\DRV8301_TMS570LS12_FOC_SMO_wEncoder中的launcher.exe还需要安装其它程序吗,实测无法运行。
Susan Yang:
TMS570LS12x_CNCD该模块目前是已经停产可,相关的资料比较少
您可以参考下motorware安装文件夹内的
MotorWare/v1.0.3.03/sw/solutions/foc_encoder_speed/gui/docs/qsg_gui_foc_encoder_speed.pdf
关于ECMP,您可以看一下 http://www.ti.com/lit/ug/spnu515c/spnu515c.pdf 的 23.6.3.11 ECMP (Equality Compare)
ECMP can use all pins. This instruction compares a 25-bit data value stored in the data field (D31–D7) to the value stored in the selected ALU register (A, B, R, S, or T)Register select encoding can be found in Section 23.6.2.
If R, S, or T registers are selected, and if the 25-bit data field matches, ECMP updates the register with the 32-bit value (D31-D0).
If the hr_lr bit is cleared, the pin action will occur after a high resolution delay from the next loop resolution clock. If the hr_lr bit is set, the delay is ignored. This delay is programmed in the data field (D6–D0).
The behavior of the pins is governed by the four action options in bits C4:C3. ECMP uses the zero flag to generate opposite pin action (synchronized to the loop resolution clock).