Program that controls the lcd display, C/C++ Programming

Objective:

 Construct a C program that controls the LCD display, and is capable of displaying strings.  Add functions to the C program that allows more control over the display.

Outcome:

 The toggle switches should control the content of the display.  At least five messages should be able to be displayed

Procedure:

­ Step 1:  Log into the computer in the lab using your credentials.

­ Step 2:  Copy the files you saved last week back into the working directory on the computer.

­ Step 3:  Start Quartus II and download the same image that you did last lab.  Refer back to last lab notes if you are foggy. The LED's have stopped blinking now. 

Thanks!

­ Step 4:  Open up the NIOS II IDE, and select your workspace.

­ Step 5:  Find the template for the LCDGotoXY() function and implement your own version of this function.  You will have to refer to the HD44780 LCD controller data sheet to understand how the screen data is organized inside of the chip.  Hint: To set the next insertion point write to the 'DDRAM' address counter. 

Remember, that our display is organized into two lines of 16 columns each.

­ Step 6:  In the main() function you will have to add code that does the following:

  • Read the switches.
  • Check to see if they have changed since the last read, go back to reading the switches if they have not.
  • Debounce the switches by waiting for 50ms.
  • Read the switches again.
  • Move the cursor to the upper left of the screen using LCDGotoXY(0,0).
  • Use a switch statement to select one of several messages to print. One of them should be to clear LCD using LCDClear function call.
  • Print the message
  • Save the state of the switches
  • Go back to the start to read the switches.
Posted Date: 3/5/2013 6:18:45 AM | Location : United States







Related Discussions:- Program that controls the lcd display, Assignment Help, Ask Question on Program that controls the lcd display, Get Answer, Expert's Help, Program that controls the lcd display Discussions

Write discussion on Program that controls the lcd display
Your posts are moderated
Related Questions
C CODE FOR PEBBLE MERCHANTS PROBLEM

i havea a small C++ i need help with. should not be anything special for an experienced programmer

Smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, they are send

Add guts to VS 2008 C++ windows service Project Description: I have a shell windows32 service written in 2008 VS C++. I want the functionality part started. Need someone too

#write a program that counts the number of occurances of the string in the n-th padovan string p(n)

A: The procedure of encoding the parameter types along with the function/method name into a unique name is called as name mangling. The inverse procedure is called demangling. F

Question 1 . Write a brief note on Aggregation Question 2 . Discuss briefly on constructors Question 3 . What are the important advantages of Inheritance? Question 4 .


Define Bitwise-Shift Operators? The shift operators perform suitable shift by operator on the right to the operator on the left. The right operator should be positive. The va

The project will include Arena models (only .doe files) and MSWord document for the report. Thereport must contain the following sections: 1. Introduction: (a)    Statemen