Open drain behaviour for alternative pin functions?

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

Open drain behaviour for alternative pin functions?

1,423 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by pwuertz on Fri Oct 11 09:03:37 MST 2013
Using the PINMODE and PINMODE_OD registers on the LPC1769 I can set an output pin to open-drain mode, which works fine with a pin's default GPIO function. In one of my applications I tried to use the pin P1.22 as an output of the timer match register MAT1.0 in open drain mode. However, the open drain mode seems to be ignored once I switch from GPIO to the MAT1.0 function.

Is this the intended behavior? The user manual (UM10360 Page 105) kind of gave me the impression that the pin mode is independent from the selected function

Quote:
The on-chip pull-up/pull-down resistor can be selected for every port pin regardless of the
function on this pin...

Does open drain only work for the GPIO function?
标签 (1)
0 项奖励
回复
1 回复

1,128 次查看
mikaelstolt
Contributor I

Hi,

I just had similar open drain-issues for the I2C interfaces.

According to the latest Errata for LPC176x the OD-registers only works for pins in GPIO-mode.

If the pin is used for any other function the OD-register is overridden and is only set when the interface demands it.

Regards

Mike

0 项奖励
回复