Switches - preset/clear features

  • Thread starter Thread starter charlies1902
  • Start date Start date
  • Tags Tags
    Switches
Click For Summary

Discussion Overview

The discussion revolves around the behavior of switches with preset and clear features, specifically in the context of three questions from a textbook. Participants analyze the implications of the clear feature on the output states in various scenarios, exploring the conditions under which outputs are determined or remain uncertain.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant notes that the clear feature overwrites any input and sets the output to 0, but questions its application in question 35.
  • Another participant points out that in question 35, the reset condition (R=1) means no reset occurs, leading to uncertainty about the output state.
  • A participant claims that the correct answer for question 35 is that Q/Y will toggle, but acknowledges that the state of Q before the toggle is unspecified, resulting in uncertainty.
  • One participant reflects on their reasoning for question 33, suggesting that the logic of the clear input being active low may be misunderstood, leading to incorrect conclusions about the output state.
  • Another participant confirms that the clear input being inactive means the output remains unchanged, emphasizing the importance of initial conditions in determining the output.
  • In discussing question 34, participants agree that without knowing the previous state of Q, the outputs Y and Z cannot be determined, leading to further uncertainty.
  • There is a consensus that for question 35, the lack of knowledge about the previous state of Q results in an uncertain outcome, despite the toggle condition being present.
  • One participant mentions that if the questions were not independent, the answer to question 35 would differ based on the outcome of question 34.

Areas of Agreement / Disagreement

Participants generally agree on the uncertainty surrounding the outputs due to unspecified initial conditions, particularly in questions 34 and 35. However, there is ongoing debate regarding the interpretation of the clear feature and its implications on the outputs in question 33.

Contextual Notes

Participants express uncertainty about the initial state of Q in multiple questions, which affects their ability to determine subsequent outputs. The discussion also highlights the dependency of answers on the independence of the questions posed.

charlies1902
Messages
162
Reaction score
0
I have attached the switch. I thought I understood the 3 problems, until I got to question 35.
My textbook says that the clear feature overwrites any input and sets the output to 0. So that seems to be the case with 33 and 34. But why not question 35?
 

Attachments

  • Untitled.png
    Untitled.png
    37.2 KB · Views: 416
Physics news on Phys.org
R is 1 (do not clear) all the time in 35. Why do you expect any reset?
 
In question 35 the correct answer is that Q/Y will toggle. However that's not one of the multiple choice answers. The state of Q isn't specified before T falls so it's state afterwards is also unspecified. So "uncertain" is the answer.
 
I think my thinking is wrong on these 3 questions. I'll start with the first question on the attached pic.
Here is what I'm thinking:
For question 33:
X=0 R=0, then R changes to 1. Basically, Clear changes from 1 to 0.Which means do NOT clear. Thus Q=1 (the inverse of X)?
This is obviously not the answer. Which part of my logic is erroneous?
 
charlies1902 said:
I think my thinking is wrong on these 3 questions. I'll start with the first question on the attached pic.
Here is what I'm thinking:
For question 33:
X=0 R=0, then R changes to 1. Basically, Clear changes from 1 to 0.Which means do NOT clear. Thus Q=1 (the inverse of X)?
This is obviously not the answer. Which part of my logic is erroneous?

"Do not clear" does not mean "Set" it means "do nothing".

In Q33 there are two steps..

Step 1, the initial conditions..

X=0, R=0. R is connected to the clear input which is "active low". In other words R=0 means the clear input is active, so Q goes to 0 and Qbar = 1. Therefore Y = 0.

Step 2

X= 0, R -> 1. R is connected to the clear input which is active low. In other words R=1 means the clear input is inactive (or "do nothing"). So Q stays a 0 and Qbar stays a 1. Therefore Y stays a 0.
 
Oh I see. Thanks for explaining this.

So for #34:
X=1 R=1
R=1 => Clear=0 (do nothing)
We don't know the previous Q value, so how would we know what Y or Z is?
I guess we don't?

then R changes to 0
so Clear=1, so Q=0=Y, thus Z=1.For #35:
X=1 R=1 => Clear=0 (does nothing for the whole time even if the input X changes).
Since we don't know what Q was before, it's uncertain.Am I understanding this correctly?
 
charlies1902 said:
Oh I see. Thanks for explaining this.

So for #34:
X=1 R=1
R=1 => Clear=0 (do nothing)
We don't know the previous Q value, so how would we know what Y or Z is?
I guess we don't?

Correct, we don't.

then R changes to 0
so Clear=1, so Q=0=Y, thus Z=1.

Correct. The clear input makes Q=0 whatever it was before.

For #35:
X=1 R=1 => Clear=0 (does nothing for the whole time even if the input X changes).
Since we don't know what Q was before, it's uncertain.
Am I understanding this correctly?

Correct. The falling edge on X makes Q toggle, but since we don't know what it was before we don't know what it will be next. So answer is uncertain.

Aside: Had they not said "Each question is independent" the answer to 35 would be different. In that case question 34 clears the latch (Q=Y=0) then question 35 toggles the latch (Q=Y=1).
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 19 ·
Replies
19
Views
2K
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
2
Views
1K
Replies
20
Views
4K
Replies
8
Views
4K
Replies
1
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K