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