Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 8 pages
Exam (elaborations)

MTL 200 FINAL EXAM QUESTIONS AND 100% CORRECT ANSWERS

Document preview thumbnail
Preview 2 out of 8 pages

MTL 200 FINAL EXAM QUESTIONS AND 100% CORRECT ANSWERS

Content preview

MTL 200 FINAL EXAM QUESTIONS
AND 100% CORRECT ANSWERS!!
How do you configure Port D, Pin 5 as an output and set it to HIGH in C?

Use DDRD |= (1 << PD5); to set PD5 as an output and PORTD |= (1 << PD5); to set it HIGH.

What is the difference between PORTx, PINx, and DDRx registers?

DDRx configures pin direction, PORTx writes HIGH/LOW or enables pull-ups, and PINx reads
input pin states.

Write an Assembly instruction to toggle a specific pin (e.g., PB3) without affecting
other bits?

IN R16, PORTB; EOR R16, (1 << PB3); OUT PORTB, R16;

Explain how a Timer Overflow Interrupt works in ATmega328P?

The timer counts up until overflow, setting the TOVx flag, which triggers an interrupt if enabled.

What is the difference between a polling system and an interrupt system in
microcontrollers?

Polling continuously checks conditions, using CPU resources, while interrupts notify the
CPU only when needed, improving efficiency.

Write an Assembly code snippet that enables an external interrupt on INT0 (PD2)?

LDI R16, (1 << INT0); OUT EIMSK, R16; LDI R16, (1 << ISC01); OUT EICRA, R16;

Explain the purpose of the prescaler in a timer module?

It divides the system clock to slow down timer counting, allowing precise timing.

How does an ADC convert an analog signal to a digital value?

, The ADC uses a Successive Approximation Register (SAR) to compare input voltage with
a reference voltage and outputs a binary value.

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?

Document information

Uploaded on
August 29, 2025
Number of pages
8
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$12.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
QUINTER
3.6
(72)
Sold
407
Followers
106
Items
39871
Last sold
4 days ago


Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions