AVR Microcontroller Questions and Answers – LCD Interfacing

This set of AVR Micro-controller Multiple Choice Questions & Answers (MCQs) focuses on “LCD Interfacing”.

1. In AVR, the LCD operates in two main modes, it can be in 8 bit or 4 bit data.
a) true
b) false
c) depends on the situation
d) can’t be said
View Answer

Answer: a
Explanation: In AVR, the LCD operates in two main modes, they are in the 8 bit data transfer mode and the 4 bit data transfer mode.

2. What can be the sequence of commands that may be used for initializing an LCD?
a) 0x06, 0x0e, 0x01
b) 0x0e, 0x01, 0x80
c) 0x38, 0x0e, 0x01
d) all of the mentioned
View Answer

Answer: c
Explanation: For initializing an LCD, we can use commands like 0x38 for selecting the 5*7 matrix, 0x0e for display on and the cursor blinking and 0x01 for clearing the screen.

3. When the LCD operates in the 4 bit mode, then what more commands are added to it?
a) 33
b) 32
c) 28
d) all of the mentioned
View Answer

Answer: d
Explanation: When an LCD operates in the 4 bit mode than 33, 32, 28 in hex are sent to it. They represent 3, 3, 3, 2 nibbles which tell the LCD to do into the 4 bit mode for saving the i/o pins of the port.
advertisement
advertisement

4. What is the main function of the LPM instruction used in LCD?
a) for initializing the LCD in the read mode
b) for initializing the LCD in the write mode
c) for sending a long string of characters to the LCD
d) all of the mentioned
View Answer

Answer: c
Explanation: LPM instruction is used for sending a long string of characters to the LCD.

5. The RS pin acts as an
a) input pin
b) output pin
c) any of the mentioned depending on the conditions
d) none of the mentioned
View Answer

Answer: a
Explanation: The RS pin of the LCD is used for selecting a particular register used for sending a command or the data to the LCD.
Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

6. To latch in information at the data pins of the LCD, we send
a) H-L pulse at the E pin
b) L-H pulse at the E pin
c) A constant H pulse at the E pin
d) A constant L pulse at the E pin
View Answer

Answer: a
Explanation: For latching in information at the data pins of the LCD, we send a H-L pulse at the LCD.

7. What is the function of the 0x06 command?
a) to clear the LCD
b) to blink the cursor
c) to shift the cursor to the right
d) for selecting the matrix
View Answer

Answer: c
Explanation: 0x06 command is used for shifting the cursor to the right after every data send to it.
advertisement

8. What is the address of the second column and the second row of the 2*20 LCD?
a) 0x80
b) 0x81
c) 0xc0
d) 0xc1
View Answer

Answer: d
Explanation: 0xc0 acts as the address for selecting the second row and the first column of the LCD, so according to it if we need to select the second row and the second column of the LCD, then the address should be 0xc1.

9. Which of the following commands takes more than 100 microseconds to run?
a) shift cursor left
b) shift cursor right
c) set address location of the DDRAM
d) clear screen
View Answer

Answer: d
Explanation: Clear screen is a command that takes more than 100 microseconds to run.
advertisement

10. For selecting the data pins in an LCD, RS pin should be
a) 1
b) 0
c) F
d) 10
View Answer

Answer: a
Explanation: For selecting the data pins of the LCD, the RS pin of the LCD should be set to 1.

Sanfoundry Global Education & Learning Series – Microcontroller.

To practice all areas of Microcontroller, here is complete set of 1000+ Multiple Choice Questions and Answers.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.