Hi! In Hello example for 8051 by MCB900 in main() there is: P2M1=0; P1M1=0; Is it ok?? Im reading the datasheet of de microcontroller and i dont understand it, because to configurate the port is using PxM1 and PxM2. Then why is writed these (bold text)?? Thanks
Note that P2 is a PORT - not an LED.
"Why: P2M1 = 0; P1M1 = 0;?"
Why not?
As Per suggested, have you actually looked in the Datasheet to see what effect writing zero to these registers will have? That should answer your question...
So look at the examples about the LEDs, then!
Go to http://www.keil.com/download/list/c51.htm and see what LPC9xx examples are available...