Assignment 11 Solution
Assignment 11 Solution
QUESTION 1:
Which of the following represents the best description of an AVR timer/counter
source when CS02 = 1, CS01 = 0, and CS00 = 1?
Correct Answer: d
Detailed Solution:
QUESTION 2:
a) Output port
b) Input port
Correct Answer: b
Detailed Solution:
______________________________________________________________________________
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:
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?
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:
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
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?
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