Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Problem with GLCD 128x64

Status
Not open for further replies.

pany2008

Junior Member level 3
Junior Member level 3
Joined
Aug 24, 2009
Messages
30
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
India
Visit site
Activity points
1,627
Hi everyone,

I am facing from with GLCD 128x64 it has controller NT75451.
I am getting first row dots are getting on, and character also display after that position.
If any one can guide me where i am making mistake in code as below.

LCD.c

Code:
#ifndef _XTAL_FREQ
 // Unless specified elsewhere, 4MHz system frequency is assumed
 #define _XTAL_FREQ 16000000
#endif


#include <htc.h>
#include "lcd.h"
#include "ioports.h"

#define LCD_DATA PORTD

unsigned char nop;

void glcd_control_init_cmd(unsigned char d1)
{
	LCD_EN = 1;
	__delay_us(10);
	LCD_RW = 0;
	__delay_us(10);
	LCD_RS = 0;
	__delay_us(10);
	LCD_DATA = d1;
	__delay_us(10);
	LCD_RW = 1;
	__delay_us(10);
	LCD_RS = 1;
	__delay_us(10);
	d1 = 0x00;
}

void glcd_write_data(unsigned char d2)
{
	LCD_EN = 1;
	__delay_us(2);
	LCD_RW = 0;
	__delay_us(2);
	LCD_RS = 1;
	__delay_us(2);
	LCD_DATA = d2;
	__delay_us(2);
	LCD_RW = 1;
	__delay_us(2);
	LCD_RS = 0;
	__delay_us(2);
	d2 = 0x00;	
}

void glcd_init()
{
	LCD_EN = 1;
	__delay_ms(10);
	LCD_CS1 = 0;
	__delay_ms(10);
	LCD_C86 = 1;
	__delay_ms(10);
	
	LCD_RST = 1;
	__delay_ms(1);
	LCD_RST = 0;		//hard ware reset
	__delay_ms(30);
	LCD_RST = 1;
	__delay_ms(40);
	
/*	glcd_control_init_cmd(0xe2);
	__delay_ms(10);	//software reset
	
	glcd_control_init_cmd(0xa2);
	__delay_ms(10);	//LCD bias se
	
	glcd_control_init_cmd(0xa0);
	__delay_ms(10);	//ADC selected as Normal Display
	
	glcd_control_init_cmd(0xc0);
	__delay_ms(10);	//common output state is Normal COM0-COM63

	glcd_control_init_cmd(0xc8);
	__delay_ms(10);	//common output state is Normal COM0-COM63
			
	glcd_control_init_cmd(0x24);
	__delay_ms(10);	//Voltage regulator internal resistance ratio
	
	glcd_control_init_cmd(0x81);
	__delay_ms(10);	//electronic volume control set bit
	
	glcd_control_init_cmd(0x3c);
	__delay_ms(10);	//electronic volume setting value
	
	glcd_control_init_cmd(0xd2);
	__delay_ms(10);	//lcd contrast 
	
	glcd_control_init_cmd(0x07);
	__delay_ms(10);	//setting value
	
	glcd_control_init_cmd(0xae);
	__delay_ms(10);	//display off for power save command
	
	glcd_control_init_cmd(0xad);
	__delay_ms(10);	//static indicator on
	
	glcd_control_init_cmd(0x01);
	__delay_ms(10);	//blink 1sec every time
	
	glcd_control_init_cmd(0x2f);
	__delay_ms(10);	//Voltage fallower and voltage buffer on
	
	glcd_control_init_cmd(0xaf);
	__delay_ms(10);	//display on
		
	glcd_control_init_cmd(0x40);
	__delay_ms(10);	//display start line

	glcd_control_init_cmd(0xb0);
	__delay_ms(10);	//page address set to B0H
	
	glcd_control_init_cmd(0x10);
	__delay_ms(10);	//page address of MSB
	
	glcd_control_init_cmd(0x00);
	__delay_ms(10);	//page address of LSB */

	glcd_control_init_cmd(0xE2);		// S/W RESWT
	__delay_ms(10);

	glcd_control_init_cmd(0xA0);		// ADC select	
	__delay_ms(10);
	
	glcd_control_init_cmd(0xC0);  	// SHL Normal
	__delay_ms(10);

	glcd_control_init_cmd(0xC8);  	// SHL Normal
	__delay_ms(10);
	
	glcd_control_init_cmd(0xA3);		// LCD bias
	__delay_ms(10);
 
	glcd_control_init_cmd(0x2F);		// Power control
	__delay_ms(10);
 
	glcd_control_init_cmd(0x27);		// Rb/Ra Ratio
	__delay_ms(10);
 
 	glcd_control_init_cmd(0x23);		// reg resistor select
	__delay_ms(10);
  
	glcd_control_init_cmd(0x40);		// Initial display line 40
	__delay_ms(10);
 
	glcd_control_init_cmd(0xA4);		// Normal display
	__delay_ms(10);
 
	glcd_control_init_cmd(0xA6);		// REverce display a7
	__delay_ms(10);
  
	glcd_control_init_cmd(0x81);		// Ref vg select mode
	__delay_ms(10);
	
	glcd_control_init_cmd(0x39);		// Ref vg reg select
	__delay_ms(10);

	glcd_control_init_cmd(0x85);		// N Line Inversion Set Off
	__delay_ms(10);
	
	glcd_control_init_cmd(0xA5);		//all  point Display  ON
	__delay_ms(10); 

	glcd_control_init_cmd(0xA4);		//Normal  Display mode ON
	__delay_ms(10); 

	glcd_control_init_cmd(0xAF);		// Display ON
	__delay_ms(10); 
	
	glcd_control_init_cmd(0XB0);		// Set page address
	__delay_ms(10);
 
	glcd_control_init_cmd(0x10);		// Set coloumn addr  MSB 
	__delay_ms(10);	 

	glcd_control_init_cmd(0x00);		// Set coloumn addr LSB
	__delay_ms(10);

}

