0
3.1kviews
Write C language program to mask the lower 4 bits of port P0 and upper 4 bits of port P2 using logical operator.
1 Answer
1
391views

The program

#include <stdio.h>

#include <reg51.h>

void main( )

{

    P0 = P0 &0xF0;

    P2=P2&0x0F;

    while(1);

}
Please log in to add an answer.