C program that controls the uart, C/C++ Programming

Assignment Help:

Objective:

Construct a C program that controls the UART, and is capable of displaying strings. Echo characters received on the UART to the LCD screen

Outcome:

A message should print on the terminal program (i.e. Hyper Terminal) attached to the DE2 Kit. Keystrokes from the terminal should appear in the LCD display.

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 week.

Refer back to last week's 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: Copy the supplied file 'uart.c' into your project workspace using the IDE to drag and drop it from the disk into the project.

 Step 6: Fill in the functions in the supplied template

 Step 7: Construct a main routine that does the following steps:

  1. Initializes the LCD
  2. Initializes the UART
  3. Prints a message on the UART
  4. Prints a message on the LCD
  5. Sets the cursor on the LCD to the beginning of the second line (LCDGotoXY(0,1))
  6. Enters a while loop that
  7. Reads a character from the UART port
  8. Prints the character on the LCD screen

 Step 8:Connect 9-pin serial cable to RS-232 port in DE2 pack

 Step 9: Open hyper terminal window in PC. Configure properties based on the UART core configuration information using SOPC. Serial port parameters configuration could be 115200, N, 8, 1 with no flow control (i.e. no handshaking).

 Step 10: Get the instructor over to verify functionality

 Step 11: Adventurous students may wish to make the LCD cursor wrap back to the first column on the display if more than 16 characters are typed.

 Step 12: Extra adventurous students may implement vertical scrolling of the LCD when the cursor reaches the end of the line. (WARNING: requires an abstraction of the display into an array, and writing functions that update the real display from the virtual one.)


Related Discussions:- C program that controls the uart

How to define a structure, How to Define a Structure? Structure declara...

How to Define a Structure? Structure declarations are rather more complicated than array declarations, ever since a structure must be defined in terms of its individual members

Change to palindrome, A palindrome is a string that reads the same from bot...

A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome

Write the recursive bisection root finding function, Rewrite the recursive...

Rewrite the recursive bisection root finding function from lecture to be iterative (using a while loop). The function declaration should be root = bisectIter(f,a,b,tol). The input

I need keylogger extension on chrome, Project Description: I want someon...

Project Description: I want someone to create and install a keylogger on a chrome browser. This could be a relatively simple job, please have experience with this type of work.

Difference between mutex and binary semaphore, Semaphore is used to synchro...

Semaphore is used to synchronize processes. whereas mutex is used to give synchronization among threads running in the similar process.

Calculate the average assignment grade, 1. The main program must be in a fi...

1. The main program must be in a file called A4.cpp 2. The data must be read in from a data file.  The user must enter the filename.  A sample data file will be provided on Mood

Square maze, SquareMaze The SquareMaze class should be declared and defined...

SquareMaze The SquareMaze class should be declared and defined in maze.h and maze.cpp, respectively. Each SquareMaze object will represent a randomly-generated square maze and its

What is difference between require_once () and require(), What is differenc...

What is difference between require_once (), require(), include()? require() includes and evaluates a specific file, if file isn't found then it shows a Fatal Error. require_

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