Professional Documents
Culture Documents
41 ESD Lab2 GLCD
41 ESD Lab2 GLCD
Design
OBJECTIVE
EQUIPMENTS
THEORY
Graphical LCD module interfaced with LPC1768 Micro–A748 development
board,following are some specification of GLCD
• 128 × 64 dots/pixel
• 8 data lines
TYBTECH ET343 Embedded System
Design
E : Latches information
Registers of GLCD
3. When LCD is in active mode (CS1 & CS2 are high), the registers can
beselected by sending bits on RS and RW pins as shown in the table below
1. GLCD Initialization
2. Column Selection
3. Data Display
To display Image
• For an image to be displayed on GLCD, the image must have following features:
• The hex code for an image can be generated from any of the bitmap code
generating software available on internet.
• These codes are stored in an array and the array is stored in a header file with
‘.H’ extension.
INTERFACING DETAILS/CONNECTIONS
TYBTECH ET343 Embedded System
Design
REFERENCES
PROGRAM
#include "lpc1768_Includes.h"
#include "temp1.h"
FIO1SET=CS1;
FIO1SET=CS2;
Glcdcmd(0x3F); //Display ON
MSDelay (10);
Glcdcmd(0x40); //Set Y address as 0(range 0-63)
MSDelay (10);
Glcdcmd(0xB8); //Set X add- 0(page adds)(range 0-7)
MSDelay (10);
Glcdcmd(0xC0); //Set Z address (start line=0)
MSDelay (10);
Glcd_disp(audi);
//Calling display function, abc is name of array
TYBTECH ET343 Embedded System
Design
MSDelay (10);
}
}
}
{
unsigned int i,j;
for(i=0;i<itime;i++)
for(j=0;j<10;j++);
OUTPUT:
TYBTECH ET343 Embedded System
Design
CONCLUSION: