Addressing Modes & I/O Ports - MCQs with answers

Addressing Modes & I/O Ports - MCQs with answers


1. When does it become possible for a bit to get accessed from bank '0' in the direct addressing mode of PICs?

a. Only when RPO bit is set 'zero'
b. Only when RPO bit is set '1'
c. Only when RPO bit is utilized along with 7 lower bits of instruction code
d. Cannot Predict

View Answer / Hide Answer

ANSWER: a. Only when RPO bit is set 'zero'



2. Which bit/s should be necessarily cleared in OPTION (SFR) register in order to turn on the weak internal pull-ups of port B?

a. RPO
b. RPBU
c. RBIF
d. All of the above

View Answer / Hide Answer

ANSWER: b. RPBU



3. When does it become feasible for portB pins (RB4 to RB7) to support its unique feature of 'interrupt on change'?

a. By configuring all the pins (RB4-RB7) as inputs
b. By configuring all the pins (RB4-RB7) as outputs
c. By configuring any one of the pins as inputs
d. By configuring any one of the pins as outputs

View Answer / Hide Answer

ANSWER: a. By configuring all the pins (RB4-RB7) as inputs



4. Which digital operations are performed over the detected mismatch outputs with an intention to generate a single output RB port change output?

a. OR
b. AND
c. EX-OR
d. NAND

View Answer / Hide Answer

ANSWER: a. OR


Post your comment