16 Questions
What is the primary function of an LCD display?
To display different messages on a miniature liquid crystal display
What is the maximum number of characters that can be displayed in a single line on an LCD display?
16 characters
What is the purpose of the potentiometer in an LCD display?
To adjust the display contrast
What is the minimum number of rows that can be displayed on an LCD display?
1 row
What is the purpose of the _LCD_CLEAR command?
To clear the display
What is the purpose of the _LCD_SHIFT_LEFT command?
To shift the display left without changing the display data RAM
What is the purpose of the Conversions Library?
To provide routines for converting numerals to strings and BCD/decimal conversions
What is the timing requirement for sending data to the LCD?
The data should be available on the data bus before generating the High-to-Low pulse on the EN pin
What is the purpose of the FloatToStr function?
Convert a floating-point number to a string
How many characters does the output string of the ByteToStr function have?
4 characters including null character
What is the output string justification of the WordToStr function?
Right justified
What is the minimum required length of the destination string for the FloatToStr function?
14 characters
What is the purpose of the Dec2Bcd function?
Convert a decimal value to BCD
How many characters does the output string of the LongToStr function have?
12 characters including null character
What is the purpose of the IntToStr function?
Convert a signed integer number to a string
What is the output string justification of the FloatToStr function?
Left justified
Study Notes
LCD Display Features
- Can display messages in one, two, or four lines with 16 characters each
- Displays all letters of the alphabet, Greek letters, punctuation marks, mathematical symbols, and user-defined symbols
- Features include automatic message shift (left and right), cursor appearance, and LED backlight
- Display contrast depends on varying voltage (0-Vdd) applied to the VEE pin using a 5 kΩ potentiometer
Commands for LCD Display
- _LCD_FIRST_ROW: Move cursor to 1st row
- _LCD_SECOND_ROW: Move cursor to 2nd row
- _LCD_THIRD_ROW: Move cursor to 3rd row
- _LCD_FOURTH_ROW: Move cursor to 4th row
- _LCD_CLEAR: Clear display
- _LCD_RETURN_HOME: Return cursor to home position, returns a shifted display to original position
- _LCD_CURSOR_OFF: Turn off cursor
- _LCD_UNDERLINE_ON: Underline cursor on
- _LCD_BLINK_CURSOR_ON: Blink cursor on
- _LCD_MOVE_CURSOR_LEFT: Move cursor left without changing display data RAM
- _LCD_MOVE_CURSOR_RIGHT: Move cursor right without changing display data RAM
- _LCD_TURN_ON: Turn LCD display on
- _LCD_TURN_OFF: Turn LCD display off
- _LCD_SHIFT_LEFT: Shift display left without changing display data RAM
- _LCD_SHIFT_RIGHT: Shift display right without changing display data RAM
Conversions Library Routines
- Provides routines for numerals to strings and BCD/decimal conversions
- Functions include:
- ByteToStr: Converts input byte to a string
- ShortToStr: Converts input signed short number to a string
- WordToStr: Converts input word to a string
- IntToStr: Converts input signed integer number to a string
- LongToStr: Converts input signed long integer number to a string
- LongWordToStr: Converts input unsigned long integer number to a string
- FloatToStr: Converts input floating-point number to a string
- rtrim: Trims string
- Dec2Bcd: Converts decimal value to BCD
- Bcd2Dec16: Converts BCD to decimal
- Dec2Bcd16: Converts decimal value to 16-bit BCD
This quiz covers the characteristics and functions of a miniature LCD display, including its display capabilities, features, and technical aspects.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free