Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2000] Trouble with LPC2148 P0.2 and P0.3 pins

2006-02-11 by Karl Olsen

---- Original Message ----
From: "blasteriokas" <blasteriokas@...>
To: <lpc2000@yahoogroups.com>
Sent: Saturday, February 11, 2006 11:32 AM
Subject: [lpc2000] Trouble with LPC2148 P0.2 and P0.3 pins

> I am having problems with P0.2 and P0.3 pins.
> The trouble is that I can't define them as outputs. I have wrote a
> small program:
>
> #include <LPC214x.H>
> void main(void)
> {
>    PINSEL0 = 0;
>    IODIR0 = 0xFFFC;
>    IOPIN0 = 0x00FC;
>    PCON = 1;         // IDLE mode
> }
>
> When program is executed, on pins P0.4..15 is logical '1', but on
> these P0.2 and P0.3 - nothing. I connected a pull-up resistor to Vcc -
> pins does not refuse it, so, I think, these two pins works like
> inputs. But WHY?

Read the pin descriptions in the datasheet or manual, including the 
footnotes.  They are open drain.

Karl Olsen

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.