Yahoo Groups archive

Lpc2000

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

Message

GPIO P0.3 problem

2005-06-20 by MattKav

I am trying to use P0.3 as a GPIO, but it doesn't seem to be working.
 I define the bit as:
#define ADC_CS  (1 << 3)
but it doesn't work.  If I change it to:
#define ADC_CS  (1 << 19)
I can toggle it just fine using the exact same code.  P0.2 does not
work either.

I am not using the I2C, but I am using SPI.  I am using Timer0;
however, I am not using the Match.

I have even tried forcing the pin to be GPIO using:
PINSEL0 = PINSEL0 & 0xFFFFFF0F;
but that doesn't work either.

Any suggestions?  (Besides swapping in P0.19 for P0.3.)
Matt

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.