MICROPROCESSOR 1
Microprocessor: Only CPU, needs external memory and I/O, used in PCs, high power.
Microcontroller: CPU + memory + I/O on one chip, used in embedded devices, low power.
1. Arithmetic Logic Unit (ALU)
Definition: The ALU performs all arithmetic operations (like addition, subtraction, multiplication,
division) and logical operations (like AND, OR, NOT, XOR).
Function: It processes the data provided by the registers or memory.
2. Registers
Definition: Registers are small, high-speed storage locations inside the microprocessor used to
hold data temporarily.
Types & Functions:
Accumulator (A): Stores results of arithmetic and logic operations.
General-purpose registers: Store intermediate data during operations.
Special-purpose registers: Include Program Counter, Stack Pointer, etc.
3. Program Counter (PC)
Definition: Holds the address of the next instruction to be executed.
Function: Ensures that instructions are executed in the correct sequence.
4. Instruction Register (IR)
Definition: Stores the current instruction being executed.
Function: Sends the opcode part of the instruction to the control unit.
5. Control Unit (CU)
Definition: Directs and coordinates all operations of the microprocessor.
Function: Sends control signals to the ALU, memory, and input/output devices.
6. Memory Unit / Address and Data Bus
Definition: The bus system consists of wires for data transfer (data bus) and memory addresses
(address bus).
Function: Allows the microprocessor to communicate with memory and I/O devices.
7. Input/Output Interface
Definition: Connects the microprocessor to external devices.
Function: Allows the microprocessor to receive data from inputs (like keyboard, sensors) and
send data to outputs (like display, printer).
8. Accumulator / Buffer Register
Definition: Temporary storage inside the microprocessor for holding data from memory or ALU.
Function: Speeds up data transfer during processing.
9. Stack Pointer (SP)
Definition: Points to the top of the stack in memory.
Function: Helps in temporary storage of return addresses, data during subroutine calls, and
interrupts.
10. Flags / Status Register
Definition: A register that holds special bits to indicate the status of operations (like zero, carry,
overflow, sign)
Function: Helps the CPU make decisions based on operation results.
11. Clock
Definition: Generates timing pulses to synchronize all microprocessor operations.
Function: Controls the speed at which instructions are executed.