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

  Create a application using the mvc architecture

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

  Create a multi-threaded competition

Create a multi-threaded competition

  Top-down recursive descent parser

Write a hand-coded top-down recursive descent parser.

  Build a student record managing system application

Build a student record managing system application

  Formula translation

Write a c code that will evaluate the roots of a quadratic equation

  What are the contents of given register

Memory location 2000H has the word 5000H stored in it. What does each location contain after INC BYTE PTR[2000H]. Also after DEC WORD PTR[2000H]

  Write a program that uses the curve class hierarchy

Write a program that uses the curve class hierarchy. The program should define several different objects, output their area, circumference, etc. It should also use the printcurve function.

  Create child processes

Create child processes

  Evaluate the fibonacci series

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

  Programming problem

Programming Problem can be solved by a program that performs three basic tasks-Input Data, Process Data, and Output Results.

  Build a student record managing system application

Build a student record managing system application

  What is the throughput of the system

what is the throughput of the system

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