pls help...
i'm working on LPC1114-FBD/301 series
On my board 4 LED's are connected to P0_8, P0_9, P0_10, P0_11.
I'v written a sample code toggle them. Only on 8 and 9 port pin LED's are blinking but on 10 and 11 there state is always on. here is the sample code
/* by default P0_8 and P0_9 pins are GPIO's */ LED_DIR |= BIT(8); LED_DIR |= BIT(9);
/* 9th and 10th pins are not GPIO's on reset */ // i think here some changes required to make them as GPIO's IOCON_SWCLK_PIO0_10 |= 0x1; IOCON_R_PIO0_11 |= 0x1;
LED_DIR |= BIT(10); LED_DIR |= BIT(11);
Also if you run your code in the Keil simulator as I described above, make sure to check out the Peripheral pull down menu -> I/O Configuration window.
As you step through your code you should see
pin P0.10 change from 'SWCLK' to 'GPIO Port 0.10, (when you change IOCON_PIO0_10 to 0x0D1) pin P0.11 change from TDI to "GPIO Port 0.11", (when you change IOCON_PIO0_11 to 0x0D1)