LPC81x default state of GPIO

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

LPC81x default state of GPIO

跳至解决方案
387 次查看
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 项奖励
回复
1 解答
363 次查看
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

在原帖中查看解决方案

2 回复数
364 次查看
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

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