Interfacing Interfacing Graphics Graphics LCD (GLCD) with 8051 Microcontro Microcontroller ller by Disp... Disp...
http://www http://www.engin .engineersg eersgarage arage.com/m .com/microco icrocontroll ntroller/80 er/8051proje 51projects/i cts/interfa nterfac... c...
Search
Home
Insight
EG Labs
Knowledge Base
Advertise
Articles Earn
Invention Stories
STORE
Request Quote
Forum
Contact Us
JOIN US ON
How to display string on Graphics LCD
FACEBOOK FOR LATEST UPDATES
using 8051 Microcontroller (AT89C52) Engineer Like
MC085
22,
Summary
Description
Circuit Diagram
Video
Code2 Components
ARTICLE OF THE WEEK
Code
Store Flipkart™ Official Site Get 1TB - 3TB Harddisks @Huge Discounts Easy EMI & Payment Optio
Humidity Sensor How Number
LCDs, Character, Graphic Liquid Character Displays,inverters High quality, lowest prices on li Beta Software Agreement Customizable Beta Program Toolkit. Free 30 Min Consultation. Bu
Combination Lock Works
/*Program to print text on Graphics LCD*/
Post and Earn
SHUBHAMGARG1994 Invite a friend My account Create content Log out
#include #include #define dport P2 #include "font.h" #include "font2.h" sbit sbit sbit sbit sbit
rs=P1^0; rw=P1^1; en=P1^2; cs1=P1^3; cs2=P1^4;
STORE
Microcontrollers (6,004) Sensors & Transducers (7,877) Development Boards (1,195) Programmers (145) Capacitors (34,783) RF Modules (300) GPS/GSM Modules (122) Zigbee (94) DC Motor (49) Stepper Motor (104)
1 f7
unsigned char c; unsigned char z=0; void ctrloff() { rs=0; rw=0; en=0; cs1=0; cs2=0; } //DELAY FUNCTION void delay(unsigned int j) {
03 07 2012 12 49
Interfacing Graphics LCD (GLCD) with 8051 Microcontroller by Disp...
Gear Assembly (57) Get a Quote!
http://www.engineersgarage.com/microcontroller/8051projects/interfac...
unsigned int i; for(i=0;i
//0x40 represents Column 0
//0x40 represents Column 0
void setpage(unsigned char x) { ctrloff();
f7
03 07 2012 12 49
Interfacing Graphics LCD (GLCD) with 8051 Microcontroller by Disp...
dport= 0xb8|x; cs1=1; cs2=1; rs=0; rw=0; en=1; _nop_(); en=0;
http://www.engineersgarage.com/microcontroller/8051projects/interfac...
//0xb8 represents Page 0
} //Function to Scroll Strings void setstartline(unsigned char z) { ctrloff(); dport=0xc0|z; //0xc0 represents Line 0 cs1=1; cs2=1; rs=0; rw=0; en=1; _nop_(); en=0; } void lcddata(unsigned char *value,unsigned int limit) { unsigned int i; for(i=0;i127) return; } }
3 f7
03 07 2012 12 49
Interfacing Graphics LCD (GLCD) with 8051 Microcontroller by Disp...
http://www.engineersgarage.com/microcontroller/8051projects/interfac...
void lcdputs1(unsigned char y,unsigned char x,unsigned char *str) { unsigned char i; unsigned int a; setcolumn(y); setpage(x); for(i=0;str[i]!=0;i++) { a=(*(str+i)); a*=8; lcddata(&Character8x8[a],8); } } void lcdputs2(unsigned char y,unsigned char x,unsigned char *str) { unsigned char i; unsigned int a; setcolumn(y); setpage(x); for(i=0;str[i]!=0;i++) { a=(*(str+i)-32); a*=5; lcddata(&font5x7[a],5); } } void clrlcd() { unsigned char i,j; for (i=0;i < 8;i++) { setpage(i); setcolumn(0); for (j= 0 ;j < 128; j++) lcddata(&z,1); } } unsigned unsigned unsigned unsigned
char char char char
ar0[]="*************** "; ar1[]="ENGINEERSGARAGE"; ar2[]="Inspiring Creations ar3[]="************** ";
";
void main() { unsigned char i; clrlcd(); displayon(); setcolumn(0); setpage(0); lcdputs1(0,1,ar0); lcdputs1(0,2,ar1); lcdputs2(0,3,ar2); lcdputs1(0,4,ar3);
f7
03 07 2012 12 49
nterfacing Graphics LCD (GLCD) with 8051 Microcontroller by Disp...
http://www.engineersgarage.com/microcontroller/8051projects/interfac...
delay(65000); delay(65000); for(i=0;i<5;i++) { displayoff(); delay(65000); displayon(); delay(65000); delay(65000); } i=0; while(1) { setstartline(i++); delay(40000); }
//Function to Scroll Strings
}
7798 reads
f7
03 07 2012 12 49
Interfacing Graphics LCD (GLCD) with 8051 Microcontroller by Disp...
6 f7
http://www.engineersgarage.com/microcontroller/8051projects/interfac...
03 07 2012 12 49
Interfacing Graphics LCD (GLCD) with 8051 Microcontroller by Disp...
http://www.engineersgarage.com/microcontroller/8051projects/interfac...
YOU ARE HERE Home
Top Copyright © 2012 EngineersGarage. All rights res erved. Privacy Policy
f7
03 07 2012 12 49