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

Memory management system, 1. Basic Heap: Each memory location in our model ...

1. Basic Heap: Each memory location in our model of the RAM will be an instance of type Memory: 2. typedef union Memory_u Memory; 3. union Memory_u{ 4. char character;

I need cryengine sandbox speedometer and tachometer, I need Cryengine Sandb...

I need Cryengine Sandbox Speedometer and Tachometer We want to get working Tachometer and Speedometer for a car in latest Cryengine Sandbox. You will find how to make it usin

Define the multi dimensional arrays, Define the Multi Dimensional Arrays? ...

Define the Multi Dimensional Arrays? Consequently far we have considered arrays with only one dimension. It is as well possible to define an array which is having a 2-dimension

Program''s, why is programming is needed now-a-days.what is the benefit of ...

why is programming is needed now-a-days.what is the benefit of colleges to apply heavy loads on students head.

Structure, Write a function that calculates the number of elapsed days betw...

Write a function that calculates the number of elapsed days between two dates. For example the days between Feb 3, 1970 and June 21, 1980? Becareful for the Leap year

Files, redirection in c++

redirection in c++

Buffer overflow, Can you help me with a C++ project?

Can you help me with a C++ project?

Produce an executable file, Requirements Create a "makefile" that w...

Requirements Create a "makefile" that will manage the construction of a program The name of the makefile must be: makefile The make file must produce an executable

Example for register storage class - computer programming, Example for Regi...

Example for Register Storage Class - computer programming? main() { register int i; for (i=0; i { ............... ............... } } /* block exit will free the register

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