wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Revision

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which module in a PIC microcontroller would you use to generate precise delays for timing purposes?

a)

Timer module

b)

ADC module

c)

PWM module

d)

UART module

2.

Which pins assigned to INT0-INT2

a)

RB0-RB2

b)

RA0-RA2

c)

RC0-RC2

d)

RD0-RD2

3.

Registers associated with PORT configuration:

a)

TRIS : Direction selection

b)

LAT : Read modify write operation

c)

PORT : Port Pin status

d)

ADC : Analog to Digital Conversion

4.

What is the primary advantage of using an interrupt service routine (ISR) in your PIC microcontroller application?

a)

To execute code in response to specific events without polling

b)

To increase the clock speed of the microcontroller

c)

To reduce the power consumption of the microcontroller

d)

To simplify the programming of the microcontroller

5.

What address in IVT is assigned to high priority and low priority interrupts

a)

High Priority : 0008h

b)

High Priority : 0010h

c)

Low Priority : 0018h

d)

Low Priority : 0020h

6.

execution speed of instructions in PIC especially while operating at the maximum value of clock rate

a)

0.1 μs

b)

0.2 μs

c)

0.5 μs

d)

1.0 μs

7.

purpose of setting TOIE bit in INTCON along with GIE bit?

a)

To enable Timer 0 interrupt generation

b)

To disable Timer 0 overflow interrupt

c)

For setting the TOIF flag in INTCON due to generation of Timer 0 overflow interrupt

d)

To configure the Timer 0 prescaler

8.

Which bit permits to enable (if set) or disable (if cleared) all the interrupts in an INTCON register?

a)

GIE: Global Interrupt Enable

b)

TIE: Timer Interrupt Enable

c)

PIE: Peripheral Interrupt Enable

d)

RIE: Reset Interrupt Enable

9.

when the power supply drops the voltage below 4V, Which operational feature of PIC allows it to reset?

a)

Brown-out reset

b)

Power-on reset

c)

Watchdog timer

d)

Low-voltage detection

10.

How many PORTS are available for PIC18FXX and corresponding lines?

a)

3 PORTS: PORT A : RA0 to RA5, PORT B : RB0 to RB7, PORT C : RC0 to RC7

b)

4 PORTS: PORT A : RA0 to RA5, PORT B : RB0 to RB7, PORT C : RC0 to RC7, PORT D : RD0 to RD7

c)

5 PORTS: PORT A : RA0 to RA5, PORT B : RB0 to RB7, PORT C : RC0 to RC7, PORT D : RD0 to RD7, PORT E : RE0 to RE3

d)

6 PORTS: PORT A : RA0 to RA5, PORT B : RB0 to RB7, PORT C : RC0 to RC7, PORT D : RD0 to RD7, PORT E : RE0 to RE3, PORT F : RF0 to RF7