Open-drain for alternate function LPC17XX

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

Open-drain for alternate function LPC17XX

跳至解决方案
1,435 次查看
xvidaurrazaga
Contributor I

Hi everyone

I am trying to set pins SCK0 and MOSI0(BRIDGE 1) in open-drain mode for microntroller 1752 but setting the register LPC_PINCON->PINMODE_OD1 to open drain does not seem to work. 

Clock Pin: P1[20]/MCI0/PWM1[2]/SCK0

Data Pin: P1[24]/MCI2/PWM1[5]/MOSI0

LPC_PINCON->PINMODE_OD1 |= 1<<20; //Bit P1.20 is open drain
LPC_PINCON->PINMODE_OD1 |= 1<<24; //Bit P1.24 is open drain

If I configure the pin as GPIO the pin is set in open-drain. 

If there any way to set a non-GPIO pin in open-drain mode?

Thank you. 

0 项奖励
回复
1 解答
1,417 次查看
nxf77486
NXP TechSupport
NXP TechSupport

Hello,

The GPIO  pins are only configurable in pull-up/down resistors, open drain mode, and repeater mode. The I2C is a dedicated open-drain pins without pull-up/down.

The open drain SPI option is not implemented in this design LPC17xx.

 In conclusion the GPIO can only be set in open-drain mode.

 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,418 次查看
nxf77486
NXP TechSupport
NXP TechSupport

Hello,

The GPIO  pins are only configurable in pull-up/down resistors, open drain mode, and repeater mode. The I2C is a dedicated open-drain pins without pull-up/down.

The open drain SPI option is not implemented in this design LPC17xx.

 In conclusion the GPIO can only be set in open-drain mode.

 

0 项奖励
回复
1,409 次查看
xvidaurrazaga
Contributor I

thank you so much for your reply

0 项奖励
回复