Solving TTL Latch Problem with Circuit Building

  • Thread starter xtremeblue
  • Start date
  • Tags
    Ttl
In summary, the circuit has trouble with flyback pulses. If the switch is pressed quickly, the output will oscillate. The circuit includes flyback diodes to prevent this, but they are not necessary if the switch is driven with a high input impedance.
  • #1
xtremeblue
3
0
I built this circuit with a computer program. Basically when the switch S1 is pressed to fast I get a high/low pulse coming through the latch which really messes up the output. ( Output will continually go from high to low rapidly) I was wondering if this will be present also if I was to build the circuit. It will be a pushbutton and may be pressed pretty fast. I put a 100k resistor and a 2.2uf cap in the circuit to try to stop problems from debouncing but I think the problem is that there is just not enough time to get the latch. If this will carry over to a real circuit please let me know if there is anything I can add to it to stop this. Thanks


I cannot get this image to look good on this site you will have to save it and open it from windows picture and fax viewer.
 

Attachments

  • tic toc1.JPG
    tic toc1.JPG
    25.7 KB · Views: 491
Last edited:
Engineering news on Phys.org
  • #2
Several things are likely to be happening. One mistake you have made is that you don't have a diode across the relay coil to prevent flyback pulses. Another mistake is dumping that 2.2 uF cap across the 5 volt power supply. It is quite likely the 5 volt power supply cannot supply the sudden current demand of the discharged cap which causes the supply to dip. I'll look at your circuit closer later.
 
  • #3
I agree with supernova that your gates will blow up when you build the circuit if you do not include flyback catch diodes on the relays. Hopefully your text or other learning resources discuss how to add those diodes to your circuit. I'm not very clear on what the circuit does or what the failure is that you are seeing. If you could post a simplified circuit that just exhibits the behavior, and post a plot of the bad simulated behavior, that would help a lot.
 
  • #4
Flyback sure, but also transient and dc current. If S1 closes quickly and stays closed shorting RLY2's coil to V1, v(RLY2)=Ldi/dt and the +5V source will probably supply a good amount of short circuit current.

Assume +5V limits current and slew rate (i.e. an intentionally horrible voltage source).

When the switch is pressed (strong drive to +5V) shouldn't L1 stay off? The switched node is wired directly an input of the 74LS27. If any input of the NOR is high the output should be low. As this is a strong pull high to an input directly I doubt there is a race condition or anything.
 
  • #5
I see why the simulation oscilates. The circled 74LS08 is just a buffer for the right settings of the keypad.

If S1 is closed for a long time the feedback loop from the 74LS08 completes and the output is latched, aka stays high due to the circled or-gate even when the switch input goes away. (If the keypad is changed the feedback loop is opened and L1 goes off.)

If S1 is closed for a very very short time the circled or-gate filters the pulse.

If S1 is closed for a time greater than the minimum input pulse of the circled or-gate but less than the prop delay of the circled and-gate, you get a ring oscilator as both outputs are just functioning as buffers.

http://en.wikipedia.org/wiki/Ring_oscillator

The feedback loop is actually a clever way to build the latch. I personally like hacks like this but they are dangerous becuase of corner cases. An alternative would be to, I dunno, just use a latch.

I would recommend fixing the problems with RLY1 and RYL2 (BTW, why make your life hard with relays, use digital logic here too), remove the redundant logic, and add a circuit to gaurentee the min pulse width of S1 (plus debounce).

If it were me, I would have the switch drive a high input impedance schmitt trigger and just do everything else with digital logic.

http://en.wikipedia.org/wiki/Schmitt_trigger
 
Last edited:
  • #6
es1 said:
Flyback sure, but also transient and dc current. If S1 closes quickly and stays closed shorting RLY2's coil to V1, v(RLY2)=Ldi/dt and the +5V source will probably supply a good amount of short circuit current.
The relay coil will have a resistance that is sized for the drive voltage, and the datasheet will specify what the drive current is. So you might have a 12V relay that requires 40mA to hold, or a 5V relay that requires 60mA to hold.

Good answer on the feedback oscillation, es1.
 
  • #7
I thought the relay input side acted just like an inductive element. It was up to you to limit the current (via transistor, resistor, whatever) otherwise you got a dc short (just like with any inductor).

I guess these days, buy a relay get a resistor free. :)
 

What is a TTL latch problem?

A TTL latch problem refers to an issue in a circuit where the output of a TTL latch does not change even when the input signal changes. This can happen due to various reasons such as faulty components, incorrect wiring, or improper timing.

How can I solve a TTL latch problem?

The first step to solving a TTL latch problem is to carefully analyze the circuit and identify the root cause of the issue. This can involve checking for faulty components, verifying the wiring connections, and ensuring proper timing of signals. Once the problem is identified, it can be fixed by replacing faulty components, correcting wiring errors, or adjusting timing signals.

What is circuit building?

Circuit building is the process of creating electronic circuits using various components such as resistors, capacitors, transistors, and integrated circuits. It involves designing and assembling the circuit according to the desired function, and testing and troubleshooting to ensure proper functionality.

Do I need any special skills to solve a TTL latch problem with circuit building?

Basic knowledge of electronic circuits, components, and their functions is necessary to solve a TTL latch problem. It is also helpful to have experience in circuit building and troubleshooting techniques. However, with proper guidance and resources, anyone can learn to solve a TTL latch problem with circuit building.

Are there any tools or resources available to help me solve a TTL latch problem?

Yes, there are many online resources, tutorials, and simulation tools available to help you understand and troubleshoot TTL latch problems. You can also refer to textbooks and manuals on electronic circuits and digital logic to gain a better understanding of the principles involved in solving TTL latch problems.

Similar threads

  • Electrical Engineering
Replies
5
Views
5K
  • Electrical Engineering
Replies
34
Views
3K
Replies
7
Views
2K
  • Electrical Engineering
Replies
14
Views
810
  • Electrical Engineering
Replies
29
Views
3K
  • Electrical Engineering
Replies
10
Views
1K
  • Electrical Engineering
2
Replies
41
Views
4K
Replies
2
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
4
Views
2K
  • Electrical Engineering
Replies
1
Views
2K
Back
Top