Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
A plant-watering controller has three inputs. Its circuit, drawn below, joins A and B in an OR gate. That output, P, meets C at an AND gate whose output is X.
OR gives 1 when at least one input is 1: X = A OR B, output column 0, 1, 1, 1. In a circuit, the output of one gate is an input of the next. Add a middle column for each gate's output and work from the inputs to the output.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.
Step 1. The expression. X = (A OR B) AND C.
Step 2. The truth table. Work out P, then X.
| A B C | P | X |
|---|---|---|
| 0 0 0 | 0 | 0 |
| 0 0 1 | 0 | 0 |
| 0 1 0 | 1 | 0 |
| 0 1 1 | 1 | 1 |
| 1 0 0 | 1 | 0 |
| 1 0 1 | 1 | 1 |
| 1 1 0 | 1 | 0 |
| 1 1 1 | 1 | 1 |
in rows: 0 1 1, 1 0 1 and 1 1 1.
Step 3. The two rows asked for. For 1 0 1: P = 1 and C = 1, so X = . For 1 1 0: P = 1 but C = 0, so X = .
Check. X needs C = 1 and at least one of A and B. There are three ways to have at least one of A and B, so three rows. That matches.
Answer: (a) X = (A OR B) AND C. (b) rows. (c) and .
Log in to join the discussion.
Loading…