250+ TOP MCQs on AVR Interfacing with 8255 and Answers

AVR Microcontroller Interview Questions and Answers for freshers on “Interfacing with 8255”.

1. The 8255 is a ______ chip.
a) Input/Output
b) Analog to Digital
c) Digital to analog
d) None of the mentioned

Answer: a
Clarification: The 8255 is Input/Output (I/O) chip. It has three separate accessible ports. The 8255 chip is used to expand the I/O ports of microcontrollers.

2. Which pins of a microcontroller are directly connected with 8255?
a) RD
b) WR
c) D0-D7
d) All of the mentioned

Answer: d
Clarification: RD, WR, D0-D7 all are directly connected to the 8051 for telling the chip about the control signals and also for transferring the data.

3. Find the control word for PA= out, PB= in, PCL=out, PCH=out (Mode0)?
a) 0x02H
b) 0x82H
c) 0x83H
d) 0x03H

Answer: b
Clarification: The value that is being loaded in the control word is 10000010b for PB as an input port and all others as the output ports being operated in mode0. The hex equivalent of 10000010b → 0x82H.

4. Which pins are used to select the ports and the control register?
a) CS
b) A1
c) A0
d) All of the mentioned

Answer: d
Clarification: CS pin is an active low input pin for 8255 and it is used for selecting a chip. A0 and A1 pins are used for select ports and the control register.

5. What is the value of the control register when RESET button is set to zero?
a) 0x00H
b) 0xFFH
c) 0x11H
d) value remains the same

Answer: d
Clarification: RESET is active-high signal input into the 8255 used to clear the control register. When RESET is activated (i.e. set to high), all ports are initialized as input mode. Hence the value of the control register remains the same as it is even when the RESET button is set to zero.

6. Why MOVX instruction is being used to access the ports of the 8255?
a) because 8255 is connecting a microcontroller in memory mapped I/O configuration
b) because 8255 is used to access the external communication
c) because 8255 is used to access the data transfer
d) because 8255 is used to access the interfacing of LCD, motor etc

Answer: a
Clarification: As 8255 is connecting a microcontroller in memory mapped I/O configuration. This means that memory space used to access 8255 (i.e. 8255 is treated as external memory). MOVX instruction is used to access external memory locations.

7. What is correct about the BSR mode from below?
a) In BSR mode, only the individual bits of PORT A can be programmed
b) In BSR mode, only the individual bits of PORT B can be programmed
c) In BSR mode, only the individual bits of PORT C can be programmed
d) none of the mentioned

Answer: c
Clarification: BSR (Bit Set/Rest) mode is used to program individual bits of PORT C only.

8. How many pins of the 8255 can be used as the I/O ports?
a) 8
b) 16
c) 24
d) 32

Answer: c
Clarification: They are 3 ports available in the 8255 so 24 pins are available for the I/O ports pins.

9. 8255 is a ____ pin IC.
a) 16
b) 8
c) 40
d) 60

Answer: c
Clarification: 8255 is a 40 pin IC.

10. 8255 has handshaking capability?
a) yes
b) no
c) cant be said
d) depends on the conditions

Answer: a
Clarification: 8255 is a device that with the help of its handshaking property gets interfaced with any microcontroller.

11. The 8255 can be programmed in any of the __________
a) 2 modes
b) 3 modes
c) 4 modes
d) 5 modes

Answer: c
Clarification: 8255 can be programmed in any of the 4 modes.

Leave a Reply

Your email address will not be published. Required fields are marked *