20900_LB12_S2011_LCD_8_4_bit

20900_LB12_S2011_LCD_8_4_bit - LCD DATA D0 thru 7...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Name _________________________ ECET 20900 Spring 2011 Lab Exercise #12 LCD – Operation and Programming in 8bit and 4 bit mode Objective: The purpose of this lab is to for you to use a 2x24 character LCD to display text and data. Pre-lab: Read the KS0066U controller data sheet. This controller is embedded in this LCD. In-Lab: 1. (i) Initial LCD check: Observe the correct polarity (yellow to POSITIVE), connect the LCD to a 9V supply and turn it on. A message “ Alive and well ” should appear indicating that the LCD board is functioning properly. If no message appears then check to make sure that the “ DISPLAY CONTRAST” potentiometer is turned up sufficiently. If still no message then advise the instructor immediately. (ii) ATmega16 to LCD connections: Make the following connections: ATmega16 PORT B.0 thru B.7 to
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: LCD DATA D0 thru 7 respectively. • ATmega16 PORT A.7 to LCD DATA RS • ATmega16 PORT A.6 to LCD DATA E • ATmega16 PORT A.5 to LCD DATA R/!W • LCD single character: Write code to display any character at the top left position of the LCD using 8bit parallel mode. • Repeat using 4bit parallel mode • Single Character different position: Write code to display any character in the last third of the bottom row of the LCD. • Display a message (8bit mode): Write code to display a two line message in the middle of the display using 8bit mode. • Display a message (4bit mode): Write code to display a two line message in the middle of the display using 4bit mode. • Display a message with a variable: Write code to display a message in the middle of the display. e.g. Flow Rate = var GPM...
View Full Document

This note was uploaded on 10/01/2011 for the course ECET 209 taught by Professor Richardson during the Spring '08 term at Purdue.

Ask a homework question - tutors are online