Presentation is loading. Please wait.

Presentation is loading. Please wait.

Display Devices 16 x 2 lcd display.

Similar presentations


Presentation on theme: "Display Devices 16 x 2 lcd display."— Presentation transcript:

1 Display Devices 16 x 2 lcd display

2 2x16 Characters LCD Display
It is a display device used in Embedded system to display information It contains 32 character space on screen arranged in 16 columns and 2 rows

3 Pin out of LCD Display Pin Description Pin 1 Ground Pin 2 VCC (+5)
Pin 3 Contrast Voltage Pin 4 Data/Command (R/S) Pin 5 Read/Write (W) Pin 6 Enable (E1) Pin 7 D0 (Not Used) Pin 8 D1 (Not Used)

4 Contd.... Pin 9 D2 (Not Used) Pin 10 D3 (Not Used) Pin 11 D4 Pin 12 D5 Pin 13 D6 Pin 14 D7 Pin 15 LED+ Pin 16 LED-

5 Character Chart

6 Manual Data Entering

7 Command Chart

8 Interfacing with ATMega8

9 Header files lcd.c lcd.c file contains lcd related functions to manipulate data on LCD lcd.h lcd.h contains LCD related macros, function signatures and settings for LCD Display #include"lcd.h" //include lcd.h #include"lcd.c" //include lcd.c Include both files in your project and paste both lcd.c and lcd.h in the same folder where your .c file resides

10 LCD Commands lcd_init(LCD_DISP_ON)
This function is used to initialize LCD Module with some default setting This function with above argument will Start the display, clear it and put cursor on (0,0) location See lcd.h file for more macro

11 Conti…. lcd_clrscr() This function will clear the Display and position the cursor on (0,0) location. lcd_puts(“Hello") This function will print Hello on the screen of LCD at current cursor location. After clearing the screen, current cursor location would be (0,0). lcd_gotoxy(column, row) This function is used to set the current cursor location on the LCD. Display will always print the text/data at current cursor location. You can set the current cursor location any time in programming.

12 Conti… lcd_command(Macro_for_Command)
Using this function you can execute commands of LCD module LCD_MOVE_DISP_LEFT this is the command for shifting the display to left hand side You need to execute this command 16 times to shift all current text on the screen

13 Thank You!!!


Download ppt "Display Devices 16 x 2 lcd display."

Similar presentations


Ads by Google