How to set PIO0_8 as GPIO output on LPC11C24 MCU

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

How to set PIO0_8 as GPIO output on LPC11C24 MCU

1,253 次查看
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

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

1,115 次查看
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 项奖励
回复