This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Beginners Question

Hi,
I have a samll problem with my MCB2360. I'm pretty new to this, so my question should be very easy to answer.

All I wanted to do was to flash my LEDs on the Board. I read the User Manual from NXP, which got me this far:

#include <LPC23xx.H>

int main() {
        //Setting Pin Select Block 4 to GPIO
        PINSEL4 = 0x00000000;
        PINSEL10 = 0;
        //initialize P2.0 till P2.7 as output
        FIO2DIR = 0x000000FF; // Set as output
        //clearing current LEDs
        FIO2CLR = 0x000000FF;
        //Mask all unneeded Pins
        FIO2MASK = 0xFFFFFFFF00;
        //Set all these Pins high.
        FIO2SET = 0x000000AA;

        while(1) {

        }
        return 0;
}

As you can see all I try to do is to enable the LEDs (P2.0 - P2.7) in the order 10101010. But nothing happens. Please help me ;)

0