Processor Expert PWM Starting Pulse Width on MKL05Z

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Processor Expert PWM Starting Pulse Width on MKL05Z

跳至解决方案
2,389 次查看
rampsr
Contributor III

When setting the PWM component for the Kinetis MKL05Z in Codewarrior 10.3 I get an error when trying to set the "starting pulse width" to 0. "Error in initialization value, non zero expected". I want my signal to initialize with a 0% duty cycle like I have been able to with the HC08 series processors before switching to Kinetis. Is there a specific reason why processor expert refuses to set the starting pulse width to 0, or is this a bug/flaw in processor expert?

Thanks

0 项奖励
回复
1 解答
1,763 次查看
Petr_H
NXP Employee
NXP Employee

Hi,

Unfortunately, this is a limitation of Processor Expert timing computation model, that it cannot handle setting 0 duty in PWM_LDD component if the Counter frequency is set to "Auto select."

To workaround this situation, you can do the following steps:

1. Open the TimerUnit_LDD component referenced from the PWM_LDD component (visible in 'Expert' view mode, see the attached picture pwm1.png, there is TU1)

2. Open the inspector of the referenced TimerUnit_LDD component (e.g. TU1) and look for InputClock source / Counter frequency. There is by default "Auto select". Type in this field the same value shown in the third column of the row (see the picture pwm2.png, there is 655.360 kHz).

After setting the Counter frequency to the fixed value, the 0 ms pulse width stops reporting the error.

best regards

Petr Hradsky

Processor Expert Support Team

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,764 次查看
Petr_H
NXP Employee
NXP Employee

Hi,

Unfortunately, this is a limitation of Processor Expert timing computation model, that it cannot handle setting 0 duty in PWM_LDD component if the Counter frequency is set to "Auto select."

To workaround this situation, you can do the following steps:

1. Open the TimerUnit_LDD component referenced from the PWM_LDD component (visible in 'Expert' view mode, see the attached picture pwm1.png, there is TU1)

2. Open the inspector of the referenced TimerUnit_LDD component (e.g. TU1) and look for InputClock source / Counter frequency. There is by default "Auto select". Type in this field the same value shown in the third column of the row (see the picture pwm2.png, there is 655.360 kHz).

After setting the Counter frequency to the fixed value, the 0 ms pulse width stops reporting the error.

best regards

Petr Hradsky

Processor Expert Support Team

0 项奖励
回复