How to set PIO0_8 as GPIO output on LPC11C24 MCU

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

How to set PIO0_8 as GPIO output on LPC11C24 MCU

726 Views
ajay_6094
Contributor I

Hello,

I am trying to set Pin PIO0_8 as GPIO output with state 0. I am able to do so for pin PIO0_7 but not for PIO0_8 & 9.

My code is:

@

// for PIO0_7 pin

Chip_GPIO_SetPinDIROutput(LPC_GPIO, 0,7);
Chip_GPIO_SetPinState(LPC_GPIO, 0, 7, 0);

//for PIO0_8 & 9

Chip_GPIO_SetPinDIROutput(LPC_GPIO, 0,8);
Chip_GPIO_SetPinState(LPC_GPIO, 0, 8, 0);

Chip_GPIO_SetPinDIROutput(LPC_GPIO, 0,9);
Chip_GPIO_SetPinState(LPC_GPIO, 0, 9, 0);

Please help me.

Thanks & regards,

Ajay Kumar

Labels (2)
0 Kudos
1 Reply

588 Views
jeremyzhou
NXP Employee
NXP Employee

Hi Ajay Kumar,

Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
I've answered the question in the thread, please check it.
https://community.nxp.com/thread/499768
Have a great day,
TIC

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

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos