Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

two switch and led interface with 8051

Status
Not open for further replies.

hirenn

Full Member level 1
Joined
Jul 12, 2014
Messages
96
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Activity points
703
Hi

i have connected two switches with P1.0 and P1.1 and led at p1.2

swtches are spst , led is 5mm red
my logic is like

if sw1 and sw2 are not pressed then led off

if sw1 is pressed on led for 10 seconds, and check for sw2 after 10 seconds
if sw1 not pressed led off

if sw2 is pressed led continuous on
if sw2 not pressed then off led and check for sw1

idk how to do this

anyone please help me


thanks
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top