LPC81x default state of GPIO

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

LPC81x default state of GPIO

Jump to solution
372 Views
Sid_Zhou
Contributor II

We are using LPC812M101JDH20 on one of our products. The datasheet specified the default state of GPIO(PIO0_16) is "Input with pull-up."

Somehow, in our application, we need this PIO0_16 to be open drain at the very early start-up stage. I am wondering if this default state can be modified somewhere within "startup_LPC8xx.s" 

0 Kudos
Reply
1 Solution
348 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @Sid_Zhou 

You can add related function in SystemInit.

Enable clock to IOCON block.

Configure PIO0_16 as open-drain output.

Harry_Zhang_0-1749019316518.png

BR

Harry

View solution in original post

2 Replies
349 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @Sid_Zhou 

You can add related function in SystemInit.

Enable clock to IOCON block.

Configure PIO0_16 as open-drain output.

Harry_Zhang_0-1749019316518.png

BR

Harry

330 Views
Sid_Zhou
Contributor II
Thanks a lot.
We have around 200us~300us improvement with this solution. This should be enough to solve our problem during start-up.
0 Kudos
Reply