You are on page 1of 3

Graphic Lcd Library (mC PRO for PIC) - Support Center

http://www.mikroe.com/esupport/index.php?_m=knowledgebase&_a=...

Home

Support Desk

Knowledge Base

Support Forums

Projects

Download

Books

Contact Us

Support Center Knowledgebase Graphic Lcd Library (mC PRO for PIC)

Graphic Lcd Library (mC PRO for PIC)

How to register? Support ticket system uses Login Share option linked to our Forum users database. If you are still not a registered Forum user, you should register here Log in Username: Password: Remember Me: Log in Search Search -- Entire Support Site -Article Options Add Comment Print Article E-mail Article Add to Favorites

1 de 3

28/03/2012 04:12 p.m.

Graphic Lcd Library (mC PRO for PIC) - Support Center

http://www.mikroe.com/esupport/index.php?_m=knowledgebase&_a=...

Article

Graphic Lcd Library


The mikroC PRO for PIC provides a library for operating Graphic Lcd 128x64 (with commonly used Samsung KS108/KS107 controller). For creating a custom set of Glcd images use Glcd Bitmap Editor Tool.

Library Dependency Tree

External dependencies of Graphic Lcd Library


The following variables must be defined in all projects using Graphic Lcd Library:
extern sfr char GLCD_DataPort; extern sfr sbit GLCD_CS1;

Description :

Example :

Glcd Data Port.

char GLCD_DataPort at PORTD; sbit GLCD_CS1 at RB0_bit; sbit GLCD_CS2 at RB1_bit; sbit GLCD_RS at RB2_bit; sbit GLCD_RW at RB3_bit; sbit GLCD_EN at RB4_bit; sbit GLCD_RST at RB5_bit; sbit GLCD_CS1_Direction at TRISB0_bit; sbit GLCD_CS2_Direction at TRISB1_bit; sbit GLCD_RS_Direction at TRISB2_bit; sbit GLCD_RW_Direction at TRISB3_bit; sbit GLCD_EN_Direction at TRISB4_bit; sbit GLCD_RST_Direction at TRISB5_bit;

Chip Select 1 line.

extern sfr sbit GLCD_CS2;

Chip Select 2 line.

extern sfr sbit GLCD_RS;

Register select line.

extern sfr sbit GLCD_RW;

Read/Write line.

extern sfr sbit GLCD_EN;

Enable line.

extern sfr sbit GLCD_RST;

Reset line.

extern sfr sbit GLCD_CS1_Direction;

Direction of the Chip Select 1 pin.

extern sfr sbit GLCD_CS2_Direction;

Direction of the Chip Select 2 pin.

extern sfr sbit GLCD_RS_Direction;

Direction of the Register select pin.

extern sfr sbit GLCD_RW_Direction;

Direction of the Read/Write pin.

extern sfr sbit GLCD_EN_Direction;

Direction of the Enable pin.

extern sfr sbit GLCD_RST_Direction;

Direction of the Reset pin.

Library Routines
Basic routines: Glcd_Init Glcd_Set_Side Glcd_Set_X Glcd_Set_Page Glcd_Read_Data Glcd_Write_Data Advanced routines: Glcd_Fill Glcd_Dot Glcd_Line Glcd_V_Line Glcd_H_Line Glcd_Rectangle Glcd_Box Glcd_Circle Glcd_Set_Font Glcd_Write_Char Glcd_Write_Text Glcd_Image

2 de 3

28/03/2012 04:12 p.m.

Graphic Lcd Library (mC PRO for PIC) - Support Center

http://www.mikroe.com/esupport/index.php?_m=knowledgebase&_a=...

Article Details Article ID: 134 Created On: 13 Feb 2010 4:19 PM

User Comments Posted By: krunal.bhavsar (bhavsar.krunal.h@gmail.com) On: 14 May 2010 1:24 PM How to download this library codes? Back

Add a Comment

Related Links:

Support forums

Site map

Contact

Legal info

Copyright 19982010. mikroElektronika. All rights reserved. All trade and/or services marks mentioned are the property of their respective owners.

3 de 3

28/03/2012 04:12 p.m.