Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] Re: LPC2114/2124 pin select usage

2005-03-31 by Robert Adsett

At 05:05 PM 3/31/05 +0000, bobtransformer wrote:
>Thank you, I feel somewhat better hearing this.
>What bothered me is looking at PINSEL0 and PINSEL1
>registers.
>
>When the bits are set to 00, I see pins are pretty much
>GPIO (left hand column of the table).  Can the pins be configured as
>GPIO and then initializing the other functions such as PWM and UARTs
>and A/D channls to enabled make the IO and alternate functions
>available on their respective pins, while keeping the other
>GPIO pins, GPIO ??
>
>OR, how is this done ?  Maybe I just need to spend a lot more
>time with the manual.

There are two bits to set the function for each pin.  You just set the 
appropriate PINSEL register as needed to get the combination you want.

IE

PINSEL0 = 0x40;

Sets pin 3 to function 1 and all of pins 0-2, 4-15 to 0;

You do have to set up the appropriate alternate functions as well of course.

Robert

" 'Freedom' has no meaning of itself.  There are always restrictions,   be 
they legal, genetic, or physical.  If you don't believe me, try to chew a 
radio signal. "  -- Kelvin Throop, III
http://www.aeolusdevelopment.com/

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.