1888902_en-US

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

1888902_en-US

1888902_en-US

S32K144: Is there a way to use FlexIO pin for PWM generation in Simulink

Currently trying to figure out how to use a FlexIO pin for PWM generation in Simulink. I don't see any blocks in Simulink for using a FlexIO pin for PWM generation, only for I2C, SPI and UART. Any help would be greatly appreciated. 

Re: S32K144: Is there a way to use FlexIO pin for PWM generation in Simulink

Thank you for the information

Re: S32K144: Is there a way to use FlexIO pin for PWM generation in Simulink

Hello @mirali ,

Unfortunately, in MBDT for S32K1xx, for the FlexIO we do not provide PWM generation blocks. However, such support can be achieved by using custom code in a similar approach described by this article: https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/How-to-use-your-own-C-code-in-our-Toolbox-...

I am not sure if the S32K1 SDK, the abstraction layer on which the MBDT for S32K1 generates the hardware access peripherals code has such support for the PWM generation, so in this case you can directly control and achieve such functionality by writing to registers using a similar approach mentioned in the article above.

Regards,

Marius

タグ(1)
評価なし
バージョン履歴
最終更新日:
‎11-21-2025 09:46 PM
更新者: