Add new channel Flexio and Emios

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

Add new channel Flexio and Emios

198 次查看
Silvano
Contributor I

Hello all,

When I add a new channel in the example "Flexio_Pwm_Ip_Example_S32K396", I can not managed to change the duty cycle and the period by using the function "Flexio_Pwm_Ip_UpdatePeriodDuty" in the main.c, I can only do it by default at initialization from  peripherals > Flexio_Pwm.

I faced the same issue with the emios example.

I attached both projects here.

Could you help me please ?

 

I think there is an issue of configuration but I don't know how to configure it in order to change the the duty cycle and the period of the channel_2 (which I added) from the main.c as below : 

Silvano_0-1710489970469.png

 

Thank you very much.

0 项奖励
1 回复

156 次查看
Nhi_Nguyen
NXP Employee
NXP Employee

Hi @Silvano ,

I looked at your project, the issue is from your file main.c, so please change it as below:

Nhi_Nguyen_0-1710992561588.png

 

Best regards,

Nhi

标记 (1)
0 项奖励