setup pwm output

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

setup pwm output

1,430 次查看
bgraham
Contributor IV

I need to setup a PWM output on a GPIO pin.

Board: FRDM-KL26Z

I am using the Kinetis SDK 2.0 API.

In the TPM: Timer PWM Module, can a GPIO pin be selected as an output?

Thanks,

Bruce

0 项奖励
回复
2 回复数

1,109 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi Bruce,

First please read the Pinouts and Packaging chapter in datasheet to check if PTM is one of the ALT function of that pin.

If the answer is yes, you can use MCUXpresso IDE to assign PWM out on this pin. In the most update version of the IDE 10.2.x, MCUXpresso Config Tool has been integrated into IDE. In Menu bar, select Configtools->Pins, then you can assign all the pins function. You can find the help document in https://www.nxp.com/support/developer-resources/software-development-tools/mcuxpresso-software-and-t...

Regards,

jing

0 项奖励
回复

1,109 次查看
bgraham
Contributor IV

Using the MCUXpresso IDE, can a GPIO be setup as a PWM with a timer?

0 项奖励
回复