
Programming of micro controllers 8051 In this programing u can control four device by using only two input.circuit diagram is shown below. #include <reg51.h> sbit izero=P0^0; sbit ione=P0^1; sbit itwo=P0^2; sbit ozero=P1^0; sbit oone=P1^1; sbit otwo=P1^2; sbit othree=P1^3; void main(void) { unsigned char a=0,b=0,c=0,d=0,e,f,g,h,sum; ozero=0; oone=0; otwo=0; othree=0; izero=0; ione=0; itwo=0; for( ;...
Read More »