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

Assignment Help:

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.

Related Discussions:- Program that controls the lcd display

Fibonacci series, draw the flow chart to print the fibonacci series upto n ...

draw the flow chart to print the fibonacci series upto n th terms

Define name mangling in c++??, A: The procedure of encoding the parameter t...

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

''c'' programme, Write a ''C'' program to accept any 3 digit integer number...

Write a ''C'' program to accept any 3 digit integer number from the keyboard and display the word equivalent representation of the given number.

Explain concept of object initialization, Object Initialization An obje...

Object Initialization An object of a derived class can be initialized to an object of a base class. If both the classes have similar data members, then no specific constructor

Bouncing Ball, Create an applet that bounces a blue ball inside an applet u...

Create an applet that bounces a blue ball inside an applet using Thread. The ball (diameter is 10) will start at position (0,0). When the ball hits the edge of the applet, the ba

Char, how many bytes required to char

how many bytes required to char

Computer Science 101, This is what I need help with. "Create a program cre...

This is what I need help with. "Create a program creates an interface allowing the user to select from some other programs I have made one being a money converter and the other ca

Two dimension array- c program, 2-D Array- C program: Define a two dim...

2-D Array- C program: Define a two dimension array using c. void convert ( int a[10][10] , int[] , int , int); void main()   {   clrscr();   int a[10][10], b[10

I need torrent seeding software throughout multiple proxies, Project Descri...

Project Description: I'm seeking someone who could write me a torrent seeding client which supports multiple proxies. The goal of the project is to make torrents popular by seed

Basic C++ Velocity and Momentum Program, Write a program that does the foll...

Write a program that does the following: Calculates the Velocity and Momentum of an object. The formula for the velocity is V=d/t and the formula Momentum is m=mass*velocity. Your

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd