LCD Interfacing.

Slides:



Advertisements
Similar presentations
Intro to WinHex CSC 414.
Advertisements

Step-by-Step: Set Margins Before you begin these steps, be sure to launch Word. 1.OPEN the proposal file for this lesson. 2.Delete the extra blank lines.
Lab7: Introduction to Arduino
Arduino Real Time Data Download Arduino Mega2560: Download.
Creating and Editing a Web Page Using Inline Styles
How to use Arduino By: Andrew Hoffmaster.
An Introduction to the Interface
Getting Started with Cadence Compiled by Ryan Johnson April 24, 2002  Open Orcad Capture under Engineering Software  Under FILE, choose NEW, PROJECT.
MICRO-CONTROLLER: A microcontroller is the brain of the robot: These are: 1. Integrated Circuits (ICs) 2. Programmable.
User Guide and Trouble-shooting Information. A classroom set of 20 cameras are available for teacher and student use. Capable of taking video, but recommend.
PSPICE Tutorial Spring 2015
Microsoft Office 2010 Access Chapter 1 Creating and Using a Database.
ECE 272 Xilinx Tutorial. Workshop Goals Learn how to use Xilinx to: Draw a schematic Create a symbol Generate a testbench Simulate your circuit.
ECE 353 WinAVR and C Debugging Tutorial By Adam Bailin ECE 353 Fall ‘06.
ECE Department: University of Massachusetts, Amherst Lab 1: Introduction to NIOS II Hardware Development.
Embedded Programming and Robotics Lesson 9 Keypad and LCD Display 1.
Eejit’s guide to using a LCD alphanumeric display with the CCS C compiler 1.Hardware connection 2.The LCD.C include file 3.An example.
Mathieu Stephan, EPFL. Why? Create a complete product Remotely control your music player Get information about the tracks being played Get calls / listen.
Teachers Name : Suman Sarker Telecommunication Technology Subject Name : Microcontroller & Embedded System Subject Code : 6871 Semester : 7th Department.
Printing and Page Formatting ITSW 1401, Intro to Word Processing Instructor: Glenda H. Easter.
Introduction to Microcontrollers Shivendu Bhushan Summer Camp ‘13.
Overview What kind of LCD Interfacing the LCD Displaying Text and Numbers Common Issues.
Digital Outputs LCD Display
Silicon Labs ToolStick Development Platform
ROBONICS’ 15 Powered By:. An embedded system is some combination of computer hardware and software, either fixed in capability or programmable, that is.
MagicInfo Pro Scheduler Now that a template has been created from content imported into the Library, the user is ready to begin scheduling content to.
ECE122 – Digital Electronics & Design
Analog Discovery Arbitrary Function Generator for Windows 7 by Mr
Franz Duran INTRODUCTION TO A RDUINO PROGRAMMING & INTERFACING Engr. Franz Duran, MEP-ECE RapidSignal Electronics.
The George Washington University School of Engineering and Applied Science Department of Electrical and Computer Engineering ECE122 – 30 Lab 3: Layout.
CS-280 Dr. Mark L. Hornick 1 Programming for the LCD Display.
UniMAP 1 Interfacing Peripherals. UniMAP 2 Interfacing devices on Embedded Linux In general, to interface to a device connected to an embedded Linux platform.
Website Editing From Gingerweb The Image Gallery.
ATMEL AVR 8 bit RISC MICROCONTROLLERS a general comparison.
Development of a microprocessor project with LPC2388 development board.
Week 1: Preparing for PSpice Simulations.  Week 1 is composed of two experiments from the lab manual ◦ Experiment 1: Breadboard Basics ◦ Experiment 3:
Lesson No: 6 Introduction to Windows XP CHBT-01 Basic Micro process & Computer Operation.
Analog to Digital Converter (ADC). Analog to Digital Converters  Microcontroller understands only digital language.  To convert the analog output from.
Quick guide to ASIMON configuration For version 3.0 or greater SAFETY AT WORK Date: 3/18/2009.
Department of Electronic & Electrical Engineering LCD character display (parallel interface). How to interface a LCD character display to a PIC.
Creating and Editing a Web Page
Intro Compiler Configuration and Sample Project Walkthrough (For Axiom CME11E9-EVB)
Creating and Editing a Web Page Using Inline Styles
ECE 447 Fall 2009 Lecture 12: TI MSP430 External LCD.
Week 3: Experiment 4 Kirchhoff’s Laws.
ECE122 – Digital Electronics & Design Tanner Tools Tutorial Ritu Bajpai September 4, 2008.
NAM S.B MDLAB. Electronic Engineering, Kangwon National University 1.
Vishwakarma government engineering college Prepare by. Hardik Jolapara( ) LCD Interfacing with ATmega16.
Embedded C- Language Lets Learn fundamentals !!. An Embedded system is combination of computer hardware and software, and perhaps additional mechanical.
A.D.Patel institute of technology Sub : LCD and Keyboard interfacing with AVR. prepared by, chokshi abhi p ( ) Guided by, Prof. Asif Thakor.
Sitarambhai Naranjibhai Patel Institute of Technology and Research Centre, Umrakh, Bardoli. A Presentation On “ 16x2 LCD Interfacing with AVR atmega32.
LCD AND LCD INTERFACING. INDEX:-  INTRODUCTION  PIN DISCRIPTION  INITIALIZATION OF LCD  LCD INTERFACING  LCD INTERFACING WITH ATMEGA 32  INTERFACING.
ENERGY METER TO INDICATE BILLING IN RUPEES FOR LOAD WISE OR DAY WISE
Lets Learn fundamentals !!
Introduction of Embedded C and demo programs
Scrolling LCD using Arduino.
LCD Interfacing using Atmega 32
ABSTRACT The outline of the project is Cycle stealing, as a method to remove whole cycle to control AC power the concept of achieving the cycle stealing.
POORNIMA COLLEGE OF ENGINEERING A PRESENTATION ON MAJOR PROJECT SEMINAR(STAGE-II) “GSM BASED E-NOTICE BOARD” SUBMITTED TO:
Display Devices 16 x 2 lcd display.
Arduino is an open-source platform for building electronics projects
UNIVERSAL COLLEGE OF ENGINEERING & TECHNOLOGY
OBJECTIVE AND FEATURES:
PRU-ICSS Programming with CCS
EET 2261 Unit 11 Controlling LCD and Keypad
EET 2261 Unit 11 Controlling LCD and Keypad
Introducing the PIC Mid-Range Family and the 16F84A
LCD and Keyboard Sepehr Naimi
Cell Simulation.
Getting started with ENDNOTE
Presentation transcript:

