lpc804 pull up resistor value

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

lpc804 pull up resistor value

Jump to solution
2,954 Views
yarzartunaung
Contributor I

hello,

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

Labels (1)
1 Solution
2,845 Views
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.

View solution in original post

5 Replies
1,908 Views
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 Kudos
Reply
407 Views
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 Kudos
Reply
338 Views
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 Kudos
Reply
2,846 Views
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,845 Views
yarzartunaung
Contributor I

thanks Ricardo... 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-887968%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Elpc804%20pull%20up%20resistor%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-887968%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehello%2C%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3Ecould%20u%20advise%20what%20the%20value%20of%20internal%20pull%20up%20and%20pull%20down%20resistor%20value%20for%20lpc804%20is%3F%20thanks!%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%3EAfter%20some%20more%20investigation%2C%20I%20found%20that%20we%20must%20turn%20on%20clock%20to%20the%20IOCON%20subsystem.%20Otherwise%2C%20the%20chip%20will%20NOT%20automatically%20set%20the%20IOCON%20register%20to%20the%20default%20value%20of%200xb0.%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%3ETo%20configure%20the%20IOCON%20register%2C%20you%20must%20first%20find%20the%20address%20of%20the%20IOCON%20register%20you%20are%20modifying.%20After%20you%20have%20the%20address%2C%20it%20is%20simple%20to%20simply%20use%20%22*addr%20%3D%20value%3B%22%20to%20change%20it.%3CBR%20%2F%3EHowever%2C%20you%20must%20first%20enable%20clock%20to%20the%20IOCON%20subsystem%20with%20%22LPC_SYSCON-%26gt%3BSYSAHBCLKCTRL0%20%7C%3D%20(UART0%20%7C%20SWM%20%7C%20GPIO%20%7C%20IOCON)%3B%22.%3CBR%20%2F%3EI%20have%20noticed%20that%20although%20the%20user%20guide%20says%20the%20IOCON%20reset%20value%20is%200xb0%2C%20i.e.%20pull-up%20resistor%20enabled.%20But%20my%20own%20debugging%20indicates%20that%20IOCON%20value%20was%20reset%20to%200.%20So%20I%20have%20to%20manually%20set%20that%20IOCON%20register%20with%20my%20code.%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%3Ehow%20to%20configure%20the%20IOCON%20register%20and%20how%20to%20enable%20the%20pull%20down%20in%20pio0-7%20in%26nbsp%3B%20lpc804%3F%20give%20the%20example%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%3CP%3Ethanks%20Ricardo...%26nbsp%3B%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%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EThe%20pull-up%20and%20pull-down%20are%20not%20passive%20resistors%20but%20active%20current%20sources%20(they%20%3CSPAN%3Etypically%20deliver%20around%2050%C2%B5A%20when%20enabled%3C%2FSPAN%3E)%20that%20is%20why%20there%20is%20not%20a%20precise%20value%20for%20them%3C%2FSPAN%3E%3CSPAN%3E.%20Please%20refer%20to%20the%20%22Ipu%22%2F%22Ipd%22%20and%20%22Vi%22%20characteristics%20in%20the%20LPC804%20data%20sheet%20(Electrical%20pin%20characteristics%2C%20located%20at%20the%20Table%2014%2C%20page%2048)%3A%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%3ESo%20for%20example%2C%20if%20a%20pin%20at%20pull-down%20has%20a%20typical%20Vi%20of%205V%2C%20the%20current%20would%20be%20of%2050%C2%B5A%20and%20therefore%20the%20internal%20resistor%20value%20would%20be%20of%20100%20KOhms.%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20hope%20this%20information%20can%20help%20you%2C%20and%20please%20ask%20if%20you%20have%20any%20more%20doubts.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3ERicardo%20Delsordo.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E