1. The primary difference between a microprocessor and a microcontroller is:
Answer:
Explanation:
A microcontroller is an integrated circuit that includes a CPU, memory, and input/output peripherals on a single chip, whereas a microprocessor is the CPU itself, used in PCs.
2. Which of the following is a feature of RISC (Reduced Instruction Set Computer) architecture?
Answer:
Explanation:
RISC architecture is characterized by its small and highly optimized set of instructions, aiming for efficiency and reduced complexity.
3. The ALU in a microprocessor is responsible for:
Answer:
Explanation:
The Arithmetic Logic Unit (ALU) is a critical component of the microprocessor responsible for performing arithmetic and logical operations.
4. In microcontroller terminology, GPIO stands for:
Answer:
Explanation:
GPIO stands for General Purpose Input/Output, referring to the pins on a microcontroller that can be used as either inputs or outputs.
5. The clock speed of a microprocessor determines:
Answer:
Explanation:
The clock speed of a microprocessor, typically measured in MHz or GHz, determines how many instructions per second the processor can execute.
6. Flash memory in a microcontroller is used to:
Answer:
Explanation:
Flash memory in a microcontroller is typically used to store the program code, as it retains data even when the power is turned off.
7. An interrupt in a microcontroller is:
Answer:
Explanation:
An interrupt is a signal to the processor, either from software or hardware, that temporarily halts the current activities to attend to an urgent task.
8. PWM in microcontroller context stands for:
Answer:
Explanation:
PWM, or Pulse Width Modulation, is a technique used in microcontrollers for controlling power to devices, motors, and LEDs, among others.
9. The term 'firmware' in microcontrollers refers to:
Answer:
Explanation:
Firmware is a type of software that is embedded directly into the ROM or flash memory of a microcontroller and controls its basic functions.
10. In the context of microcontrollers, SPI stands for:
Answer:
Explanation:
SPI, or Serial Peripheral Interface, is a synchronous serial communication interface used for short-distance communication, primarily in embedded systems.
11. What is the function of an oscillator in a microcontroller?
Answer:
Explanation:
An oscillator in a microcontroller generates the clock signal, which is essential for synchronizing all operations within the microcontroller.
12. DMA in the context of microcontrollers stands for:
Answer:
Explanation:
DMA (Direct Memory Access) allows certain hardware subsystems to access main system memory independently of the central processing unit, improving data throughput and efficiency.
13. In microcontrollers, EEPROM is used for:
Answer:
Explanation:
EEPROM (Electrically Erasable Programmable Read-Only Memory) is a type of non-volatile memory used in microcontrollers to store small amounts of data that must be saved when power is removed, like configuration settings.
14. The primary role of a watchdog timer in a microcontroller is to:
Answer:
Explanation:
A watchdog timer is a hardware timer that resets the microcontroller if the software becomes unresponsive or gets stuck in a loop.
15. UART in microcontrollers is commonly used for:
Answer:
Explanation:
UART (Universal Asynchronous Receiver/Transmitter) is a hardware communication protocol used for serial communication in microcontrollers.
16. In microprocessors, 'branch prediction' is used to:
Answer:
Explanation:
Branch prediction is a technique used in microprocessors to increase processing speed by predicting the future flow of a program, thereby reducing the number of instruction-path breaks.
17. The Harvard architecture in microcontrollers refers to a design where:
Answer:
Explanation:
The Harvard architecture is a computer architecture that separates the storage and handling of CPU instructions and data, allowing simultaneous access to both.
18. An ADC in a microcontroller is used to:
Answer:
Explanation:
ADC (Analog to Digital Converter) in a microcontroller is used to convert analog signals (like sensor inputs) into digital signals that can be processed by the microcontroller.
19. A microcontroller's instruction set is:
Answer:
Explanation:
The instruction set of a microcontroller is a set of all the operations (like arithmetic, logic, control, and data transfer operations) that the microcontroller is designed to execute.
20. The primary use of an interrupt in a microcontroller is to:
Answer:
Explanation:
An interrupt is a mechanism by which an I/O or an instruction can suspend the normal execution of the processor and get immediate service for a high-priority condition.