Le Thu, 15 Aug 2013 07:58:15 -0700, panfilero a écrit:
If building from discrete gates, just use 3 input NAND or NOR gates, as needed. Use 2 inputs as usual, then one left one as reset input and the other left one tied to VCC/GND, depending on which gate you used.
Had link to a pic of what I currently have, and the capacitor change. It must have been missed though. Here is the link to the current logic I am working with on a bread board.
planation for one or many possible solutions on the race state of a SR Latc h on initialization/power up
uit functions correctly once power is on and the SR latch has been manually used to set the desired initial state.
minate and it bounces back and forth to which state wins. But I cannot seem to find an explanation as to how to set the initial state properly and the n have it function as normal.
Am I missing something as it seems like it should be quite simple, but I h ave not seen a solution I can apply on my board. Either I'm blind and its r ight in front of my face or somehow I have been unable to Google it. Found a LOT of sites explaining the race condition, but no solutions on how to "s et" it.
round through a large cap and series resistor, that way when you boot up th e reset pin will be held low until the cap charges up enough to decouple th e reset pin from ground?
wo NOR gates on a quad input NOR gate IC.
wo NOR gates.. not sure I understand how the reset works in that case. Do y ou know of a chip that has that functionality? Just so I can see it and try to figure out how that relates to what was previously brought up.
of two NOR gates or two NAND gates, if you make it out of NOR gates then y ou must hold your reset pin high until your chip boots up, if you make it o ut of NAND gates you hold your reset low until your chip boots up. Holding the reset pin in this way until your chip powers up could help you always boot up into the same state.
I used a capacitor to slow down one of the paths returning from one nor gat e to the input on the other. Would one use a delayed transistor to hold the reset pin on the latch to ac hieve what you are mentioning?
That's ridiculous. The gates don't come close to satisfying: "Intention is that:
1) On power up neither relay is on
2) On momentary reset relay /w green is activated
3) If at any time trip is closed, green side is off, red is on
4) If reset is hit while trip is still open, nothing happens
5) if trip is open then reset will function and be able to trigger green led
6) At no time will both red and green be active
7) On init neither LED circuit is on "
The most basic logic is wrong. Maybe think about a less challenging project.
Perhaps something is lost in translation. As I have it placed out on a brea d board and it is functioning as required. The only change I had to make wa s the capacitor which as far as I could tell set the initial state of the S R Latch to avoid the race condition.
On Wednesday, August 14, 2013 1:08:50 AM UTC-4, snipped-for-privacy@bauld.com wrote:
ion for one or many possible solutions on the race state of a SR Latch on i nitialization/power up
and it bounces back and forth to which state wins. But I cannot seem to fi nd an explanation as to how to set the initial state properly and then have it function as normal.
"Intention is that:
1) On power up neither relay is on
2) On momentary reset relay /w green is activated
3) If at any time trip is closed, green side is off, red is on
4) If reset is hit while trip is still open, nothing happens
5) if trip is open then reset will function and be able to trigger green le d
6) At no time will both red and green be active
7) On init neither LED circuit is on "
The only reliable way to initialize is with a POR circuit, any other method is mere wish. Based on your description of the logic and adding features such as POR, haz ard-free non-oscillatory state switching, and eliminating the very real pos sibility of hanging in unwanted states due to the asynchronous switch input s, you end up with the something like shown below. Seems to use quite a lot of real estate for so little functionality, 4x 4001, could have made a boo
-boo, but it's not my project so not going to check it out to the max.
Please view in a fixed-width font such as Courier.
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.