cant set lpc2138 IO pins

hi,

i’m trying to set high the first 16 pins on my board. This is the code i run:

	PINSEL0 = 0;
	IODIR0 = 0xFFFFFFFF;
	IOSET0 = 0x0000FFFF;
	//IOCLR0 = 0x0000FFFF;

the problem is that pin P0.3,P0. 4 and P0.11 are set to 1v after this code is run (the rest of the pins are set on 3.3 V). If i try to set the pins low all is fine. Any ideas about what may be wrong (code, power supply, fried outputs) ?

Edit:

the board that i am using is bought from Olimex. Here’s the schematic:http://olimex.com/dev/images/ARM/LPC/LP … -B-SCH.gif

Without seeing a board schematic, it is impossible to tell.

It’s definitely P0.3, 4, and 11 that are not going to 3.3V?

It might not be a good idea to configure P0.1 and P0.9 as outputs, since those pins are hard-wired to the outputs of U2. I’m surprised that you report an ability to drive those pins.