I wish to use a two gate latch to control a 555 timer.The goal is to turn off the output by shutting down the IC.Will this happen if I disconnect the positive supply or the ground so there will be no current flowing trough the timer?Or,if this won't work,which way should I do it?The 555 is set in the astable configuration.
If you use a 4001 (quad 2 input NOR) you could use 2 gates for your latch circuit and one of the remaining gates to synchronise control with the LOW output state of the 555. This avoids the production of spikes (short pulses) at the output of the 555.
The NOR gate SR circuit would normally have a HIGH on the Q output. This forces the control gate output LOW regardless of the output from the 555. D1 is always reverse biased so the capacitor is charged (through R1 and R2) and discharged (through R2) as normal.
When Q is taken LOW if the input to the control gate from the 555 is HIGH (capacitor still charging) then nothing happens until the capacitor reaches 2/3 Vc and the output of the 555 goes LOW. At this point the output of the control gate goes HIGH and keeps the capacitor voltage HIGH even though R2 is trying to discharge it. The result is the output of the 555 remains LOW.
If Q is taken LOW during the LOW output of the 555 it will (quickly) recharge the capacitor through the 100R and diode and keep the output LOW.
When Q is taken HIGH the output of the control gate immediately goes LOW and the capacitor will start to discharge through R2 until it reaches 1/3 Vc and restart the oscillation.