Professional Documents
Culture Documents
LCD Display - New
LCD Display - New
Description:
This interface, board consists of Matrix Hex keyboard and 2 line, 16 characters LCD
text display.
LCD Display:
LCD display has got built in controller. To display a character or numeral, the
corresponding ASCII value is to be given as input. The controller in turn converts the
ASCII value into dot matrix format and displays it. The characters are displayed in
5*7 matrix format. The LCD display works with 5V power supply. The contrast of
the display is adjusted through a variable resistance, which is connected across 5V
power supply.
Before writing the data, certain commands are to be sent to the controller like at what
position the character is to be displayed, the cursor is to be blinking or not.
The LCD display has got 8 data inputs namely DB0 to DB7 (Data Bus signals)
There is another pin namely RS (Register select signal). If a command is written, this
pin is to be made as 0 level, (RS =0, Command Register). If data is written, then this
pin is to be made as 1 level (RS =1, Data register).
There is another pin namely E (Enable signal). The data or command is written into
the controller only by making the Enable signal high to low.
LCD display contains internal buffer memory to store the data. It is also possible to
read the content of the memory. Normally, the command and data are written in the
LCD controller. At the time of writing inside the controller, in addition to giving
proper inputs to the control input pins RS and E, the R/W pin of the LCD display
must be kept zero.
There are many commands to be used in the LCD display. The following table gives 8
bit code for selected commands.
In this interface board, the LCD data lines are connected to the port A of IC 8255.
RS pin is connected to PB0
R/W pin is connected to PB1
E Pin is connected to PB2
Once the commands and data are written in the LCD controller, there is no necessity
to refresh the display externally. The controller inside the LCD display will take care
of this.
The keyboard is a 16 keys keyboard. It is constructed in 4*4 matrix. There are 4 rows
and 4 column lines. In the intersections of rows and columns, the keys are wired. The
row lines are called scan lines and the column lines are called return lines. The
columns are read inside the processor or controller through port. Normally, the
columns are tied with 5V and hence they will be in level.
Then the row lines are given 0 level one by one. At that instant, any key is pressed in
that row, 0 level is transferred to the column line. It is read inside as key input. The
row line and the column line nos generate the key code.
In the application board, PC0- PC3 are used as row lines (input port) and PC4- PC7
are used as column lines (output port).