eflexPWMB

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

eflexPWMB

454 次查看
cyrilmassano
Contributor I

I use the TWR-KV5F220M, and I did run the demo file : flexPWMA DEMO. I would like to use  the eFlexPWMB on the module motor connector, but I don't know how initialize and run the module eflexPWMB on the PIN ( PTE 5, PTE 6, PTE7...) ?

标签 (1)
0 项奖励
回复
1 回复

349 次查看
isaacavila
NXP Employee
NXP Employee

Hello Cyril,

Could you please tell me which example you are using? (KSDK example?, Quick start package example?).

By reading KV5x's reference manual, there is a register for PWM (PWMx_OUTEN) that enable signals for PWMA, PWMB and PWMX modules, once they are enabled, you can configure every port to be used as FLEXPWMx_n, for example, to configure PTE5 to be used as PWM1_A0 output, you should write:

PORTE_PCR5 = PORT_PCR_MUX(5);

previous instruction, let me use PTE5 in its alternative ALT5 mode, which is FLEXPWM1_A0.

PTE5 configure in ALT5 mode.jpg

I hope this can help you!

Regards,

Isaac

0 项奖励
回复