void glcd_set_page(unsigned char page,unsigned char col)
{
	unsigned char msb,lsb;
	msb		=	(((col & 0xF0) >> 4)| 0x10);
	lsb		=	(col & 0x0F) ;
	glcd_control_init_cmd(page);
	glcd_control_init_cmd(msb);
	glcd_control_init_cmd(lsb);
}

/* clears entire lcd or clears all page*/
void glcd_clear(void)
{
	unsigned char i = 0,j = 0;
	
	glcd_set_page(PAGE1,COL0);		// initial page, col
		
	for(i = 0; i < 8; i ++)
	{
		for(j = -1; j < 128; j ++)
			glcd_write_data(0x00);

		glcd_set_page(PAGE1 + i + 1 , COL0);	// increment page
	}
	glcd_set_page(PAGE1,COL0);		// initial page,col
}

void glcd_display(void)
{
	
	glcd_control_init_cmd(0xae);
	__delay_ms(2);	//display off
	
	glcd_control_init_cmd(0xaf);
	__delay_ms(2);	//display on
	
	glcd_control_init_cmd(0x40);
	__delay_ms(2);	//display start line set as #40

	glcd_control_init_cmd(0x84);
	__delay_ms(10);	//display start line
	
	glcd_control_init_cmd(0xb0);
	__delay_ms(2);	//display page set as #b0
	
	glcd_control_init_cmd(0x10); //0x10
	__delay_ms(2);	//display column address 0x10
	
	glcd_control_init_cmd(0x00);
	__delay_ms(2);	//display column address 0x00
	
	glcd_print_normal_font56("JAY AMBA");
} 

void glcd_page_col_check_font(void)
{
	if (COL == 128)
	{
		PAGE += 1;
		if(PAGE	== PAGE8 + 1)
		glcd_clear();
		COL 	=	COL0;
		PAGE    =   PAGE1;
		glcd_set_page(PAGE,COL);		// initial page,col
	}
}

void glcd_print_normal_font56(const char * str)
{
	unsigned char i,index;
	index	= *str - 32;
//	GLCD_page_col_check_font();
	while(*str!='\0')
	{
		for(i = 0; i < 6; i++)
		glcd_write_data((fontTerminal56[index][i]) );  	
		*str++;
	   	index	= *str - 32;
		COL += 1;
	}
	NOP();

}

lcd.h

#define PAGE1	0xB0
#define PAGE2	0xB1
#define PAGE3	0xB2
#define PAGE4	0xB3
#define PAGE5	0xB4
#define PAGE6	0xB5
#define PAGE7	0xB6
#define PAGE8	0xB7


