Open-drain for alternate function LPC17XX

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Open-drain for alternate function LPC17XX

ソリューションへジャンプ
1,293件の閲覧回数
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,275件の閲覧回数
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,276件の閲覧回数
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,267件の閲覧回数
xvidaurrazaga
Contributor I

thank you so much for your reply

0 件の賞賛