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
"Im reading the datasheet ... is using PxM1 and PxM2"
'x' here is used as a general notation to denote any port:
P2M1 refers to Port-2; P1M1 refers to Port-1;
In general: PxM1 refers to Port-x