lpc804 pull up resistor value

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

lpc804 pull up resistor value

跳至解决方案
2,634 次查看
yarzartunaung
Contributor I

hello,

could u advise what the value of internal pull up and pull down resistor value for lpc804 is? thanks!

标签 (1)
1 解答
2,525 次查看
nxf51211
NXP Employee
NXP Employee

Hi,

The pull-up and pull-down are not passive resistors but active current sources (they typically deliver around 50µA when enabled) that is why there is not a precise value for them. Please refer to the "Ipu"/"Ipd" and "Vi" characteristics in the LPC804 data sheet (Electrical pin characteristics, located at the Table 14, page 48):

pastedImage_1.png

So for example, if a pin at pull-down has a typical Vi of 5V, the current would be of 50µA and therefore the internal resistor value would be of 100 KOhms.

I hope this information can help you, and please ask if you have any more doubts.

Ricardo Delsordo.

在原帖中查看解决方案

5 回复数
1,588 次查看
BerlinRaj
Contributor II

how to configure the IOCON register and how to enable the pull down in pio0-7 in  lpc804? give the example

0 项奖励
回复
87 次查看
kangsenlu
Contributor I
To configure the IOCON register, you must first find the address of the IOCON register you are modifying. After you have the address, it is simple to simply use "*addr = value;" to change it.
However, you must first enable clock to the IOCON subsystem with "LPC_SYSCON->SYSAHBCLKCTRL0 |= (UART0 | SWM | GPIO | IOCON);".
I have noticed that although the user guide says the IOCON reset value is 0xb0, i.e. pull-up resistor enabled. But my own debugging indicates that IOCON value was reset to 0. So I have to manually set that IOCON register with my code.
0 项奖励
回复
18 次查看
kangsenlu
Contributor I
After some more investigation, I found that we must turn on clock to the IOCON subsystem. Otherwise, the chip will NOT automatically set the IOCON register to the default value of 0xb0.
0 项奖励
回复
2,526 次查看
nxf51211
NXP Employee
NXP Employee

Hi,

The pull-up and pull-down are not passive resistors but active current sources (they typically deliver around 50µA when enabled) that is why there is not a precise value for them. Please refer to the "Ipu"/"Ipd" and "Vi" characteristics in the LPC804 data sheet (Electrical pin characteristics, located at the Table 14, page 48):

pastedImage_1.png

So for example, if a pin at pull-down has a typical Vi of 5V, the current would be of 50µA and therefore the internal resistor value would be of 100 KOhms.

I hope this information can help you, and please ask if you have any more doubts.

Ricardo Delsordo.

2,525 次查看
yarzartunaung
Contributor I

thanks Ricardo... 

0 项奖励
回复