Microprocessors and Microcontrollers Flashcards
What is a microprocessor?
A microprocessor is the central processing unit (CPU) of a computer system, responsible for executing instructions.
What are the main components of a microprocessor?
- Arithmetic Logic Unit (ALU): Performs calculations and logical operations.
- Registers: Temporary data storage for the CPU.
- Control Unit: Manages the timing and execution of instructions.
- Bus System: Parallel wires transmitting data between components.
What are the types of memory in a microprocessor?
- Random Access Memory (RAM): Volatile, temporary storage.
- Read-Only Memory (ROM): Non-volatile, stores essential startup instructions.
What is abstraction in microprocessor design?
Levels of understanding include:
1. Device Level: Transistors and gates.
2. Logic Level: Digital circuits and their behavior.
3. Architecture Level: Memory, instruction sets, and registers.
What is CISC?
CISC (Complex Instruction Set Computer) has many complex instructions of variable lengths.
Example: Intel x86 architecture.
What are the advantages and disadvantages of CISC?
Advantages: Backward compatibility, reduced programming complexity.
Disadvantages: High complexity and energy consumption.
What is RISC?
RISC (Reduced Instruction Set Computer) has fewer, simpler instructions of fixed length.
Example: ARM architecture.
What are the advantages and disadvantages of RISC?
Advantages: Efficiency, reduced power consumption, better performance in embedded systems.
Disadvantages: More instructions needed for complex tasks.
What is Von Neumann Architecture?
Single shared bus for instructions and data.
Pros: Can self-modify programs. Cons: Bottleneck due to single data bus, vulnerable to malicious code.
What is Harvard Architecture?
Separate memory buses for instructions and data.
Pros: Avoids the bottleneck, supports simultaneous data and instruction access. Cons: Less flexible for dynamic program creation.
What is the memory hierarchy in a microprocessor?
- Registers: Closest to the ALU, fastest access, limited storage.
- Cache Memory: Small, fast memory between CPU and main memory.
- Main Memory (RAM): Larger but slower.
- Non-Volatile Memory (ROM, Flash): Permanent storage.
What is memory addressing?
Uses hexadecimal notation for memory addresses.
Memory Map: Visual representation of memory allocation.
What is the difference between microcontrollers and microprocessors?
Microcontroller: All-in-one system (CPU, memory, I/O); Embedded in devices.
Microprocessor: CPU only; needs external components; Found in computers.
What is an example of a microcontroller and a microprocessor?
Microcontroller: PIC16F84A, Arduino.
Microprocessor: Intel Core i7.
What is an application of microcontrollers?
Anti-lock Braking System (ABS): Microcontroller reads sensor data, detects skidding, and adjusts braking.