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

Write a Programme that computes the price of portfolio, write a programme t...

write a programme that computes the price of shares and options. do the options in one-period binomial model.

Write program to get largest element in array using function, Write a progr...

Write a program to get the largest element in an array using Function? # include int largest(int b[],int); main() { int lar,a[5]={12,2,36,40,5}; lar=largest(a,n); printf("

Eevrv, Ask question #Mi fd d fffffffffffffffffffffffffffffffffffffffffff...

Ask question #Mi fd d fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff

#Luminous Jewels, #Byteland county is very famous for luminous jewels. Lumi...

#Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Ne

Array, If an array holds integer, each of which is four bytes long, how man...

If an array holds integer, each of which is four bytes long, how many bytes from the base location of the array is the location of the fifth element?

COMPUTER, THEORY OF A COMPUTER PROGRAMMING

THEORY OF A COMPUTER PROGRAMMING

Area under curve, Write a program to find the area under the curve y = f(x)...

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b

Make a connection to fifa ultimate team 14 using c++ or c#, I need to creat...

I need to create a connection to FIFA Ultimate Team 14, I want to utilize C++ specifically for the reason that that is the language I have the most experience in. There are a co

Shell sort - c program, Shell sort - C Program: Write a program to def...

Shell sort - C Program: Write a program to define shell sort. void main() {                  //program for sorting by select sort int a[20],i,k,j,n;   clrscr();

Age guessing game, Write a program that predicts users’ age (0-128 years ol...

Write a program that predicts users’ age (0-128 years old) with at most 7 questions. The game starts with asking the user whether he/she is younger or older than G (an initial gues

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