I wrote a program to toggle the pins of P0 and P1.
When I write:
P0=0xff;
P1=0x00;
Only P0.0 - P0.3 are high and P0.4 - P0.7 and P1.0 - P1.6 are low.
P0=0x00;
P1=0xff;
Only P0.4 - P0.7 are high and P0.0 - P0.3 and P1.0 - P1.6 are low.
Please point at my mistakes.
I have read a query on devzon that this is du to setting debug bit high in the keil IDE. After clearing the bit problem is same.