IMXRT1062 PWM not outputting

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

IMXRT1062 PWM not outputting

634 次查看
imxrt1062_PWM
Contributor I

Hi,

I am using i.MxRT1062 processor. I am having issue outputting the PWM signal. Is the XBARA mandatory to output the PWM signal?

I have to set the pinmux for the IOMUXC_GPIO_EMC_23_FLEXPWM1_PWMA00 pin i.e., GPIO_EMC23 pin which is on PWM1 Submodule 0 Channel A. Could someone please confirm if the XBAR needs to be configured for this pin.

I think the PWM port is correctly set up as the reload interrupt is happening correctly, but the output is not throwing any signal.

Thank you.

 

 

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

593 次查看
mjbcswitzerland
Specialist V

Hi

You need to set the pin's mux setting and also ensure that the IOMUXC_FLEXPWM1_PWMA0_SELECT_INPUT register is set to match.

This is how it is done in the uTaker project:

                _CONFIG_PERIPHERAL(GPIO_EMC_23, FLEXPWM1_PWMA00, (ulCharacteristics)); // select FLEXPWM1_PWMA00 on GPIO4-23 - alt function 1
                IOMUXC_FLEXPWM1_PWMA0_SELECT_INPUT = IOMUXC_FLEXPWM1_PWMA0_SELECT_INPUT_GPIO_EMC_23_ALT1;

Regards

Mark

For available stock of 1062 see here: https://www.utasker.com/Shop/semi.html

0 项奖励
回复

605 次查看
_Leo_
NXP TechSupport
NXP TechSupport

Hi,

Thank you so much for your interest in our products and for using our community.

If you refer to Table 10-1. Muxing Options from the reference manual the FLEXPWM1_PWM0_A signal can be routed directly to the following pads:

nxf86756_0-1691028447892.png

In fact if you consult the SDK example evkbmimxrt1060_pwm you will notice how the GPIO_SD_B0_00 pad is used. This can serve as a reference.

It is not necessary to use XBAR for the aforementioned pads.

Hope it helps you.

Have a nice day!

0 项奖励
回复