Yahoo Groups archive

Lpc2000

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

Message

Dumb GPIO question

2004-05-28 by Shannon Holland

OK, I am confused. I'm using the Nohau LPC210x eval board and for some 
reason I can't set GPIO's P0.2 and P0.3 as high output.

If I set IODIR = 0x0000000F
and then IOSET = 0x0000000F

I get IOPIN 0x00000003 (which is reflected on the external pins).

PINSEL0 and PINSEL1 are both 0, so as I understand it all pins should 
be GPIO's. I have done nothing to enable I2C (although given PINSEL0 it 
shouldn't do anything even if I had). I've also tried this at reset and 
gotten the same result.

I can set P0.0 and 0.1 (and any other gpio I've tried). I'd use 
different pins except that they've wired JTAG into the primary port so 
this means I lose P0.17-31 (there's no way to turn off the trace 
interface correct?).

What am I missing here? Do I just need more coffee?

Thanks!

Shannon

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.