Unidad0 introducción
What is a Computer?
Understanding the Function of Computers
- The primary function of a computer is to take real-world data and produce results based on that data.
- Computers utilize programs, which are tools for programmers to instruct the computer on specific tasks it needs to perform.
- Software (logical support) consists of programs created by humans, while hardware (physical support) includes all tangible components like circuits.
Types of Computers
- General-purpose computers can run various programs depending on user needs, such as web browsers or spreadsheets.
- Embedded computers have specific functions and run dedicated programs; they perform singular tasks efficiently.
Example: Smart Home Control
- An example of an embedded computer is one that controls devices in a smart home, responding to voice commands.
- When a keyword (e.g., "Alexa") is detected, the system processes audio input and sends it to services like Amazon Web Services for transcription.
Processing Commands
- The program identifies key actions from transcribed text (e.g., turning on lights), specifying which device to control within the home environment.
- Once identified, the command executes through relays or output devices controlling physical elements like lights.
Functional Blocks of Computers
Core Components
- All computers consist of three functional blocks: CPU (Central Processing Unit), memory for temporary storage, and input/output interfaces for interaction with the external world.
Communication Between Blocks
- Input/Output interfaces allow computers to communicate with real-world data sources and outputs like microphones or lights.
Data Transmission Basics
- Buses are sets of conductors used for communication between blocks; they represent information collectively rather than individually.
Types of Buses
- Buses can be unidirectional (one-way communication from one element forcing a value while others read it), or bidirectional (where information flow direction can change).
Collision Avoidance in Data Transmission
Understanding CPU and State Machines
The Role of State Machines in CPUs
- A CPU operates as a programmable state machine, designed to execute specific logical processes. This allows for the implementation of complex instructions through hardware state machines.
- The primary function of a CPU is to either execute an instruction or fetch a new one, ensuring continuous operation without interruption. Instructions are stored in memory and accessed by the CPU.
- Input/output interfaces are also managed by the CPU, which interacts with them according to programmed instructions. This interaction is crucial for executing tasks effectively.
- Programs consist of sets of instructions that guide the CPU in processing data. The efficiency of this process relies on the use of registers—fast-access memory spaces located within the CPU itself.