#define COL0	0  
#define COL1	1  
#define COL2	2  
#define COL3	3
#define COL4	4  
#define COL5	5  
#define COL6	6  
#define COL7	7
#define COL8	8  
#define COL9	9  
#define COL10	10 
#define COL11	11
#define COL12	12 
#define COL13	13 
#define COL14	14 
#define COL15	15
#define COL16	16 
#define COL17	17 
#define COL18	18 
#define COL19	19
#define COL20	20 
#define COL21	21 
#define COL22	22 
#define COL23	23
#define COL24	24 
#define COL25	25 
#define COL26	26 
#define COL27	27
#define COL28	28 
#define COL29	29 
#define COL30	30 
#define COL31	31
#define COL32	32 
#define COL33	33 
#define COL34	34 
#define COL35	35
#define COL36	36 
#define COL37	37 
#define COL38	38 
#define COL39	39
#define COL40	40 
#define COL41	41 
#define COL42	42 
#define COL43	43
#define COL44	44 
#define COL45	45 
#define COL46	46 
#define COL47	47
#define COL48	48 
#define COL49	49 
#define COL50	50 
#define COL51	51

#define COL52	52 
#define COL53	53 
#define COL54	54 
#define COL55	55
#define COL56	56 
#define COL57	57 
#define COL58	58 
#define COL59	59
#define COL60	60 
#define COL61	61 
#define COL62	62 
#define COL63	63
#define COL64	64 
#define COL65	65 
#define COL66	66 
#define COL67	67
#define COL68	68 
#define COL69	69 
#define COL70	70
#define COL71	71
#define COL72	72 
#define COL73	73 
#define COL74	74 
#define COL75	75
#define COL76	76 
#define COL77	77 
#define COL78	78 
#define COL79	79
#define COL80	80 
#define COL81	81 
#define COL82	82
#define COL83	83
#define COL84	84 
#define COL85	85 
#define COL86	86 
#define COL87	87
#define COL88	88 
#define COL89	89 
#define COL90	90 
#define COL91	91
#define COL92	92 
#define COL93	93 
#define COL94	94 
#define COL95	95
#define COL96	96 
#define COL97	97 
#define COL98	98 
#define COL99	99

#define COL100	100 
#define COL101	101 
#define COL102	102 
#define COL103	103
#define COL104	104 
#define COL105	105 
#define COL106	106 
#define COL107	107
#define COL108	108 
#define COL109	109 
#define COL110	110 
#define COL111	111
#define COL112	112 
#define COL113	113 
#define COL114	114 
#define COL115	115
#define COL116	116 
#define COL117	117 
#define COL118	118 
#define COL119	119
#define COL120	120 
#define COL121	121 
#define COL122	122 
#define COL123	123
#define COL124	124 
#define COL125	125 
#define COL126	126 
#define COL127	127

#define high	1
#define low		0

unsigned char PAGE = PAGE1;
unsigned char COL = COL0;

extern unsigned int flag1;

extern void glcd_init();
extern void control_init();
extern void glcd_control_init_cmd(unsigned char);
extern void glcd_display(void);
extern void glcd_write_data(unsigned char);
extern void glcd_set_page(unsigned char ,unsigned char);
extern void glcd_page_col_check_font(void);
extern void glcd_print_normal_font56(const char * str);
extern void glcd_print_normal_font68(const char * str);
extern void glcd_clear(void);

