____________________________________________________________________________________________________

DISCRIPTION

CIRCUIT DIAGRAM

FIRMCODES

VIDEO What is LCD ?- A liquid-crystal display (LCD) is a flat panel display that uses the light modulating properties of liquid crystals. Liquid crystals do not emit light directly. About & Types of LCD- LCDs allow displays to be much thinner than cathode ray tube (CRT) technology. LCDs consume much less power than LED and gas-display displays because they work on the principle of blocking light rather than emitting it. An LCD is of two types depending upon how they made with either a passive matrix or an active matrix display display grid. These LCDs are divide in colors (blue, red, green, etc) and its display system (like 16×1, 16×2, 16×4, etc) as shown in photos. The passive matrix LCD has a grid of conductors with pixels located at each intersection in the grid. A current is sent across two conductors on the grid to control the light for any pixel. Some passive matrix LCD’s have dual scanning, meaning that they scan the grid twice with current in the same time that it took for one scan in the original technology. An active matrix has a transistor located at each pixel intersection, requiring less current to control the luminance of a pixel. For this reason, the current in an active matrix display can be switched on and off more frequently, improving the screen refresh time (your mouse will appear to move more smoothly across the screen, for example). The active matrix LCD is also known as a thin film transistor (TFT) display. However, active matrix is still a superior technology. Operating parameters – below is pin description of LCD module Pin No Function Name 1 Ground (0V) Ground 2 Supply voltage; 5V (4.7V – 5.3V) Vcc 3 Contrast adjustment; through a variable resistor V EE 4 Selects command register when low; and data register when high Register Select(RS) 5 Low to write to the register; High to read from the register Read/write(RW) 6 Sends data to data pins when a high to low pulse is given Enable(E) 7 8-bit data pins DB0 8 DB1 9 DB2 10 DB3 11 DB4 12 DB5 13 DB6 14 DB7 15 Backlight V CC (5V) Led+ 16 Backlight Ground (0V) Led-(GND) Applications- LCDs are used in a wide range of applications including computer monitors, televisions, instrument panels, aircraft cockpit displays, and signage. They are common in consumer devices such as video players, gaming devices, clocks, watches, calculators, and telephones, and have replaced cathode ray tube (CRT) displays in most applications. They are available in a wider range of screen sizes than CRT and plasma displays. Click Here : understanding of LCD module and its interfacing 1. Circuit Diagram of interfacing lcd with 8051 1. Program of interfacing lcd with 8051 /****************************************************** IDE :- Keil DEVELOPED BY:- FIRMWARE DEVELOPER (www.firmcodes.com) WHAT PROGRAM DO:- DISPLAY ON LCD "WELCOME TO FIRMCODES.COM" ******************************************************/ #include<reg51.h> sfr lcd=0x90; // data of lcd at port 2 sbit rs=P3^0; // rs pin at P3.0 sbit rw=P3^1; // rw pin at P3.1 sbit en=P3^2; // en pin at P3.2 void delay(); // for delay void cmd(); // lcd in command mode void display(); // lcd is in display mode void main() { while(1) { // LCD INITIALIZE START lcd=0x38; cmd(); lcd=0x0e; cmd(); lcd=0x01; cmd(); lcd=0x06; cmd(); lcd=0x80; cmd(); // LCD INITIALIZE END // DATA DISPLAYING ON LCD lcd='W'; display(); lcd='E'; display(); lcd='L'; display(); lcd='C'; display(); lcd='O'; display(); lcd='M'; display(); lcd='E'; display(); lcd=' '; display(); lcd='T'; display(); lcd='O'; display(); lcd=0xc0; //NEXT LINE COMMAND cmd(); lcd='F'; display(); lcd='I'; display(); lcd='R'; display(); lcd='M'; display(); lcd='C'; display(); lcd='O'; display(); lcd='D'; display(); lcd='E'; display(); lcd='S'; display(); lcd='.'; display(); lcd='C'; display(); lcd='O'; display(); lcd='M'; display(); } } void cmd() { unsigned char i; rs=0; rw=0; en=1; for(i=0;i<2;i++); en=0; delay(); } void display() { unsigned char i; rs=1; rw=0; en=1; for(i=0;i<2;i++); en=0; delay(); } void delay() { unsigned int i,j; for(i=0;i<100;i++) for(j=0;j<153;j++); } 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 /****************************************************** IDE :- Keil DEVELOPED BY:- FIRMWARE DEVELOPER (www.firmcodes.com) WHAT PROGRAM DO:- DISPLAY ON LCD "WELCOME TO FIRMCODES.COM" ******************************************************/ #include<reg51.h> sfr lcd=0x90; // data of lcd at port 2 sbit rs=P3^0; // rs pin at P3.0 sbit rw=P3^1; // rw pin at P3.1 sbit en=P3^2; // en pin at P3.2 void delay(); // for delay void cmd(); // lcd in command mode void display(); // lcd is in display mode void main() { while(1) { // LCD INITIALIZE START lcd=0x38; cmd(); lcd=0x0e; cmd(); lcd=0x01; cmd(); lcd=0x06; cmd(); lcd=0x80; cmd(); // LCD INITIALIZE END // DATA DISPLAYING ON LCD lcd='W'; display(); lcd='E'; display(); lcd='L'; display(); lcd='C'; display(); lcd='O'; display(); lcd='M'; display(); lcd='E'; display(); lcd=' '; display(); lcd='T'; display(); lcd='O'; display(); lcd=0xc0; //NEXT LINE COMMAND cmd(); lcd='F'; display(); lcd='I'; display(); lcd='R'; display(); lcd='M'; display(); lcd='C'; display(); lcd='O'; display(); lcd='D'; display(); lcd='E'; display(); lcd='S'; display(); lcd='.'; display(); lcd='C'; display(); lcd='O'; display(); lcd='M'; display(); } } void cmd() { unsigned char i; rs=0; rw=0; en=1; for(i=0;i<2;i++); en=0; delay(); } void display() { unsigned char i; rs=1; rw=0; en=1; for(i=0;i<2;i++); en=0; delay(); } void delay() { unsigned int i,j; for(i=0;i<100;i++) for(j=0;j<153;j++); } PROTEUS File for SIMULATION(Password Of RAR file is :-firmcodes.com) ____________________________________________________________________________________________________ Content for the tab VIDEO