Communicate with a pc using the rs232c serial protocol

Assignment Help Programming Languages
Reference no: EM131967

In this lab we will use the UART0 peripheral to communicate with a PC using the RS232C serial protocol. We will continue using functions to encapsulate the low level details of the code to make programs more readable and make the code within the function reusable. All work is to be completed on your own. You may use the Tivaware examples in the C:\ti\TivaWare_C_Series-1.1\examples\boards\ek-tm4c123gxl directory, the class notes, and the book for reference, but please do not discuss this project with other students. You may use the functions provided in the example code segment discussed in class and included in the framework file posted to Angel as a starting point for your code. You may use the UART_Init, CheckForInputCharacter, UARTInputCharacter, and UARTOutputCharacter functions provided; you do not need to write your own functions for these operations.

You must submit a prelab showing reasonable effort to receive full credit for this lab.

Operation

The program will repeat the following steps:

1. Wait for a single character to be received on the serial port

2. Choose a response based on the character received:

a. If the character is an upper case letter, transmit the next letter in the alphabet (calculated with a simple math operation) to the serial port and turn on the green LED. For example, if the letter A is received, send the letter B to the serial port.

If the letter Z is received, send the letter A to the serial port.

b. If the character is a lower case letter, convert the letter to upper case (using a simple mask operation), send the letter to the serial port, and turn on the blue LED

c. If a character other than a letter is received, send an asterisk (*) to the serial port and flash the red LED at a 300 ms rate.

Reference no: EM131967

Questions Cloud

Briefly address the data analysis process : Describe and analyze your quantitative data and Briefly address the data analysis process.
Visit and analyze the company-specific web-site : Visit and analyze the Company-specific web-site with respect to E-Commerce issues
Social norms campaigns : Social Norms Campaigns: Examining the Relationship between Changes in Perceived Norms and Changes in Drinking Levels
How can theory guide and inform practice : What are the issues involved in translation transformative, transactional and transcendent theory into practice.
Communicate with a pc using the rs232c serial protocol : In this assignment we will use the UART0 peripheral to communicate with a PC using the RS232C serial protocol.
Evaluate each franchise''s npv : According to the NPV, which franchise or franchises would be accepted if they are independent? Which could be accepted if they are mutually exclusive? Evaluate each franchise's NPV? Be sure to show your calculations.
What is the firms cost of preferred stock : What sources of capital should be included when you estimate XYZ's WACC? and Should the component costs be estimated on a before or after-tax basis? Why?
Write a brief overview concerning stock valuation : Write a brief overview concerning stock valuation. A brief explanation of the legal rights and privileges of common stockholders.
What are the corresponding prices and mucs : What are the efficient quantities for each of the two periods? What are the correspondingprices and MUCs?

Reviews

Write a Review

Programming Languages Questions & Answers

  Show how the tree might be type-checked

Attempt to derive proof tree for the judgment Show how the tree might be type-checked

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Evaluate the fibonacci series

Write a program to evaluate the first 20 numbers of Fibonacci series.

  Technical project: sample website project

Technical Project: Sample Website Project , This assignment consists of three (3) sections: a narrative, a storyboard, and a business Website. You must submit all three (3) sections for the completion of this assignment.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Create child processes

Create child processes

  Learn redirecting standard output

Learn redirecting standard output (stdout) to a file using the output redirection operator

  Unix systems administration

Unix Systems Administration

  Program a maze-type game using assembly language

Project requires you to program a maze-type game using Assembly Language, it is not acceptable to use any other programming language for this project

  Accuracy and completeness of computations

Analysis right and you have to develop a plausible argument to "prove" that your analysis is correct

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