QUESTIONS AND SOLUTIONS GUARANTEE A+
✔✔What is the maximum resolution of the ATmega328P's ADC, and how many discrete
levels can it represent? - ✔✔10-bit resolution, meaning 1024 discrete levels (0 to 1023).
✔✔Explain how the reference voltage affects ADC readings? - ✔✔The reference
voltage determines the full-scale range of the ADC. A 5V reference results in ~4.88mV
per step for a 10 bit ADC.
✔✔What is a computer? - ✔✔A computer is made up of a processor, memory, input
units, and output units that work together to execute programs and process data.
✔✔What is a processor? - ✔✔A processor consists of registers for temporary storage,
an Arithmetic Logic Unit (ALU) for numerical and logical operations, and a Control Unit
(CU) to manage instructions.
✔✔What is a microprocessor? - ✔✔A microprocessor is a processor integrated into a
single IC that requires external memory and I/O components to function as a complete
system.
✔✔What is a microcontroller? - ✔✔A microcontroller is a compact computer in a single
chip that includes a microprocessor, memory, and I/O interfaces designed for specific
applications.
✔✔What is the difference between a microprocessor and a microcontroller? - ✔✔A
microprocessor requires external components to function, while a microcontroller has
built in RAM, ROM, and I/O interfaces, making it ideal for embedded applications.
✔✔What is an embedded system? - ✔✔An embedded system is a dedicated computing
system with a microcontroller or microprocessor designed for a specific task.
✔✔What are bits and bytes? - ✔✔A bit is the smallest unit of data, representing 0 or 1,
while a byte consists of 8 bits.
✔✔How do you convert a binary number to decimal? - ✔✔Multiply each bit by 2 raised
to its position from right to left and sum the results.
✔✔How do you convert a hexadecimal number to decimal? - ✔✔Multiply each digit by
16 raised to its position from right to left and sum the results.
✔✔What is two's complement? - ✔✔Two's complement is a method for representing
negative binary numbers by inverting all bits and adding 1.
, ✔✔What is ASCII code? - ✔✔ASCII (American Standard Code for Information
Interchange) is a character encoding standard that represents text using numerical
codes.
✔✔What is a bus in a microcontroller? - ✔✔A bus is a group of lines that carry data,
addresses, or control signals between components in a microcontroller.
✔✔What is an address bus? - ✔✔An address bus is unidirectional and carries memory
addresses from the CPU to memory or I/O devices.
✔✔What is a data bus? - ✔✔A data bus is bidirectional and transfers data between the
CPU and memory or peripherals.
✔✔What is a control bus? - ✔✔A control bus carries control signals that direct
operations such as read, write, and reset.
✔✔What is RAM? - ✔✔RAM (Random Access Memory) is volatile memory used for
temporary data storage and program execution.
✔✔What is ROM? - ✔✔ROM (Read-Only Memory) is non volatile memory used to store
firmware or permanent instructions.
✔✔What is EEPROM? - ✔✔EEPROM (Electrically Erasable Programmable Read-Only
Memory) is a non volatile memory that allows data to be written and erased electrically.
✔✔What is the function of the Program Counter (PC)? - ✔✔The Program Counter
stores the address of the next instruction to be executed.
✔✔What is the function of the Instruction Register (IR)? - ✔✔The Instruction Register
holds the instruction currently being executed.
✔✔What is the function of the Stack Pointer (SP)? - ✔✔The Stack Pointer keeps track
of the top of the stack in memory.
✔✔What is indirect addressing? - ✔✔Indirect addressing uses registers as pointers to
access memory locations.
✔✔What are the I/O ports of the ATmega328P? - ✔✔ATmega328P has three I/O ports:
Port B (8 bits), Port C (7 bits), and Port D (8 bits).
✔✔How do you configure an ATmega328P pin as an input? - ✔✔Clear the
corresponding bit in the DDRx register.