const unsigned char fontTerminal56[126][6] = {

0x00,0x00,0x00,0x00,0x00,0x00,  //Char   
0x00,0x00,0x06,0x5f,0x06,0x00,  //Char ! 
0x00,0x07,0x03,0x00,0x07,0x03,  //Char " 
0x00,0x24,0x7e,0x24,0x7e,0x24,  //Char # 
0x00,0x24,0x2b,0x6a,0x12,0x00,  //Char $ 
0x00,0x63,0x13,0x08,0x64,0x63,  //Char % 
0x00,0x36,0x49,0x56,0x20,0x50,  //Char & 
0x00,0x00,0x07,0x03,0x00,0x00,  //Char ' 
0x00,0x00,0x3e,0x41,0x00,0x00,  //Char ( 
0x00,0x00,0x41,0x3e,0x00,0x00,  //Char ) 
0x00,0x08,0x3e,0x1c,0x3e,0x08,  //Char * 
0x00,0x08,0x08,0x3e,0x08,0x08,  //Char + 
0x00,0x00,0xe0,0x60,0x00,0x00,  //Char , 
0x00,0x08,0x08,0x08,0x08,0x08,  //Char - 
0x00,0x00,0x60,0x60,0x00,0x00,  //Char . 
0x00,0x20,0x10,0x08,0x04,0x02,  //Char / 
0x00,0x3e,0x51,0x49,0x45,0x3e,  //Char 0 
0x00,0x00,0x42,0x7f,0x40,0x00,  //Char 1 
0x00,0x62,0x51,0x49,0x49,0x46,  //Char 2 
0x00,0x22,0x49,0x49,0x49,0x36,  //Char 3 
0x00,0x18,0x14,0x12,0x7f,0x10,  //Char 4 
0x00,0x2f,0x49,0x49,0x49,0x31,  //Char 5 
0x00,0x3c,0x4a,0x49,0x49,0x30,  //Char 6 
0x00,0x01,0x71,0x09,0x05,0x03,  //Char 7 
0x00,0x36,0x49,0x49,0x49,0x36,  //Char 8 
0x00,0x06,0x49,0x49,0x29,0x1e,  //Char 9 
0x00,0x00,0x6c,0x6c,0x00,0x00,  //Char : 
0x00,0x00,0xec,0x6c,0x00,0x00,  //Char ; 
0x00,0x08,0x14,0x22,0x41,0x00,  //Char < 
0x00,0x24,0x24,0x24,0x24,0x24,  //Char = 
0x00,0x00,0x41,0x22,0x14,0x08,  //Char > 
0x00,0x02,0x01,0x59,0x09,0x06,  //Char ? 
0x00,0x3e,0x41,0x5d,0x55,0x1e,  //Char @ 
0x00,0x7e,0x11,0x11,0x11,0x7e,  //Char A 
0x00,0x7f,0x49,0x49,0x49,0x36,  //Char B 
0x00,0x3e,0x41,0x41,0x41,0x22,  //Char C 
0x00,0x7f,0x41,0x41,0x41,0x3e,  //Char D 
0x00,0x7f,0x49,0x49,0x49,0x41,  //Char E 
0x00,0x7f,0x09,0x09,0x09,0x01,  //Char F 
0x00,0x3e,0x41,0x49,0x49,0x7a,  //Char G 
0x00,0x7f,0x08,0x08,0x08,0x7f,  //Char H 
0x00,0x00,0x41,0x7f,0x41,0x00,  //Char I 
0x00,0x30,0x40,0x40,0x40,0x3f,  //Char J 
0x00,0x7f,0x08,0x14,0x22,0x41,  //Char K 
0x00,0x7f,0x40,0x40,0x40,0x40,  //Char L 
0x00,0x7f,0x02,0x04,0x02,0x7f,  //Char M 
0x00,0x7f,0x02,0x04,0x08,0x7f,  //Char N 
0x00,0x3e,0x41,0x41,0x41,0x3e,  //Char O 
0x00,0x7f,0x09,0x09,0x09,0x06,  //Char P 
0x00,0x3e,0x41,0x51,0x21,0x5e,  //Char Q 
0x00,0x7f,0x09,0x09,0x19,0x66,  //Char R 
0x00,0x26,0x49,0x49,0x49,0x32,  //Char S 
0x00,0x01,0x01,0x7f,0x01,0x01,  //Char T 
0x00,0x3f,0x40,0x40,0x40,0x3f,  //Char U 
0x00,0x1f,0x20,0x40,0x20,0x1f,  //Char V 
0x00,0x3f,0x40,0x3c,0x40,0x3f,  //Char W 
0x00,0x63,0x14,0x08,0x14,0x63,  //Char X 
0x00,0x07,0x08,0x70,0x08,0x07,  //Char Y 
0x00,0x71,0x49,0x45,0x43,0x00,  //Char Z 
0x00,0x00,0x7f,0x41,0x41,0x00,  //Char [ 
0x00,0x02,0x04,0x08,0x10,0x20,  //Char \ 
0x00,0x00,0x41,0x41,0x7f,0x00,  //Char ] 
0x00,0x04,0x02,0x01,0x02,0x04,  //Char ^ 
0x80,0x80,0x80,0x80,0x80,0x80,  //Char _ 
0x00,0x00,0x03,0x07,0x00,0x00,  //Char ` 
0x00,0x20,0x54,0x54,0x54,0x78,  //Char a 
0x00,0x7f,0x44,0x44,0x44,0x38,  //Char b 
0x00,0x38,0x44,0x44,0x44,0x28,  //Char c 
0x00,0x38,0x44,0x44,0x44,0x7f,  //Char d 
0x00,0x38,0x54,0x54,0x54,0x08,  //Char e 
0x00,0x08,0x7e,0x09,0x09,0x00,  //Char f 
0x00,0x18,0xa4,0xa4,0xa4,0x7c,  //Char g 
0x00,0x7f,0x04,0x04,0x78,0x00,  //Char h 
0x00,0x00,0x00,0x7d,0x40,0x00,  //Char i 
0x00,0x40,0x80,0x84,0x7d,0x00,  //Char j 
0x00,0x7f,0x10,0x28,0x44,0x00,  //Char k 
0x00,0x00,0x00,0x7f,0x40,0x00,  //Char l 
0x00,0x7c,0x04,0x18,0x04,0x78,  //Char m 
0x00,0x7c,0x04,0x04,0x78,0x00,  //Char n 
0x00,0x38,0x44,0x44,0x44,0x38,  //Char o 
0x00,0xfc,0x44,0x44,0x44,0x38,  //Char p 
0x00,0x38,0x44,0x44,0x44,0xfc,  //Char q 
0x00,0x44,0x78,0x44,0x04,0x08,  //Char r 
0x00,0x08,0x54,0x54,0x54,0x20,  //Char s 
0x00,0x04,0x3e,0x44,0x24,0x00,  //Char t 
0x00,0x3c,0x40,0x20,0x7c,0x00,  //Char u 
0x00,0x1c,0x20,0x40,0x20,0x1c,  //Char v 
0x00,0x3c,0x60,0x30,0x60,0x3c,  //Char w 
0x00,0x6c,0x10,0x10,0x6c,0x00,  //Char x 
0x00,0x9c,0xa0,0x60,0x3c,0x00,  //Char y 
0x00,0x64,0x54,0x54,0x4c,0x00,  //Char z 
0x00,0x08,0x3e,0x41,0x41,0x00,  //Char { 
0x00,0x00,0x00,0x77,0x00,0x00,  //Char | 
0x00,0x00,0x41,0x41,0x3e,0x08,  //Char } 
0x00,0x02,0x01,0x02,0x01,0x00,  //Char ~ 
0x00,0x3c,0x26,0x23,0x26,0x3c  //Char  
};

