0% found this document useful (0 votes)
202 views8 pages

Assignment 11 Solution

The document contains 15 multiple choice questions from an online certification course on microprocessors and microcontrollers from NPTEL and IIT Kharagpur. The questions cover topics like AVR timers/counters, the 8255 Programmable Peripheral Interface, the ADC0804 analog to digital converter, 7-segment displays, and the number of pins on the 8255 chip. Each question is followed by the correct answer and a more detailed explanation.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
202 views8 pages

Assignment 11 Solution

The document contains 15 multiple choice questions from an online certification course on microprocessors and microcontrollers from NPTEL and IIT Kharagpur. The questions cover topics like AVR timers/counters, the 8255 Programmable Peripheral Interface, the ADC0804 analog to digital converter, 7-segment displays, and the number of pins on the 8255 chip. Each question is followed by the correct answer and a more detailed explanation.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

NPTEL Online Certification Courses

Indian Institute of Technology Kharagpur

Microprocessors And Microcontrollers


Assignment 11- Week 11
TYPE OF QUESTION: MCQ
Number of questions: 15 Total mark: 15 X 1 = 15
______________________________________________________________________________

QUESTION 1:
Which of the following represents the best description of an AVR timer/counter
source when CS02 = 1, CS01 = 0, and CS00 = 1?

a) Stop, the timer/counter is stopped


b) CPU frequency is divided by 8 (CK/8)
c) CPU frequency is divided by 64 (CK/64)
d) CPU frequency is divided by 1024 (CK/1024)

Correct Answer: d

Detailed Solution:

QUESTION 2:

What is the default configuration of Port A, Port B and Port C in 8255?

a) Output port

b) Input port

c) High Impedance state

d) None of the above


NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur

Correct Answer: b

Detailed Solution:

When RESET is activated, all ports are initialized as input ports.

______________________________________________________________________________

QUESTION 3:

What are the control word contents of the 8255 for the configuration of Port A, Port B, PCL, and
PCH in output mode, assuming I/O mode with mode 0?

a) 80h

b) 90h

c) 89h

d) 9Bh

Correct Answer: a

Detailed Solution:
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur

QUESTION 4:
In 8255 mode 1 operation, which port provides handshaking signals?

a) PORT A

b) PORT B

c) PORT C

d) PORT D

Correct Answer: C

Detailed Solution:

Handshaking signals are provided by port C

QUESTION 5:
Which of the following is true about the 8255 Programmable Peripheral Interface (PPI)?
A. It has three I/O ports
B. It has four I/O ports
C. It has five I/O ports
D. It has six I/O ports
Correct Answer: A

Detailed Solution:

The 8255 PPI has three I/O ports, Port A, Port B, and Port C.

QUESTION 6:
Which of the following statement is FALSE?
A. ADC 0804 has a built in clock generator
B. ADC 0804 has 16-bit resolution
C. Input voltage range of ADC 0804 is 0-5v
D. ADC 0804 has total 20 pins
Correct Answer: B

Detailed Solution:
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur

QUESTION 7:
Identify the values of CS’, A1 and A0 to select the control register in 8255?

A. A0 =1, A1 =1, CS’=0


B. A0 =0, A1 =1, CS’=1
C. A0 =0, A1 =1, CS’=0
D. A0 =1, A1 =0, CS’=1

Correct Answer: A

Detailed Solution:
Refer lecture material.
QUESTION 8:
Which of the following registers holds the counter value of timer/counter 0 in an
AVR microcontroller?
A. TCCR0
B. TCNT0
C. TCCR1A
D. TCNT1
Correct Answer: B

Detailed Solution:

Timer/Counter0 (TCNT0) holding counter value

QUESTION 9:
Which of the following is a hardware solution to suppress a switch bounce in a mi-
crocontroller based system?
A. An RC time constant whose value is smaller than the switch bounce
B. An LC time constant whose value is smaller than the switch bounce
C. An RC time constant whose value is larger than the switch bounce
D. An LC time constant whose value is larger than the switch bounce
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur

Correct Answer: C

Detailed Solution: RC time constant whose value is larger than the switch bounce

QUESTION 10:
The resolution of the ADC0804 is _______.
A. 4 bits
B. 8 bits
C. 10 bits
D. 12 bits
Correct Answer: B

Detailed Solution:

QUESTION 11:
The ADC0804 has a _____________ output.
A. Serial
B. Parallel
C. Both serial and parallel
D. None of the above
Correct Answer: B

Detailed Solution:

The ADC0804 has a parallel output, which means it produces digital output values on 8 parallel
output lines. These output lines can be connected directly to a microcontroller or other digital cir-
cuitry.

QUESTION 12:
Find the control word of the 8255 for resetting BIT 3 of Port C.
a) 00001111
b) 10001111
c) 10001000
d) 00000110
Correct Answer: d

Detailed Solution:
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur

if it is needed that PC3 be reset, then in the control word,

Since it is BSR mode, D7 = '0'.

Since D4, D5, D6 are not used, assume them to be '0'.

PC3 has to be selected, hence, D3 = '0', D2 = '1', D1 = '1'.

PC3 has to be reset, hence, D0 = '0'.

QUESTION 13:
To get 3 displayed by a 7 Segment display(common cathode), what should be the
combination of 8051 pins (P1.7 – P1.0)?

a) 01111101
b) 10111110
c) 01011011
d) 0100 1111
Correct Answer: d
Detailed Solution:
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur

To display ‘3’, the segments f and e need to be off. so p1.7 to p1.0 is 0100 1111 or 1100
1111
QUESTION 14:
Which of the following statements is true about common anode 7-segment displays?

a. All segments share a common anode connection


b. All segments share a common cathode connection
c. Each segment has its own anode connection
d. None of the above

Correct Answer: A

Detailed Solution:

QUESTION 15:
How many pins are present in the 8255 chip?
A. 20
B. 25
C. 40
D. 45
Correct Answer: C

Detailed Solution:

***********END*******
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur

You might also like