--- In lpc2000@yahoogroups.com, "MattKav" <mkavalauskas@b...> wrote: > 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.) Maybe add pull-up resistors. P0.2 and P0.3 can only work as inputs or open-drain outputs, not push- pull outputs. This is true even when they aren't configured as I2C. Karl Olsen
Message
Re: GPIO P0.3 problem
2005-06-20 by Karl Olsen
Attachments
- No local attachments were found for this message.