📚 Electricity | 电能
Electricity is the invisible energy that powers every digital device. In computer science, we study not only how electricity flows, but also how it is used to represent and process binary information. This article explores the foundational electrical principles that underpin all modern computers.
电能是驱动每台数字设备的无形能量。在计算机科学中,我们不仅研究电流如何流动,还研究如何利用它来表示和处理二进制信息。本文将探讨支撑所有现代计算机的基础电学原理。
1. Electricity – The Power Behind Computers | 电能 – 计算机的动力之源
Electricity is a form of energy caused by the movement of electrons. In computers, controlled electrical signals are used to perform calculations, store data, and communicate with peripherals. Without a reliable supply of electricity, a computer is simply an inert collection of components.
电能是由电子运动引起的一种能量形式。在计算机中,受控的电信号用于执行计算、存储数据以及与外部设备通信。没有稳定的电力供应,计算机只不过是一堆惰性组件的集合体。
Understanding electricity helps us appreciate why computers are built with materials like silicon, copper, and gold, and why circuit design must carefully manage current and voltage to avoid errors such as overheating or data corruption.
理解电能有助于我们明白为什么计算机要使用硅、铜和金等材料,也明白为什么电路设计必须仔细管理电流和电压,以避免过热或数据损坏等错误。
2. Voltage, Current and Resistance | 电压、电流和电阻
Three fundamental quantities describe an electric circuit. Voltage (V) is the potential energy difference that pushes electrons around a circuit, measured in volts. Current (I) is the flow of electrons through a conductor, measured in amperes (A). Resistance (R) opposes the flow of current, measured in ohms (Ω).
三个基本量描述一个电路。电压(V)是推动电子在电路中运动势能差,以伏特为单位。电流(I)是电子通过导体的流量,以安培(A)为单位。电阻(R)阻碍电流的流动,以欧姆(Ω)为单位。
Think of a water pipe: voltage is like water pressure, current is the rate of water flow, and resistance is the narrowness of the pipe. In a computer, components are designed to work at specific voltages, typically 5V or 3.3V for logic circuits.
可以将水管作类比:电压如同水压,电流是水流速率,电阻是管道的粗细。在计算机中,组件被设计在特定电压下工作,逻辑电路通常使用5V或3.3V。
3. Ohm’s Law and Calculations | 欧姆定律与计算
Ohm’s law states that the current through a conductor between two points is directly proportional to the voltage across those points and inversely proportional to the resistance. The formula is:
欧姆定律指出,通过导体的电流与两点间的电压成正比,与电阻成反比。公式为:
V = I × R
Using this equation, we can calculate unknown values. For example, if a circuit has a voltage of 5V and a resistance of 100Ω, the current is 0.05A (50mA).
利用该等式可以计算未知值。例如,如果电路电压为5V、电阻为100Ω,则电流为0.05A(50mA)。
| Quantity | Symbol | Unit |
| Voltage | V | Volt (V) |
| Current | I | Ampere (A) |
| Resistance | R | Ohm (Ω) |
4. Series and Parallel Circuits | 串联与并联电路
Electronic components can be connected in two basic ways. In a series circuit, components are connected end-to-end so that the same current flows through each one. The total resistance equals the sum of individual resistances: R total = R₁ + R₂ + R₃ + …
电子元件可以有两种基本连接方式。在串联电路中,元件首尾相连,通过每个元件的电流相同。总电阻等于各个电阻之和:R总 = R₁ + R₂ + R₃ + …
In a parallel circuit, components are connected across the same two points, so each has the same voltage, but the current splits among them. The reciprocal of total resistance equals the sum of reciprocals: 1/R total = 1/R₁ + 1/R₂ + …
在并联电路中,元件跨接在相同的两点之间,因此各元件两端的电压相同,但电流会分流。总电阻的倒数等于各电阻倒数之和:1/R总 = 1/R₁ + 1/R₂ + …
Computers mostly use parallel networks to ensure that the same voltage level reaches every logic gate, enabling consistent switching thresholds.
计算机大多使用并联网络,以确保每个逻辑门获得相同的电压水平,从而实现一致的开关阈值。
5. Binary Signal Representation | 二进制信号的表示
In digital computers, information is represented using binary digits: 0 and 1. Electrically, a low voltage (typically 0V) represents logical 0, and a high voltage (e.g., 3.3V or 5V) represents logical 1.
在数字计算机中,信息用二进制数字0和1表示。在电学上,低电压(通常0V)表示逻辑0,高电压(如3.3V或5V)表示逻辑1。
To avoid errors caused by noise, voltage levels have defined ranges. For example, in a 5V system, anything below 0.8V is considered 0, and anything above 2V is considered 1. This creates a noise margin: the gap between the thresholds and the actual signal levels.
为了避免噪声引起的错误,电压等级有明确的范围。例如,在5V系统中,低于0.8V的任何值都被视为0,高于2V的任何值都被视为1。这就形成了噪声容限:阈值与实际信号电平之间的差距。
6. Transistors as Electronic Switches | 晶体管作为电子开关
A transistor is a semiconductor device that can act as an electronic switch or amplifier. In digital circuits, it is used in the “on/off” mode: when a control voltage is applied, the transistor allows current to flow between two other terminals, effectively acting as a closed switch.
晶体管是一种半导体器件,可以用作电子开关或放大器。在数字电路中,它工作在“开/关”模式:当施加控制电压时,晶体管允许电流在两个其他端子之间流动,有效充当闭合开关。
This switching ability is the foundation of all logic circuits. By combining millions of tiny transistors on a silicon chip, we can create complex processors that execute billions of instructions per second.
这种开关能力是所有逻辑电路的基础。通过在硅芯片上集成数百万个微小晶体管,我们可以制造出每秒执行数十亿条指令的复杂处理器。
7. Logic Gates – The Building Blocks | 逻辑门 – 构建块
Logic gates are the simplest digital circuits. They take one or more binary inputs and produce a single binary output based on Boolean logic. The most common gates are AND, OR, NOT, NAND, NOR, XOR, and XNOR.
逻辑门是最简单的数字电路。它们接受一个或多个二进制输入,并根据布尔逻辑产生一个二进制输出。最常见的门有AND、OR、NOT、NAND、NOR、XOR和XNOR。
-
AND gate: Output is 1 only when all inputs are 1.
与门:只有当所有输入为1时,输出才为1。
-
OR gate: Output is 1 when at least one input is 1.
或门:当至少一个输入为1时,输出为1。
-
NOT gate: Inverts the input; output is 1 when input is 0.
非门:反转输入;输入为0时输出为1。
-
NAND gate: AND followed by NOT; output is 0 only when both inputs are 1.
与非门:与门后接非门;只有当两个输入都为1时,输出为0。
In reality, these gates are built using transistors and resistors, and their behaviour is governed by voltage levels. For example, an AND gate can be implemented using two transistors in series, so current only flows to the output when both inputs are high.
实际上,这些门是用晶体管和电阻构建的,其行为由电压水平控制。例如,与门可以用两个串联的晶体管实现,只有当两个输入为高电平时,电流才会流向输出端。
8. Combining Gates – Half Adder Example | 组合门 – 半加器示例
Single logic gates perform simple functions, but when combined, they can carry out meaningful operations. A classic example is the half adder, which adds two single binary digits and produces a sum and a carry.
单个逻辑门执行简单功能,当组合起来时,就可以进行有意义的运算。一个典型例子是半加器,它将两个二进制数字相加,产生和与进位。
The half adder uses an XOR gate for the sum (S) and an AND gate for the carry output (C out). The truth table is:
半加器使用一个异或门产生和(S),使用一个与门产生进位输出(C out)。真值表如下:
| A | B | S (A XOR B) | C out (A AND B) |
| 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 1 |
By cascading half adders, full adders can be built to add multi-bit binary numbers, forming the arithmetic logic unit (ALU) of a CPU.
通过级联半加器,可以构建全加器来对多位二进制数进行相加,从而形成CPU中的算术逻辑单元(ALU)。
9. Power Consumption and Heat | 功耗与散热
Every electrical signal in a computer consumes power, which is calculated as P = V × I. The power is dissipated as heat, and excessive heat can damage components or cause logic errors.
计算机中的每个电信号都会消耗功率,功率计算公式为P = V × I。电力以热量的形式耗散,过度的热量会损坏元件或导致逻辑错误。
To manage heat, computers use heat sinks, fans, and liquid cooling systems. Additionally, the transition from higher voltages (like 5V) to lower voltages (like 1.2V) in modern processors reduces power consumption significantly, because power scales with the square of voltage (P ∝ V²).
为了管理热量,计算机使用散热片、风扇和液冷系统。此外,从高电压(如5V)向低电压(如1.2V)的过渡显著降低了功耗,因为功率与电压的平方成正比(P ∝ V²)。
10. Safety and Electrical Protection | 安全与电气保护
Working with electrical circuits requires caution. Even low-voltage computer circuits can be damaged by static electricity. Anti-static wrist straps and mats are essential when handling computer parts.
处理电路时需要小心。即使是低电压的计算机电路也可能被静电损坏。在处理计算机部件时,防静电腕带和垫子是必需的。
Computers are protected by fuses and surge protectors. A fuse is a thin wire that melts and breaks the circuit if the current exceeds a safe level, preventing overheating and fire.
计算机通过保险丝和浪涌保护器得到保护。保险丝是一根细线,当电流超过安全水平时会熔断并断开电路,防止过热和火灾。
In high-voltage power supplies, capacitors can store charge even after the computer is unplugged. Safe practice is to follow proper discharge procedures before servicing.
在高电压电源中,即使计算机已拔掉电源,电容器仍可能存储电荷。安全做法是在维修前遵循适当的放电程序。
11. Conclusion | 总结
Electricity is the lifeblood of computer science. From Ohm’s law to logic gates, understanding how voltage, current, and resistance interact allows us to design reliable digital systems. As technology advances, we continue to find new ways to use electricity more efficiently, driving faster and smaller computers.
电能是计算机科学的生命线。从欧姆定律到逻辑门,理解电压、电流和电阻如何相互作用,使我们能够设计出可靠的数字系统。随着技术的进步,我们不断寻找更高效利用电能的新方法,推动计算机更快、更小。
Mastering these fundamentals is essential for any IGCSE Computer Science student, as they form the physical basis of every program and algorithm you will ever write.
掌握这些基础内容对于每一位IGCSE计算机科学学生来说都至关重要,因为它们是你将要编写的每一个程序和算法的物理基础。
Published by TutorHao | Computer Science Revision Series | aleveler.com
更多咨询请联系16621398022(同微信)
屏轩国际教育cambridge primary/secondary checkpoint, cat4, ukiset,ukcat,igcse,alevel,PAT,STEP,MAT, ibdp,ap,ssat,sat,sat2课程辅导,国外大学本科硕士研究生博士课程论文辅导Cancel reply