const unsigned char fontTerminal68[126][6] = {
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00,      // Code for char  
        0x00, 0x00, 0x06, 0x5F, 0x06, 0x00,      // Code for char !
        0x00, 0x07, 0x03, 0x00, 0x07, 0x03,      // Code for char "
        0x00, 0x24, 0x7E, 0x24, 0x7E, 0x24,      // Code for char #
        0x00, 0x24, 0x2B, 0x6A, 0x12, 0x00,      // Code for char $
        0x00, 0x63, 0x13, 0x08, 0x64, 0x63,      // Code for char %
        0x00, 0x36, 0x49, 0x56, 0x20, 0x50,      // Code for char &
        0x00, 0x00, 0x07, 0x03, 0x00, 0x00,      // Code for char '
        0x00, 0x00, 0x3E, 0x41, 0x00, 0x00,      // Code for char (
        0x00, 0x00, 0x41, 0x3E, 0x00, 0x00,      // Code for char )
        0x00, 0x08, 0x3E, 0x1C, 0x3E, 0x08,      // Code for char *
        0x00, 0x08, 0x08, 0x3E, 0x08, 0x08,      // Code for char +
        0x00, 0x00, 0xE0, 0x60, 0x00, 0x00,      // Code for char ,
        0x00, 0x08, 0x08, 0x08, 0x08, 0x08,      // Code for char -
        0x00, 0x00, 0x60, 0x60, 0x00, 0x00,      // Code for char .
        0x00, 0x20, 0x10, 0x08, 0x04, 0x02,      // Code for char /
        0x00, 0x3E, 0x51, 0x49, 0x45, 0x3E,      // Code for char 0
        0x00, 0x00, 0x42, 0x7F, 0x40, 0x00,      // Code for char 1
        0x00, 0x62, 0x51, 0x49, 0x49, 0x46,      // Code for char 2
        0x00, 0x22, 0x49, 0x49, 0x49, 0x36,      // Code for char 3
        0x00, 0x18, 0x14, 0x12, 0x7F, 0x10,      // Code for char 4
        0x00, 0x2F, 0x49, 0x49, 0x49, 0x31,      // Code for char 5
        0x00, 0x3C, 0x4A, 0x49, 0x49, 0x30,      // Code for char 6
        0x00, 0x01, 0x71, 0x09, 0x05, 0x03,      // Code for char 7
        0x00, 0x36, 0x49, 0x49, 0x49, 0x36,      // Code for char 8
        0x00, 0x06, 0x49, 0x49, 0x29, 0x1E,      // Code for char 9
        0x00, 0x00, 0x6C, 0x6C, 0x00, 0x00,      // Code for char :
        0x00, 0x00, 0xEC, 0x6C, 0x00, 0x00,      // Code for char ;
        0x00, 0x08, 0x14, 0x22, 0x41, 0x00,      // Code for char <
        0x00, 0x24, 0x24, 0x24, 0x24, 0x24,      // Code for char =
        0x00, 0x00, 0x41, 0x22, 0x14, 0x08,      // Code for char >
        0x00, 0x02, 0x01, 0x59, 0x09, 0x06,      // Code for char ?
        0x00, 0x3E, 0x41, 0x5D, 0x55, 0x1E,      // Code for char @
        0x00, 0x7E, 0x11, 0x11, 0x11, 0x7E,      // Code for char A
        0x00, 0x7F, 0x49, 0x49, 0x49, 0x36,      // Code for char B
        0x00, 0x3E, 0x41, 0x41, 0x41, 0x22,      // Code for char C
        0x00, 0x7F, 0x41, 0x41, 0x41, 0x3E,      // Code for char D
        0x00, 0x7F, 0x49, 0x49, 0x49, 0x41,      // Code for char E
        0x00, 0x7F, 0x09, 0x09, 0x09, 0x01,      // Code for char F
        0x00, 0x3E, 0x41, 0x49, 0x49, 0x7A,      // Code for char G
        0x00, 0x7F, 0x08, 0x08, 0x08, 0x7F,      // Code for char H
        0x00, 0x00, 0x41, 0x7F, 0x41, 0x00,      // Code for char I
        0x00, 0x30, 0x40, 0x40, 0x40, 0x3F,      // Code for char J
        0x00, 0x7F, 0x08, 0x14, 0x22, 0x41,      // Code for char K
        0x00, 0x7F, 0x40, 0x40, 0x40, 0x40,      // Code for char L
        0x00, 0x7F, 0x02, 0x04, 0x02, 0x7F,      // Code for char M
        0x00, 0x7F, 0x02, 0x04, 0x08, 0x7F,      // Code for char N
        0x00, 0x3E, 0x41, 0x41, 0x41, 0x3E,      // Code for char O
        0x00, 0x7F, 0x09, 0x09, 0x09, 0x06,      // Code for char P
        0x00, 0x3E, 0x41, 0x51, 0x21, 0x5E,      // Code for char Q
        0x00, 0x7F, 0x09, 0x09, 0x19, 0x66,      // Code for char R
        0x00, 0x26, 0x49, 0x49, 0x49, 0x32,      // Code for char S
        0x00, 0x01, 0x01, 0x7F, 0x01, 0x01,      // Code for char T
        0x00, 0x3F, 0x40, 0x40, 0x40, 0x3F,      // Code for char U
        0x00, 0x1F, 0x20, 0x40, 0x20, 0x1F,      // Code for char V
        0x00, 0x3F, 0x40, 0x3C, 0x40, 0x3F,      // Code for char W
        0x00, 0x63, 0x14, 0x08, 0x14, 0x63,      // Code for char X
        0x00, 0x07, 0x08, 0x70, 0x08, 0x07,      // Code for char Y
        0x00, 0x71, 0x49, 0x45, 0x43, 0x00,      // Code for char Z
        0x00, 0x00, 0x7F, 0x41, 0x41, 0x00,      // Code for char [
        0x00, 0x02, 0x04, 0x08, 0x10, 0x20,      // Code for char BackSlash
        0x00, 0x00, 0x41, 0x41, 0x7F, 0x00,      // Code for char ]
        0x00, 0x04, 0x02, 0x01, 0x02, 0x04,      // Code for char ^
        0x80, 0x80, 0x80, 0x80, 0x80, 0x80,      // Code for char _
        0x00, 0x00, 0x03, 0x07, 0x00, 0x00,      // Code for char `
        0x00, 0x20, 0x54, 0x54, 0x54, 0x78,      // Code for char a
        0x00, 0x7F, 0x44, 0x44, 0x44, 0x38,      // Code for char b
        0x00, 0x38, 0x44, 0x44, 0x44, 0x28,      // Code for char c
        0x00, 0x38, 0x44, 0x44, 0x44, 0x7F,      // Code for char d
        0x00, 0x38, 0x54, 0x54, 0x54, 0x08,      // Code for char e
        0x00, 0x08, 0x7E, 0x09, 0x09, 0x00,      // Code for char f
        0x00, 0x18, 0xA4, 0xA4, 0xA4, 0x7C,      // Code for char g
        0x00, 0x7F, 0x04, 0x04, 0x78, 0x00,      // Code for char h
        0x00, 0x00, 0x00, 0x7D, 0x40, 0x00,      // Code for char i
        0x00, 0x40, 0x80, 0x84, 0x7D, 0x00,      // Code for char j
        0x00, 0x7F, 0x10, 0x28, 0x44, 0x00,      // Code for char k
        0x00, 0x00, 0x00, 0x7F, 0x40, 0x00,      // Code for char l
        0x00, 0x7C, 0x04, 0x18, 0x04, 0x78,      // Code for char m
        0x00, 0x7C, 0x04, 0x04, 0x78, 0x00,      // Code for char n
        0x00, 0x38, 0x44, 0x44, 0x44, 0x38,      // Code for char o
        0x00, 0xFC, 0x44, 0x44, 0x44, 0x38,      // Code for char p
        0x00, 0x38, 0x44, 0x44, 0x44, 0xFC,      // Code for char q
        0x00, 0x44, 0x78, 0x44, 0x04, 0x08,      // Code for char r
        0x00, 0x08, 0x54, 0x54, 0x54, 0x20,      // Code for char s
        0x00, 0x04, 0x3E, 0x44, 0x24, 0x00,      // Code for char t
        0x00, 0x3C, 0x40, 0x20, 0x7C, 0x00,      // Code for char u
        0x00, 0x1C, 0x20, 0x40, 0x20, 0x1C,      // Code for char v
        0x00, 0x3C, 0x60, 0x30, 0x60, 0x3C,      // Code for char w
        0x00, 0x6C, 0x10, 0x10, 0x6C, 0x00,      // Code for char x
        0x00, 0x9C, 0xA0, 0x60, 0x3C, 0x00,      // Code for char y
        0x00, 0x64, 0x54, 0x54, 0x4C, 0x00,      // Code for char z
        0x00, 0x08, 0x3E, 0x41, 0x41, 0x00,      // Code for char {
        0x00, 0x00, 0x00, 0x77, 0x00, 0x00,      // Code for char |
        0x00, 0x00, 0x41, 0x41, 0x3E, 0x08,      // Code for char }
        0x00, 0x02, 0x01, 0x02, 0x01, 0x00,      // Code for char ~
        0x00, 0x3C, 0x26, 0x23, 0x26, 0x3C       // Code for char 
        };
 
Last edited by a moderator:

Hello, if I would suggest, compare your code with MicroElektronika tutorials using grashic lcd with microc compiler. it can be searched online or through their website.

Good luck
 

as ahmed-agt said MIKROC of mikroelektronika is very easy with out any confusing. Go ahead.
 

Thanks for guiding me out, right the problem is solved, but need another help for display the font of size 10x14 or font 6x8 which in above code, please guide me for code for this type of font.
I am using Hitech compiler
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top