[SOLVED] logic question protect switch from accidentally pressing

Status
Not open for further replies.

neazoi

Advanced Member level 6
Joined
Jan 5, 2008
Messages
4,157
Helped
13
Reputation
26
Reaction score
15
Trophy points
1,318
Location
Greece
www.microwave.gr
Activity points
37,198
Hello I have an application that uses the logic attached.
The write switch, writes the contents of some registers to the memory, when the left switch is switched in the program position and also in the run position.

Is there any way to prevent the write switch from accidentally being pressed, when the left switch is in run mode?
 

Attachments

  • logic.GIF
    3.8 KB · Views: 130

Hi,

Define Accidental and Intentional from the switches point of view !:lol:

Suppose all you can do is write a subroutine so the Write Switch has to be held down for say over 1 second to be assumed Intentional or something similar if you are meaning the Run mode is a running program ?

If your circuit / run mode is some form of programming set up , then you could use something like a res/cap on the switch so it has to be held On for some time to charge the cap up to the full positive level. Also need a res/diode to quickly discharge the cap when the switch is Off.
 
Reactions: neazoi

    neazoi

    Points: 2
    Helpful Answer Positive Rating
run mode is when the cpu runs the stored program, that has been previously programmed in the program mode, using the /prg write.

when it is in the run mode, no-one should press the /prg write switch.

I was thinking of a way to automatically set the /prg write to 1, using gates, when /run mode is at 0, so that the effect of the write switch is irrelevand
 


Problem solved. The use of another OR gate alows the /PRG WRITE to be set on zero, when we are only on program mode and when the write button has been pressed.
I think I am right?
 

Attachments

  • Untitled.png
    8 KB · Views: 110

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…