salinagi
Newbie level 3
i am newbie to micro world pls how to make and gate using 89s51
if all input are high output is high
so fren how to start
here is my code
switch1 equ p2.0 ;input switch 1
switch2 equ p2.1 ;input switch 2
switch3 equ p2.2 ;input switch 3
switch4 equ p2.3 ;input switch 4
switch5 equ p2.4 ;input switch 5
switch6 equ p2.5 ;input switch 6
switch7 equ p2.6 ;input switch 7
switch8 equ p2.7 ;input switch 8
switchport equ p2 ;port at which input switches are connected
led1 equ p1.0 ;output led is connected
org ooH
mov led1,00H ;make out put led low
mov sp,#50H ;Stack pointer initialization
clr TOG ;Clear temp bit
after this code what i have to do pls help me i want to learn
if all input are high output is high
so fren how to start
here is my code
switch1 equ p2.0 ;input switch 1
switch2 equ p2.1 ;input switch 2
switch3 equ p2.2 ;input switch 3
switch4 equ p2.3 ;input switch 4
switch5 equ p2.4 ;input switch 5
switch6 equ p2.5 ;input switch 6
switch7 equ p2.6 ;input switch 7
switch8 equ p2.7 ;input switch 8
switchport equ p2 ;port at which input switches are connected
led1 equ p1.0 ;output led is connected
org ooH
mov led1,00H ;make out put led low
mov sp,#50H ;Stack pointer initialization
clr TOG ;Clear temp bit
after this code what i have to do pls help me i want to learn