UNIT 2

UNIT 2

University

10 Qs

quiz-placeholder

Similar activities

The oops moment/3

The oops moment/3

University

10 Qs

“8051 Microcontroller: Test Your Knowledge!”

“8051 Microcontroller: Test Your Knowledge!”

University

10 Qs

BASIS MPC

BASIS MPC

University

10 Qs

PPS QUIZZ 1

PPS QUIZZ 1

University

15 Qs

PRE TEST SCADA - DASAR PEMROGRAMANPLC HMI

PRE TEST SCADA - DASAR PEMROGRAMANPLC HMI

University

10 Qs

Towards Becoming a Professional Engineer

Towards Becoming a Professional Engineer

3rd Grade - University

10 Qs

System Programming & Assemblers

System Programming & Assemblers

University

15 Qs

UNIT 2

UNIT 2

Assessment

Quiz

Engineering

University

Practice Problem

Hard

Created by

pratibha Patil

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1. Which of the following is the correct syntax for setting a specific bit in an I/O port register in embedded C?

PORTx |= (1 << 3);

PORTx &= ~(1 << 3);

PORTx = (1 << 3);

PORTx |= (1 << 0);

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In embedded C programming, how do you clear a bit (set it to 0) in an I/O port register?

PORTx |= (1 << 3);

PORTx &= ~(1 << 3);

PORTx = (1 << 3);

PORTx ^= (1 << 3);

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following code in embedded C: PORTB |= (1 << PB2);?

It clears the bit 2 of PORTB.

It sets the bit 2 of PORTB.

It toggles the bit 2 of PORTB.

It does nothing to PORTB.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In which I/O direction mode do the I/O pins act as input in a microcontroller?

Output mode

Input mode

Floating mode

Tri-state mode

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary function of a Timer/Counter in embedded systems?

To generate PWM signals.

To create delays and manage timing events.

To control the direction of data flow in I/O ports.

To perform analog-to-digital conversions.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

n embedded C, to set the value of the timer for a 1-second delay with an 8-bit timer, assuming a 16 MHz clock and a prescaler of 256, the value of the timer register should be set to:

0x00

0xF4

0x02

0xFF

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you stop the Timer in most embedded systems?

Set the timer's prescaler to zero.

Clear the timer enable bit.

Reset the timer register.

Disable the interrupt associated with the timer.

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?