Processor Expert PWM Starting Pulse Width on MKL05Z

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Processor Expert PWM Starting Pulse Width on MKL05Z

ソリューションへジャンプ
2,570件の閲覧回数
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,944件の閲覧回数
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,945件の閲覧回数
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 件の賞賛
返信