工具/软件:Code Composer Studio
您好!
停止 ePWM、使用跳闸区域或将计数器模式更改为冻结模式、更好的方法是什么? 在本例中、我使用电压源控制我的 ePWM、并希望当 U=0伏时所有 ePWM 输出都为零。
此致
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.
工具/软件:Code Composer Studio
您好!
停止 ePWM、使用跳闸区域或将计数器模式更改为冻结模式、更好的方法是什么? 在本例中、我使用电压源控制我的 ePWM、并希望当 U=0伏时所有 ePWM 输出都为零。
此致
您好!
我使用了 Time Base Counter Freeze、如下所示:
对于跳匣区域、我不知道在这种情况下如何进行编程。 您对此有什么想法吗?
UD1 = ADC_readResult (ADCARESULT_base、ADC_SOC_NUMBER6);// Messung der ADC
IF (UD1<819)
{
ePWM_setTimeBaseCounterMode (EPWM1_base、ePWM_COUNTER_MODE_STOP_FREEZE);
ePWM_setTimeBaseCounterMode (EPWM2_base、ePWM_COUNTER_MODE_STOP_FREEZE);
}
其他
{
ePWM_setTimeBaseCounterMode (EPWM1_base、ePWM_COUNTER_MODE_UP_DOWN);
ePWM_setTimeBaseCounterMode (EPWM2_base、ePWM_COUNTER_MODE_UP_DOWN);
dutyCycle =(UD1*ePWM_TIMER_TBPRD/4095);// Formel Duty_Cycle
ePWM_setCounterCompareValue (EPWM1_base、ePWM_COUNTER_COMPARE_A、dutyCycle);//DutyCycle ePWM1A
ePWM_setCounterCompareValue (EPWM1_base、ePWM_COUNTER_COMPARE_B、(ePWM_TIMER_TBPRD-dutyCycle));//DutyCycle ePWM1B
ePWM_setCounterCompareValue (EPWM2_base、ePWM_COUNTER_COMPARE_A、dutyCycle);//DutyCycle ePWM2A
ePWM_setCounterCompareValue (EPWM2_base、ePWM_COUNTER_COMPARE_B、占空比);
您可以看看如何设置 CMPSS、
http://dev.ti.com/tirex/explore/node?node=ANitrqhsIFh2iKi74mDV8g__gYkahfz__LATEST
此外、对于跳匣区域签出、
http://dev.ti.com/tirex/explore/node?node=AGQH5zZ6qpYvuEiMHzgF8A__gYkahfz__LATEST