The software can send commands to make a CPU pin send high and low signals to control hardware
I have encountered such a problem and have been confused for a long time. Every time I go online, I don't mean what I want, or what I want to talk about in the composition principles book. Now, I understand what I think.
If you are confused, you can get the answer here, which is helpful to you.
How does software control hardware ?? (The following is my personal understanding. It is not guaranteed to be correct. If you are wrong, please give me your advice .. Thank you first)
Everyone knows. Hardware without software is a pile of scrap iron or sand ". You also know that the CPU has something called a decoder. You also know that the program we write needs to be compiled, compiled, and connected. The final generation can be hardware
Binary Code of Execution. But the problem arises. What kind of binary can the hardware recognize. This may be something you don't understand. The key to the explanation is here. High voltage. You can accept the pulse control hardware.
Sequential (software) is actually high and low voltage, and the pulse is stored on the disk. Alternatively, the image is stored on the optical disk in the form of reflection or not. The so-called code that can be directly executed by a machine, that is, binary code, can be understood by the decoder. He can understand. CPU
You can understand. Based on hardware settings and hardware features, the CPU selects a switch (that is, which wire is a path) to control the hardware.
In fact, computers will eventually convert complicated problems into addition (ALU) for implementation. (It's amazing. I still can't understand it. But I know, haha, this will help you understand.
When the software is working, it is also an entity. The essence of the software is the current signal. The voltage represents different information, and the current signal is used to control the disconnection of the logic circuit, the hardware is controlled by Logical Circuit disconnection.
In the end, software serves as a switching signal. To work on a switch, you must ensure that the hardware is powered on. hardware that is not powered on cannot be controlled by software. It's like a lamp without power supply. How do you press the switch?
Bright.
Before running any software, there must be a physical process of converting it into a current signal. The software code you write on paper will never control the hardware. Early computers use manual wiring to input programs, which is equivalent to replacing software with human power.
The code is converted into an electrical signal. Now we use a floppy disk and a hard disk to convert program code into an electrical signal through a head, and the optical disc needs to convert program code into an electrical signal through a bald head.
This question seems simple and involves some underlying content and principles. For general computer enthusiasts, there is no way to explain it, because we have never considered physical implementation of the circuit.
In the end, computer software is just a sequence of commands that guide the work of electronic components, so you must ask why electronic components work in these sequences? The essence of the command sequence in the circuit is some regular and certain
Electronic pulse, electric pulse control various states of electronic components. The work process is very complicated. The simplest and most basic is the implementation of several logical door circuits, such as "or", "and. By grouping these logical door circuits
Integration and collaboration can achieve computing and processing capabilities on the computer as a whole. This is an external embodiment of an organic collection of dozens of basic circuits. For example, if the Pentium series CPU is integrated with hundreds of millions of Semiconductor components
It is very difficult to thoroughly understand. They can be compared to the activities of each person to form a society.
A computer is a digital circuit, and a digital circuit is controlled by 1, 0. it plays a role of current and pulse. just like typing a week on your keyboard. the same is made up of a large string of 0001111111111100. to generate pulse current instructions on hardware. CPU
This is the calculation of the data, and then the machine language is used to direct other hardware work.