EmbeddedRelated.com
Forums
Memfault Beyond the Launch

LPC2138 GPIO port1

Started by Michal Krestan November 30, 2006
Hi All,

does anybody have idea, how to set pins P1.28-P1.31 as outputs on LPC2138? I've got at IODIR1=0xFFFF0000 and for
example P1.26 works well as output, but still no success between P1.28 and P1.31.

Michal

An Engineer's Guide to the LPC2100 Series

> -----Original Message-----
> From: l...
> [mailto:l...]On Behalf
> Of Michal Krestan
> Sent: Thursday, November 30, 2006 4:42 PM
> To: l...
> Subject: [lpc2000] LPC2138 GPIO port1
>
> Hi All,
>
> does anybody have idea, how to set pins P1.28-P1.31 as
> outputs on LPC2138? I've got at IODIR1=0xFFFF0000 and for
> example P1.26 works well as output, but still no success
> between P1.28 and P1.31.
>
> Michal
>

Is there something that needs to be done to disable the
JTAG port?

Mike
Hi All,

does anybody have idea, how to set pins P1.28-P1.31 as outputs on LPC2138? I've got at IODIR1=0xFFFF0000 and for
example P1.26 works well as output, but still no success between P1.28 and P1.31.

Michal
Did Pin function Select register 2 (PINSEL2), bit 2, were celar?

"2 GPIO/DEBUG 0 Pins P1.36-26 are used as GPIO pins."
See also this note below:

"Note: LOW on this pin (P1.26) while RESET is LOW enables pins P1.31:26 to
operate as Debug port after reset"

"21.5 Reset state of multiplexed pins

On the LPC2131/2/4/6/8, the pins above are multiplexed with P1.31-26. To
have them
come up as a Debug port, connect a weak bias resistor (4.7-10 k depending
on the
external JTAG circuitry) between VSS and the P1.26/RTCK pin. To have them
come up as
GPIO pins, do not connect a bias resistor, and ensure that any external
driver connected
to P1.26/RTCK is either driving high, or is in high-impedance state, during
Reset."

Maybe it can help you.
;)

On 01/12/06, Michal Krestan wrote:
>
> Hi All,
>
> does anybody have idea, how to set pins P1.28-P1.31 as outputs on LPC2138?
> I've got at IODIR1=0xFFFF0000 and for
> example P1.26 works well as output, but still no success between P1.28 and
> P1.31.
>
> Michal
>
>
>

--
Thiago Pinheiro Felix da Silva e Lima
Engenheiro

Memfault Beyond the Launch