2401984_en-US

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

2401984_en-US

2401984_en-US

Regarding the issue of the S32K144's PWM frequency changing periodically.

I'm currently developing for the NXP S32K144 and have encountered a problem. Using the EB configuration tool, I've configured the four output channels of FTM0 and called `PWM_Init();setdutycycle(8129)` in the code. In the configuration, I selected center-aligned mode, no dead time, and no binding with other channels. The period was set to 0.00125, and each channel was in independent mode, resulting%的方波,这显然不对,我希望是25% in a 250µs duty cycle of 20%. So, I changed the duty cycle to `setdutycycle(16339)`, but this resulted in an incorrect waveform. The channel now alternates between a 150µs square wave with a 66% duty cycle and a 100µs square wave with a 50% duty cycle. Why is this happening? This is my actual waveform.

In fact, it's clear that I have two problems: 1. Why is my PWM duty cycle setting off incorrectly? 2. Why is my PWM cycle constantly changing?

Re: 关于S32k144的pwm频率会周期变化的问题

Hi

Please tell me which version of Real-Time Drivers for S32K1 you are testing, or which previous version of AUTOSAR MCAL for S32K1 devices ?

Please note that MCAL support for MPC5xxx and S32K1xx devices has been discontinued. Further support requires approval from the marketing team; please contact your NXP sales representative for assistance.

Best Regards,
Robin

Re: 关于S32k144的pwm频率会周期变化的问题

I'm not sure which version of the software you're using, but you need to pay attention to the Loading Point settings. Please refer to the following two discussions:
Changing FTM_PWM period and duty cycle
S32K116 PWM output problem

タグ(1)
評価なし
バージョン履歴
最終更新日:
木曜日
更新者: