lec 5 Flashcards

1
Q

what benefit is provided with the addition of a display on Arduino

A

microcontroller does not need to be connected to a computer to display data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is a 16 by 2 segment LCD

A

16 columns and 2 rows, capable

of displaying a maximum of 32 characters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

how many modes can LCD be controlled by and what are they called

A

2 modes: 4-bit and 8-bit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

how many pins are required for an 8-bit display

and what pins are used

A

10 pins on digital I/O port

pins D0 through to D7

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

how many pins are required for an 4-bit display

and what pins are used

A

6 pins on digital I/O port

pins D4 to D7

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what is it called when data is sent in two parts

A

nibbles

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what is Vss and Vdd

A

two power supply lines for the LCD that will need to have +5volts and ground
applied to them respectively

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what is ‘Backlight Anode & Backlight Cathode’

A

Inside the display there is a LED to provide illumination of the characters. The cathode needs
to be grounded and the anode connected via an external 220 ohm limiting current resistor to
+5 volts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what is VE

A

Allows control over the contrast of the display, using a voltage between zero and +5 volts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what is RS

A

Controls where in the memory of the LCD driver you are writing data to.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

what is RW

A

Tells LCD driver whether you are writing data to the display, or reading data from it. Use +5
volts to read and ground to write to the display

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what is E

A

pin enables data to be written to the registers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

what does the function myLCD.clear() mean

A

All data and text is removed from the display.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

what does the function myLCD.home() mean

A

Moves the cursor to the upper left hand corner of the display (position 0,0). Any print, or write
instructions will result in characters being printed from this location.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

what does the function

myLCD.setCursor(column,row) mean

A

Moves the cursor to the position specified on the display. Any print or write instructions will result
in characters being printed from this new location.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

what does the function myLCD.Cursor() mean

A

Displays a visible cursor in the form of an underscore to identify where the next character will be
printed on the display

17
Q

what does the function myLCD.noCursor() mean

A

Removes the cursor from the display.

18
Q

what does the function myLCD.blink() mean

A

Creates a block-style cursor that blinks on and off at 2Hz.

19
Q

what does the function myLCD.display() mean

A

Makes all characters and cursors stored in the memory of the LCD driver visible on the display.

20
Q

what does the function myLCD.noDisplay() mean

A

Makes all characters and cursors on the display invisible. It does not remove any information from
the LCD driver’s memory.

21
Q

what does the function myLCD.scrollDisplayLeft() mean

A

Scrolls all the contents of the display on both rows, including characters and the cursor, one space
to the left. After 40 executions of this instruction the text loops and reappears at the start on the
right-hand side of the display. Continued use of this function results in the text looping around
again and again.

22
Q

what does the function myLCD.scrollDisplayRight() mean

A

This function behaves the same as myLCD.scrollDisplayLeft(), except that it moves one space
to the right. Looping of text occurs after 40 executions of the instruction.

23
Q

what does the function myLCD.autoscroll() mean

A

Takes a string of text and scrolls it from right to left in increments of the character count of the
string. For example, if you have a word that is 3 characters long, it will shift the word 3 spaces to
the left with each step.

24
Q

what does the function myLCD.noAutoscroll() mean

A

turns autoscrolling off

25
Q

what does the function myLCD.rightToLeft() mean

A

Sets the direction that text is printed on the display from right to left.

26
Q

what does the function myLCD.leftToRight(),mean

A

Sets the direction that text is printed on the display from left to right (default)

27
Q

what does the function myLCD.createChar() mean

A

This function enables you to create your own custom characters. 2 parameters need to be passed
to the function, a numerical value to which the new character will be referred to and the array of
data holding the binary information to create the new character.