LPC54608 M1pin(port1,20) cannot ON-OFF

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

LPC54608 M1pin(port1,20) cannot ON-OFF

932 次查看
実奥山
Contributor II

 tried onoff test of IO port. It is M1-pin,(port1,20).

Other pins do on-off.

But M1 pin do not   on-off.

Below is a sample program.

port(1,17)  do on-off.

But port(1,20 M1 pin) do not   on-off.

    GPIO_Clken(1);         /* GPIO1 CLK enable */

GPIO_PinInit(1,17, &output_config);  

GPIO_PinInit(1,20, &output_config);

 

               oPort_sub(1,17,1);
               oPort_sub(1,17,0);

               oPort_sub(1,20,1);
               oPort_sub(1,20,0);

Please teach me how to control  M1-pin,(port1,20).

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

836 次查看
実奥山
Contributor II

jeremyzhou-san

Thank you.

Only PIO1_17 can output the low(0V) or high(3.3V)level,

But PIO1_20 output only hjgh(3.3V).

Later  I confirmed that PIO1_21 output only hjgh(3.3V) too.

I cannot control PIO1_20 and PIO1_21. 

okuyama

0 项奖励
回复

836 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi 実 奥山,

Thanks for your reply.
It seems a bit weird.
Whether you can upload the complete sample code, meanwhile, I'd highly recommend you to refer to the gpio demo in the SDK library.
You can download the SDK library via the below link.
https://mcuxpresso.nxp.com/en/welcome

Have a great day.

TIC

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

836 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi 実 奥山,

Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
According to the description, you want to configure the PIO1_17 and PIO1_20 as the GPIO, however, only PIO1_17 can output the low or high level, is it right?

pastedImage_2.png
Whether you can upload the complete sample code, meanwhile, I'd highly recommend you to refer to the gpio demo in the SDK library.
You can download the SDK library via the below link.
https://mcuxpresso.nxp.com/en/welcome

Have a great day.

TIC

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复