0
3.3kviews
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
written 5.7 years ago by | • modified 5.6 years ago |
The program
#include <stdio.h>
#include <reg51.h>
void main( )
{
P0 = P0 &0xF0;
P2=P2&0x0F;
while(1);
}