LCD Module Documentation Standard
description
Transcript of LCD Module Documentation Standard
-
iLabs Srijan LCD Module
-
Snap / Product Picture (HD Quality)
Features
1. Easy to program using Srijan.
2. Works on a very high speed of 100 Kbps.
3. Operates on both 3.3V & 5V TTL Logic Levels.
4. Has an easy command interface.
5. Has a high refresh rate of 75Hz.
6. Has inbuilt commands for creating scrolling text.
7. Has inbuilt commands for creating custom menu.
Application
1. RFID Readers.
2. Finger Print Recognizers.
3. Attendance Recorder Systems.
4. Time Display Modules.
5. Displays for Embedded System Applications.
Introduction / Abstract
iLabs Srijan LCD Module is an intelligent 16X2 LCD display device. It can be easily interfaced
with the Srijan Mother Board to display all the English alpha numerals. It has and easy
COMMAND interface which can be used to control the functionality of the module. This LCD
Module works on standard iLabs Communication Protocol. It has various commands inbuilt
in its on-chip controller which helps the designer to design a perfect product with very less
complexities.
Key Specification
Content in black (Detail PCB Components Specification)
Functional Block Diagram
-
Principle of Operation
Note:- It is assumed that the developer is using ATmel Studio 6 for firmware
Development.
Connect the LCD Module as shown in the functional block diagram with the Srijan
Motherboard. To get started with the LCD Module you need to first copy paste the header file
SrijanMaster.h & libSrijanMaster.a in your source folder (The place where your .c file
resides). Then in your code add the directive #includeSrijanMaster.h. Then go to the
project tab and select project properties.
Then click on Toolchain > AVR GNU C Linker > Libraries
-
Then click on add item
You will see a textbox type there libSrijanMaster and click OK.
Also click on the AddItem button in the Library Search Path box and give the path of the
folder where libSrijanSlave.a file resides. Now you are ready to interface with the LCD
Module.
Slave address of the LCD Module is 44 (Hex). To interact with the LCD module you need to
send the following commands on the iLabs Communication Bus.
-
Command Description
LCD_CLEAR Will clear the LCD screen LCD_GOTO posx,posy Will go to the specified position in x and y
direction. (Here posx & posy are user defined location numbers)
LCD_NEWLINE Will move the cursor to the new line LCD_MARQUEE text Will set the marquee text which will be
marquee on the LCD when an enable command is sent. (Here text is a user defined
value which is to be marquee) LCD_MARQUEE_ON Will start moving the set marquee text. LCD_MARQUEE_OFF Will stop moving the marquee text.
To interface with the LCD Module you just need to call the function
write(0x44,COMMAND);. Here the command should be a character array or a character
pointer which is terminated with \0.
Application Information: Software
Sample Code:-
/* * Master_I2C.c * * Created: 12-07-2012 PM 04:57:00 * Company: iLabs * Author: Mahesh */ #define F_CPU 8000000 #include #include #include #include #include "SrijanMaster.h" //Header file for Srijan Based Applications int main(void) { init(); //To initialize the communication while(1) //Loop forever { write(0x44,"HI"); //Will display Hi on the LCD _delay_ms(5); write(0x44,"LCD_NEWLINE"); //To move to a new line in the LCD _delay_ms(5); write(0x44,"New line"); //To display New line on the LCD _delay_ms(3000); write(0x44,"LCD_CLEAR"); //To clear the LCD Screen _delay_ms(5); write(0x44,"LCD_GOTO 2,3");//To go to the specified position in the LCD _delay_ms(5); write(0x44,"Hello"); //To display Hello on the LCD screen _delay_ms(1000); Write(0x44,"LCD_CLEAR"); //To clear the LCD Screen
_delay_ms(1000);
-
} }
-
Last Page To be .
Manik, 2nd Floor, Above BMW Showroom,
WHC Road, Tatya Tope Nagar,
Nagpur, Maharashtra-440015,INDIA
Contact Information
Office : (0712)
Email : [email protected]
Visit Us At
www.ilabsindia.com