lpc804 pull up resistor value

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

lpc804 pull up resistor value

跳至解决方案
2,976 次查看
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,867 次查看
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,930 次查看
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 项奖励
回复
429 次查看
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 项奖励
回复
360 次查看
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,868 次查看
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,867 次查看
yarzartunaung
Contributor I

thanks Ricardo... 

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-887968%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELPC804%20%E4%B8%8A%E6%8B%89%E7%94%B5%E9%98%BB%E5%80%BC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-887968%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3Dutf-8%22%20%2F%26gt%3B%0A%3CP%3E%E4%BD%A0%E5%A5%BD%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%E8%AF%B7%E9%97%AE%20lpc804%20%E5%86%85%E9%83%A8%E4%B8%8A%E6%8B%89%E5%92%8C%E4%B8%8B%E6%8B%89%E7%94%B5%E9%98%BB%E7%9A%84%E5%80%BC%E6%98%AF%E5%A4%9A%E5%B0%91%EF%BC%9F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-887968%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3ELPC800%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2176767%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20lpc804%20pull%20up%20resistor%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2176767%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E7%BB%8F%E8%BF%87%E8%BF%9B%E4%B8%80%E6%AD%A5%E8%B0%83%E6%9F%A5%EF%BC%8C%E6%88%91%E5%8F%91%E7%8E%B0%E6%88%91%E4%BB%AC%E5%BF%85%E9%A1%BB%E6%89%93%E5%BC%80%20IOCON%20%E5%AD%90%E7%B3%BB%E7%BB%9F%E7%9A%84%E6%97%B6%E9%92%9F%E3%80%82%E5%90%A6%E5%88%99%EF%BC%8C%E8%8A%AF%E7%89%87%E4%B8%8D%E4%BC%9A%E8%87%AA%E5%8A%A8%E5%B0%86%20IOCON%20%E5%AF%84%E5%AD%98%E5%99%A8%E8%AE%BE%E7%BD%AE%E4%B8%BA%E9%BB%98%E8%AE%A4%E5%80%BC%200xb0%E3%80%82%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2174487%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20lpc804%20pull%20up%20resistor%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2174487%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E8%A6%81%E9%85%8D%E7%BD%AE%20IOCON%20%E5%AF%84%E5%AD%98%E5%99%A8%EF%BC%8C%E9%A6%96%E5%85%88%E5%BF%85%E9%A1%BB%E6%89%BE%E5%88%B0%E8%A6%81%E4%BF%AE%E6%94%B9%E7%9A%84%20IOCON%20%E5%AF%84%E5%AD%98%E5%99%A8%E7%9A%84%E5%9C%B0%E5%9D%80%E3%80%82%E6%9C%89%E4%BA%86%E5%9C%B0%E5%9D%80%E5%90%8E%EF%BC%8C%E5%8F%AA%E9%9C%80%E4%BD%BF%E7%94%A8%22*addr%20%3D%20value%3B%22%20%E5%B0%B1%E8%83%BD%E7%AE%80%E5%8D%95%E5%9C%B0%E6%9B%B4%E6%94%B9%E5%9C%B0%E5%9D%80%E3%80%82%3CBR%20%2F%3E%E4%B8%8D%E8%BF%87%EF%BC%8C%E5%BF%85%E9%A1%BB%E9%A6%96%E5%85%88%E9%80%9A%E8%BF%87%22LPC_SYSCON-%26gt%3BSYSAHBCLKCTRL0%20%7C%3D%20(UART0%20%7C%20SWM%20%7C%20GPIO%20%7C%20IOCON)%3B%22%20%E5%90%AF%E7%94%A8%20IOCON%20%E5%AD%90%E7%B3%BB%E7%BB%9F%E7%9A%84%E6%97%B6%E9%92%9F%E3%80%82%3CBR%20%2F%3E%E6%88%91%E6%B3%A8%E6%84%8F%E5%88%B0%EF%BC%8C%E5%B0%BD%E7%AE%A1%E7%94%A8%E6%88%B7%E6%8C%87%E5%8D%97%E8%AF%B4IOCON%20RESET%E5%80%BC%E4%B8%BA0xb0%EF%BC%8C%E5%8D%B3%E5%90%AF%E7%94%A8%E4%B8%8A%E6%8B%89%E7%94%B5%E9%98%BB%E3%80%82%E4%BD%86%E6%98%AF%E6%88%91%E8%87%AA%E5%B7%B1%E7%9A%84%E8%B0%83%E8%AF%95%E8%A1%A8%E6%98%8E%20IOCON%20%E5%80%BC%E5%B7%B2%20RESET%20%E4%B8%BA%200%E3%80%82%E6%89%80%E4%BB%A5%E6%88%91%E5%BF%85%E9%A1%BB%E7%94%A8%E6%88%91%E7%9A%84%E4%BB%A3%E7%A0%81%E6%89%8B%E5%8A%A8%E8%AE%BE%E7%BD%AEIOCON%E5%AF%84%E5%AD%98%E5%99%A8%E3%80%82%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1748864%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20lpc804%20pull%20up%20resistor%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1748864%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%A6%82%E4%BD%95%E9%85%8D%E7%BD%AE%20IOCON%20%E5%AF%84%E5%AD%98%E5%99%A8%E4%BB%A5%E5%8F%8A%E5%A6%82%E4%BD%95%E5%90%AF%E7%94%A8%20lpc804%20%E4%B8%AD%20pio0-7%20%E7%9A%84%E4%B8%8B%E6%8B%89%EF%BC%9F%E4%B8%BE%E4%BE%8B%E8%AF%B4%E6%98%8E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-887970%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20lpc804%20pull%20up%20resistor%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-887970%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3Dutf-8%22%20%2F%26gt%3B%0A%3CP%3E%E8%B0%A2%E8%B0%A2%E9%87%8C%E5%8D%A1%E5%A4%9A%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-887969%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20lpc804%20pull%20up%20resistor%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-887969%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3Dutf-8%22%20%2F%26gt%3B%0A%3CP%3E%E6%82%A8%E5%A5%BD%EF%BC%8C%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%E4%B8%8A%E6%8B%89%E5%92%8C%E4%B8%8B%E6%8B%89%E7%94%B5%E9%98%BB%E5%99%A8%E4%B8%8D%E6%98%AF%E6%97%A0%E6%BA%90%E7%94%B5%E9%98%BB%E5%99%A8%EF%BC%8C%E8%80%8C%E6%98%AF%E6%9C%89%E6%BA%90%E7%94%B5%E6%B5%81%E6%BA%90%EF%BC%88%3CSPAN%3E%E5%90%AF%E7%94%A8%E6%97%B6%3C%2FSPAN%3E%E7%94%B5%E6%B5%81%E9%80%9A%E5%B8%B8%E7%BA%A6%E4%B8%BA%2050%C2%B5A%EF%BC%89%EF%BC%8C%E5%9B%A0%E6%AD%A4%E6%B2%A1%E6%9C%89%E7%B2%BE%E7%A1%AE%E7%9A%84%E7%94%B5%E6%B5%81%E5%80%BC%E3%80%82%3C%2FSPAN%3E%3CSPAN%3E.%E8%AF%B7%E5%8F%82%E9%98%85%20LPC804%20%E6%95%B0%E6%8D%AE%E8%A1%A8%E4%B8%AD%E7%9A%84%22Ipu%22%2F%22Ipd%22%20%E5%92%8C%22Vi%22%20%E7%89%B9%E6%80%A7%EF%BC%88%E7%94%B5%E6%B0%94%E5%BC%95%E8%84%9A%E7%89%B9%E6%80%A7%EF%BC%8C%E4%BD%8D%E4%BA%8E%E8%A1%A8%2014%EF%BC%8C%E7%AC%AC%2048%20%E9%A1%B5%EF%BC%89%EF%BC%9A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_1.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_1.png%22%20style%3D%22width%3A%20699px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F73421iA433B62A448CBAD3%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pastedImage_1.png%22%20alt%3D%22pastedImage_1.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%E4%BE%8B%E5%A6%82%EF%BC%8C%E5%A6%82%E6%9E%9C%E4%B8%8B%E6%8B%89%E5%BC%95%E8%84%9A%E7%9A%84%E5%85%B8%E5%9E%8B%E7%94%B5%E5%8E%8B%E4%B8%BA%205V%EF%BC%8C%E5%88%99%E7%94%B5%E6%B5%81%E4%B8%BA%2050%C2%B5A%EF%BC%8C%E5%9B%A0%E6%AD%A4%E5%86%85%E9%83%A8%E7%94%B5%E9%98%BB%E5%80%BC%E4%B8%BA%20100%20KOhms%E3%80%82%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%E5%B8%8C%E6%9C%9B%E8%BF%99%E4%BA%9B%E4%BF%A1%E6%81%AF%E8%83%BD%E5%AF%B9%E6%82%A8%E6%9C%89%E6%89%80%E5%B8%AE%E5%8A%A9%EF%BC%8C%E5%A6%82%E6%9E%9C%E6%82%A8%E8%BF%98%E6%9C%89%E4%BB%BB%E4%BD%95%E7%96%91%E9%97%AE%EF%BC%8C%E8%AF%B7%E5%92%A8%E8%AF%A2%E6%88%91%E4%BB%AC%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%E9%87%8C%E5%8D%A1%E5%A4%9A-%E5%BE%B7%E5%B0%94%E7%B4%A2%E5%A4%9A%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E