0
3.4kviews
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
468views

The program

#include <stdio.h>

#include <reg51.h>

void main( )

{

    P0 = P0 &0xF0;

    P2=P2&0x0F;

    while(1);

}

Create a free account to keep reading this post.

and 5 others joined a min ago.

Please log in to add an answer.