Mada za sehemu hiiElectronicsMada 6
A logic gate is an electronic circuit that processes one or more binary inputs to produce a binary output based on a logical operation. Logic gates form the basis of digital electronics and are implemented using transistors.
Note: Logic gates obey Boolean algebra and can be used to build complex circuits.
Outputs the opposite of the input.
Boolean Expression:
| A | Q |
|---|---|
| 0 | 1 |
| 1 | 0 |
Outputs 1 only if all inputs are 1.
Boolean Expression:
| A | B | Q |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
Outputs 1 if at least one input is 1.
Boolean Expression:
| A | B | Q |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
Outputs 0 only if all inputs are 1.
Boolean Expression:
| A | B | Q |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
Outputs 1 only if all inputs are 0.
Boolean Expression:
| A | B | Q |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 0 |
Outputs 1 when inputs are different.
Boolean Expression:
| A | B | Q |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
Outputs 1 when inputs are the same.
Boolean Expression:
| A | B | Q |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
Scenario: An alarm triggers when:
- or
Boolean Expression:
Simplified:
| A | B | C | Q |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 |
| 0 | 1 | 0 | 0 |
| 0 | 1 | 1 | 1 |
| 1 | 0 | 0 | 0 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 1 |
| 1 | 1 | 1 | 1 |
| Gate | Boolean Expression | Logic |
|---|---|---|
| NOT | Inverts input | |
| AND | All inputs 1 → Output 1 | |
| OR | Any input 1 → Output 1 | |
| NAND | Inverse of AND | |
| NOR | Inverse of OR | |
| XOR | Inputs different → Output 1 | |
| XNOR | Inputs same → Output 1 |
Mwalimu
Unasoma somo hili? Niulize nikuelezee chochote kilichomo.
Ingia ili kumuuliza Mwalimu wa AI wa Sonza kuhusu mada hii.
Ingia ili kuuliza