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