LPC54608 M1pin(port1,20) cannot ON-OFF

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC54608 M1pin(port1,20) cannot ON-OFF

895 Views
実奥山
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).

Labels (1)
0 Kudos
Reply
3 Replies

799 Views
実奥山
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 Kudos
Reply

799 Views
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 Kudos
Reply

799 Views
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 Kudos
Reply