AnsweredAssumed Answered

How to set PIO0_8 as GPIO output on LPC11C24 MCU

Question asked by Ajay Kumar on Apr 6, 2019
Latest reply on Apr 7, 2019 by jeremyzhou

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

Outcomes