LCD Interfacing

Introduction to LCD LCD (Liquid Crystal Display) screen is an electronic display module and find a wide range of applications. A 16x2 LCD display is very basic module and is very commonly used in various devices and circuits. 16 Characters x 2 Lines Built-in HD44780 Equivalent LCD Controller

Liquid Crystal Display (LCD) PINS

Pin Configuration

Fixed voltage pins:            Pin1 (Vss/Gnd), Pin2(Vcc), Pin3(Vee, connected to a port) are dc lines, they are directly connected to voltage sources and to ground, they are not controlled by the microcontroller. Control Pins:          Pin4(RS), Pin(R/W), Pin6(EN) are control pins                   Backlight Control Pins:          There are two extra pins (LED+ and LED-) to turn on the backlight of LCD display. Data Pins:          Pin7 to Pin14 are data pins.

CONTROL PINS RS is the register select pin. To write display data to the LCD (characters), this pin has to be high. For commands his pin needs to be low. R/W is the data direction pin. For WRITING data TO the LCD it has to be low, for READING data FROM the LCD it has to be high. E is the Enable pin. When writing data to the LCD, the LCD will read the data on the falling edge of E

LCD use in 4 bit mode & Masking The Data or command is sent in nibble form (1 nibble= 4 bit) in the 4-bit mode. The higher nibble is sent first followed by the lower nibble. The function of RS, RW and EN pins remains similar to 8-bit mode. Higher pins of PORTX (PX4-PX7) are connected to data line. So, the higher nibble of a byte can be sent to LCD data lines by masking lower nibble. To send lower nibble, data byte is shifted left for four places. Lower nibble replaces higher nibble by this shifting. Data is sent after masking the byte.   Example:         if data is 0011 0010     0x32;                                    0010 0000       0x20 (Masking)                    1111 0000        0xF0 resultant data is sent to LCD                                 

Save the new file with .c extension

Open Make File from start->programs-> winavr

Enable Editing MakeFile (last option from drop down menu)

Click MakeFile (from menu) -> main file name -> give the same name as above without .c extension. As for the above example name it as LCD -> Click OK Now scroll a little above to the section F_CPU = 8000000 -> Make the desired change be editing it. If you are using a 16MHz crystal then F_CPU should be equal to 16000000.

Click MakeFile (from menu) -> MCU type -> ATmega -> atmega16 (If you are using ATmega16). Click MakeFile (from menu) -> Port -> USB (if you are using a usb type of programmer) else choose the COM port where you have connected the programmer. Scroll to the section AVRDUDE_PROGRAMMER = stk500v2. Change stk500v2 by usbasp(or usbtiny) if you are using a USBasp programmer. It is the most commonly used programmer. Hence it looks like AVRDUDE_PROGRAMMER = usbasp (or usbtiny)

Click MakeFile (from menu) -> Programmer (if you are NOT using a USBasp programmer) and choose your programmer. Now the last step -> file -> save as -> browse to the folder where you have saved the file led.c (Desktop/AVR/led_blink) then save it. Make sure the file name is not changed, it should be named as Makefile Now you are all done to write your code in programmer’s notepad and compile it and even burn it to your MCU with the help of WinAVR.

Proteus Simulation

Click here

Write name and path of new project

Create DEFAULT Schematic capture

Click on “P” to pick components New Project Zoom IN/OUT Click on “P” to pick components Power/Ground Click to run simulation

Search Box Select Atmega 16 Click Ok

In similar manner we can select other devices

Select 16*2 alphanumeric LCD

LCD functions for Win AVR LCDInit(uint8_t style); LCDWriteString(‘msg’); LCDWriteInt(int val,unsigned int field_length); LCDGotoXY(uint8_t x,uint8_t y); LCDClear() LCDData(‘w’)

LCD in WINAVR #include <avr/io.h> #include <util/delay.h> #include "lcd.h" #include "lcd.c" #include "custom_char.h" void main() {DDRC=0xff; LCDInit(LS_BLINK); while(1) {LCDGotoXY(5,0); LCDWriteString("ZAINAB"); LCDGotoXY(4,1); LCDWriteInt(123); } LCD in WINAVR