eolas/Electronics/Switches_and_transistors.md

27 lines
1.2 KiB
Markdown
Raw Normal View History

2022-10-26 13:30:05 +01:00
---
title: Switches and transistors
categories:
- Computer Architecture
- Electronics
- Hardware
tags: [logic-gates, binary, memory]
---
# Switches and transistors
2022-11-09 07:45:27 +00:00
In the discussion of [digital circuits](/Electronics/Digital_circuits.md) we noted that a digital circuit requires that electrical phenomena be treated as discrete rather than continuous values. Although a given voltage at a point in the circuit can vary widely, in order to represent the binary states of 'on' and 'off' we need it to remain fixed within certain narrow parameters. Typically a value between 2V - 5V for the 'on' state and 0V - 0.8V.
2022-10-26 13:30:05 +01:00
2022-11-09 07:45:27 +00:00
We will look at two ways to achieve this. Firstly with literal switches which are impractical but useful for understanding the concept and then with transistors which are what are actually used in computers.
2022-10-26 13:30:05 +01:00
## Implementing binary logic with mechanical switches
2022-11-09 07:45:27 +00:00
An electrical switch is inherently binary. When the switch is on, it acts like a simple copper wire through which current flows freely. When the switch is off, it acts like an open circuit and no current can flow.
We can combine switches in a circuit to create analogs to logic gates.
2022-11-16 08:00:05 +00:00
[]
2022-11-09 07:45:27 +00:00
- Example of AND and OR
2022-10-26 13:30:05 +01:00
## Transistors