Docsity

ECE 341 Lab 9: Asynchronous Serial Communications, Lab Reports of Electrical and Electronics Engineering

Toggle sidebar
bg1
1
ECE 341 Lab 9
Asynchronous Serial Communications
April 6, 2008
Purpose
In this exercise you will demonstrate bi-directional communicate between the PSoC
UART and the PC Hyperterminal program.
Concepts
For this lab exercise, you will investigate character (byte) and stream (array of bytes) data
transfers using full-duplex serial communications. You will us the high level API to
receive commands on the PSoC from text entered on the PC Hyper Terminal.
Assignment tasks
1. Set the PC HyperTerminal serial communications according to the following:
A. Properties Window and Configuration
pf3
pf4
pf5

Partial preview of the text

Download ECE 341 Lab 9: Asynchronous Serial Communications and more Lab Reports Electrical and Electronics Engineering in PDF only on Docsity!

ECE 341 Lab 9

Asynchronous Serial Communications

April 6, 2008

Purpose

In this exercise you will demonstrate bi-directional communicate between the PSoC UART and the PC Hyperterminal program.

Concepts

For this lab exercise, you will investigate character (byte) and stream (array of bytes) data transfers using full-duplex serial communications. You will us the high level API to receive commands on the PSoC from text entered on the PC Hyper Terminal.

Assignment tasks

  1. Set the PC HyperTerminal serial communications according to the following: A. Properties Window and Configuration

B. Settings:

C. Input Translation and ASCII Setup:

  1. Clone your PSoC Lab 8 project to create your new Lab 9 project.
  2. Modify the VC3 parameter using the device editor so that the PSoC UART operates at 38400 baud.
  1. Your functional project must be demonstrated to the instructor or the TA. Reports that are not demonstrated by the TA or the instructor will no be graded.

Lab 9 Report

Name:__________________ Date:___________

Performance Assessment

  1. Attach a hardcopy of the main.c program that you modified to the report for this assignment.

  2. Generate a control flow diagram and a collaboration diagram for your program that includes all functionality.

  3. Include a copy of the capture oscilloscope (not logic analyzer) waveform when the characters ‘E’ and ‘C’ from the string “ECE341 Lab #9\r” that is sent to the PC from the PSoC processor. The oscilloscope should be connected to PSoC pin Port 2 pin 7.

  4. Justify the trace captured in part 3 by identifying each bit in the trace as “Start”, “Stop”, “Parity”, or “D0” through “D7”

  5. Explain the value that you used for “VC3 Divide” to generate the 38200 BAUD serial communications. What is the accuracy of the serial clock rate for 38.4K baud communications?