Hi JiShufan9,
请问是否用了S32K-RM参考手册提到的Synchronization Points来更新PWM占空比? The synchronization points are points where the registers can be updated with their write buffer by PWM synchronization. These synchronization points are safe points because guarantee smooth transitions in the generated PWM signals. 这有提到: 可以让生成的PWM信号平滑过渡。
请问你的工程使用S32K1 SDK的API,还是直接操作寄存器?AN5303 S32K 上 FlexTimer 模块的特性和工作模式 有提到半周期和全周期重装策略。
AN5303SW 里有直接操作寄存器的示例。
SDK的话,根据你使用的S32DS for ARM 还是S32DS for S32 Platform,在Processor Expert或S32 Configuration Tool外设配置工具页面应该都是可以选择的,比如以下是S32DS for S32 Platform的配置页面:
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Hi JiShufan9,
请问是否用了S32K-RM参考手册提到的Synchronization Points来更新PWM占空比? The synchronization points are points where the registers can be updated with their write buffer by PWM synchronization. These synchronization points are safe points because guarantee smooth transitions in the generated PWM signals. 这有提到: 可以让生成的PWM信号平滑过渡。
请问你的工程使用S32K1 SDK的API,还是直接操作寄存器?AN5303 S32K 上 FlexTimer 模块的特性和工作模式 有提到半周期和全周期重装策略。
AN5303SW 里有直接操作寄存器的示例。
SDK的话,根据你使用的S32DS for ARM 还是S32DS for S32 Platform,在Processor Expert或S32 Configuration Tool外设配置工具页面应该都是可以选择的,比如以下是S32DS for S32 Platform的配置页面:
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------