Anyone got P1 working on the LPC2124 ?

I have a olimex LPC2124 dev board.

I got P0 working just fine, as i moved onto P1 i cannot get them to function properly. Specifically, I am trying to get P1.16-23 working as outputs.

this is what i have to initialize the P1 pins.

PINSEL2 |= 0x04; // When 1, P1.31:26 are used as a Debug port.

PINSEL2 &=~ 0x08; // When 0, pins P1.25:16 are used as GPIO pins.

IO1DIR |= 0x00FF0000; // make p1.16-23 outputs

anyone got any ideas why P1.x is not working properly ?

Any takers ?

i got it working now. My accident i had my compiler pointing to the wrong source code in the wrong folder and it was never compiling my changes in the folder i was in. OPPS!!!