Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2100] Re: GPIO - Pins

2004-02-03 by microbit

The I2C SDA and SCL are on those pins.
It seems disabling the I2C (default) doesn't provide push-pull
instead of opendrain as needed by I2C

-- Kris



Hi,

I have a similar problem. I want to use p0.2 and p0.3 as standard GPIO
Output Pins.
For this use I need a Pull up resistor.

If I use another Pin like P0.30 the level not changes on wire, not with
pull up not with pull down and not without anything.
What can be wrong?

Here is my code: I think it's not the Problem, I hope

    REG(PCB_PINSEL1) &= ~(0xF0000000);
    REG(PCB_PINSEL0) &= ~(0xF0);
    REG(GPIO_IODIR) |= 0xC00000C; //Output direction for P0.30/31/2/3
    REG(GPIO_IOCLR) |= 0xC00000C; //Set Port P0.30/31/2/3 low
//P0.2/3 OK with Pull-up
    REG(GPIO_IOSET) |= 0xC00000C; //Set Port P0.30/31/2/3 high
//P0.2/3 OK with Pull-up
    b_sleep(0xffff);
    REG(GPIO_IOCLR) |= 0xC00000C; //Set Port P0.30/31/2/3 low
//P0.2/3 OK with Pull-up


Regards, S\ufffdren



--- In lpc2100@yahoogroups.com, "Thomas Weber" <weber@c...> wrote:
> Could it be, that i have to pull-up all gpio-pins, i want use?
>
> I have a pull-down on a gpio-pin, because the wire is normally on
low, but
> the wire is never on a high  level.
>
> Thomas

Hello Thomas,

i have noticed that the GPIOs of the LPC2106 on my self-made test-
board after a reset or when they are in input mode have a level of 2
volt. They must be pulled with a resistor (<5k) to reach the desired
low or high state. In output mode everything is ok. Is this correct?

Mathew




Yahoo! Groups Sponsor
ADVERTISEMENT





Yahoo! Groups Links
. To visit your group on the web, go to:
http://groups.yahoo.com/group/lpc2100/

. To unsubscribe from this group, send an email to:
lpc2100-unsubscribe@yahoogroups.com

. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




----------------------------------------------------------------------------
----
Yahoo! Groups Links

  a.. To visit your group on the web, go to:
  http://groups.yahoo.com/group/lpc2100/

  b.. To unsubscribe from this group, send an email to:
  lpc2100-unsubscribe@yahoogroups.com

  c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

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.