Microprocessors and Microcontrollers Flashcards

1
Q

What is a microprocessor?

A

A microprocessor is the central processing unit (CPU) of a computer system, responsible for executing instructions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the main components of a microprocessor?

A
  1. Arithmetic Logic Unit (ALU): Performs calculations and logical operations.
  2. Registers: Temporary data storage for the CPU.
  3. Control Unit: Manages the timing and execution of instructions.
  4. Bus System: Parallel wires transmitting data between components.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the types of memory in a microprocessor?

A
  1. Random Access Memory (RAM): Volatile, temporary storage.
  2. Read-Only Memory (ROM): Non-volatile, stores essential startup instructions.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is abstraction in microprocessor design?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is CISC?

A

CISC (Complex Instruction Set Computer) has many complex instructions of variable lengths.

Example: Intel x86 architecture.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the advantages and disadvantages of CISC?

A

Advantages: Backward compatibility, reduced programming complexity.
Disadvantages: High complexity and energy consumption.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is RISC?

A

RISC (Reduced Instruction Set Computer) has fewer, simpler instructions of fixed length.

Example: ARM architecture.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the advantages and disadvantages of RISC?

A

Advantages: Efficiency, reduced power consumption, better performance in embedded systems.
Disadvantages: More instructions needed for complex tasks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is Von Neumann Architecture?

A

Single shared bus for instructions and data.

Pros: Can self-modify programs. Cons: Bottleneck due to single data bus, vulnerable to malicious code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is Harvard Architecture?

A

Separate memory buses for instructions and data.

Pros: Avoids the bottleneck, supports simultaneous data and instruction access. Cons: Less flexible for dynamic program creation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the memory hierarchy in a microprocessor?

A
  1. Registers: Closest to the ALU, fastest access, limited storage.
  2. Cache Memory: Small, fast memory between CPU and main memory.
  3. Main Memory (RAM): Larger but slower.
  4. Non-Volatile Memory (ROM, Flash): Permanent storage.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is memory addressing?

A

Uses hexadecimal notation for memory addresses.

Memory Map: Visual representation of memory allocation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the difference between microcontrollers and microprocessors?

A

Microcontroller: All-in-one system (CPU, memory, I/O); Embedded in devices.
Microprocessor: CPU only; needs external components; Found in computers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is an example of a microcontroller and a microprocessor?

A

Microcontroller: PIC16F84A, Arduino.
Microprocessor: Intel Core i7.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is an application of microcontrollers?

A

Anti-lock Braking System (ABS): Microcontroller reads sensor data, detects skidding, and adjusts braking.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is machine code?

A

Binary instructions directly executed by the CPU.

17
Q

What is assembly code?

A

Human-readable representations of machine code using mnemonics.

18
Q

What are important registers in a microprocessor?

A
  1. Program Counter (PC): Holds the address of the next instruction.
  2. Accumulator/Working Register: Temporarily stores computation results.
  3. Status Register: Contains flags indicating processor states.
  4. General-Purpose Registers: Temporary storage for various tasks.