Add new channel Flexio and Emios

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

Add new channel Flexio and Emios

197件の閲覧回数
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 返信

155件の閲覧回数
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 件の賞賛