Yahoo Groups archive

Lpc2000

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

Message

Trouble with LPC2148 P0.2 and P0.3 pins

2006-02-11 by blasteriokas

Hello everyone.
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?

I use KEIL µVision software.

P.S. sorry for my english ;)

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.