vead
Full Member level 5
I want to write assembly code for 8051
switch A is connected to P0.1
switch B is connected to P0.2
LED is connected to P1.0
IF one switch or both high then the LED is turn on otherwise turn off
switch A high then turn on LED
switch B high then turn on LED
both A B high then turn on LED
both A B low then turn off led
I want to write assembly program using OR logic statement
How to write statement for OR logic for switches
switch A is connected to P0.1
switch B is connected to P0.2
LED is connected to P1.0
IF one switch or both high then the LED is turn on otherwise turn off
switch A high then turn on LED
switch B high then turn on LED
both A B high then turn on LED
both A B low then turn off led
I want to write assembly program using OR logic statement
How to write statement for OR logic for switches