DOC PREVIEW
PSU EE 200 - ps8

This preview shows page 1-2 out of 7 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 7 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 7 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 7 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

EE 200 Problem Set 8 Cover Sheet Spring 2014Last Name (Print):First Name (Print):ID number (Last 4 digits):Section:Submission deadlines:• Each EE 200 student must complete the circuit in problem 29 prior to attending Laboratory #15. At thebeginning of Laboratory #15, each student must show the completed circuit to the instructor to receive agrade for problem 29.• Each EE 200 student must complete the circuit in problem 30 prior to attending Laborato ry #16. At thebeginning of Laboratory #16, each student must show the completed circuit to the instructor to receive agrade for problem 30. As the instructor may ask you to verify operation of the circuit, you must bring yourmyDAQ and test leads to Labo ratory #16.• Turn in the written solutions for problems 31 and 32 by 4:00 pm on Tuesday March 18 in the homeworkslot outside 121 EE East.Problem Weight Score29 2530 2531 2532 25Total 100Problem 29: (25 points)A goal o f Laboratory #15 is to demonstrate the realization of a finite state machine with an asynchronous reset inLabVIEW using the myDAQ. As a specific exampl e, you will realize the finite state machine for the parity detectorintroduced in Laboratory #4. For this reason, every EE 20 0 student must construct the circuit in Figure 1 andbring it completed to Laboratory #1 5. At the beginning of La boratory #15 the instructor wil l verify that eachstudent has completed the circuit in Figure 1.Figure 1: Circuit for realization the parity detector finite state machine using LabVIEW and the myDAQ.Problem 30: (25 points)A goal of Laboratory #16 is realize the finite state machine for the parity detector with an asynchronous reset,realized with either pol ling or an external interrupt, using using the Microchip Technology dsPIC33EP64MC50 2microcontroller. Every EE 200 student must construct the circuits in Figures 2 and 3. Details for completing thecircuit in Figure 2 are available in Problem Set 7 Problem 25. At the beginning of Laboratory #16 the instructorwill verify that each student has completed the circuit in Figures 2 and 3. The instructor may verify operation ofthe circuits by usi ng your myDAQ to measure the voltage at pins 2 and 28 of the dsPIC33EP64MC502, or pins 1and 2 of the 6 pin header required for the PICkit 3 Debugger/Programmer.Figure 2: Basic connections for all EE 200 microcontroller exercises.Figure 3: Additional circuit connections for realizing the parity detector using the microcontroller.Problem 31: (25 points)This problem is an extension of Problem Set 7 Problems 27 and 28, and demonstrates how to write characters to thelines of the LCD module using the myDAQ. As in problem 27, Figure 4 shows the connections between the myDAQand the L C D module. The myDAQ lines DIO0 and DIO1 set the Regi ster Select (RS) and Enable(E) lines on theLCD module, respectively, while lines DIO4 to DIO7 set the upper nibble of Instruction/Data on the LCD module.Now consider LCD demo 1.vi in Figure 5 that writes characters to the LCD display.Figure 4: Connections between the myDAQ and LCD module.Figure 5: SubVI LCD demo 1.vi that writes characters to the lines of the LCD module.The subVIs LCD Write Nibble.vi, LCD Writ e Byte.vi, and LCD init.vi were analyzed in problems 27 and28. Figure 6 shows the subVI my DAQ Init.vi that creates the virtual channel used by the DAQmx Write VIs andinitiali zes the myDAQ digital output port by clearing all l ines. Figure 7 shows the subVI my DAQ Release.vi thatclears the my DAQ output lines and the vi rtual channel used by the DAQmx Write VIs. All the VIs in Problem 31are included in the directory LCD VIs provided with Problem Set 8.Figure 6: SubVI my DAQ Init.vi for initializing the myDAQ.Figure 7: SubVI my DAQ Release.vi.Answer the foll owing questions regarding the SubVI LCD demo 1.vi in Figure 5. You may wish to site relevantinformation in lcd part 1.pdf and/or hd44780.pdf provided in the directory References along with Problem Set 8.1. (5 points) What does the code in Task 1 accomplish? Justify your answer in two or three short sentences.2. (5 points) What does the code in Task 2 accomplish? Justify your answer in two or three short sentences.3. (5 points) What does the code in Task 3 accomplish? Justify your answer in two or three short sentences.4. (5 points) What does the code in Task 4 accomplish? Justify your answer in two or three short sentences.5. (5 points) After the LCD demo 1.vi executes, use Figure 8 to indicate the message shown by the LCD display.Figure 8: LCD module display.Although constructing the circuit in Figure 4 is not required, you m ay wish to do so to check your answers in parts1 through 5.Problem 32: (25 points)1. (5 p oints) Figure 9 shows the SubVI LCD demo 1.vi in Figure 5 with the Simple Error Handler VI removed.Suppose that Automatic Error Handl ing is enabled for the subVI in Figure 9, but disabled for all the SubVIscontained within Figure 9. If an error occurs within one of the SubVIs called in Figure 9, will an error dialogbe posted? Justify your answer in a short sentence.Figure 9: The block diagram for this VI has Autom atic Error Handling Enabled while each SubVI has AutomaticError Handling disabled.2. (5 points) After the VI in in Figure 10 completes execution, which graph in Figure 11 matches the output inthe Waveform Graph indicator?Figure 10: VI for Problem 32 Part 2.Figure 11: Graphs for Problem 32 Part 2.3. (10 points) Figure 12 shows two approaches for plotting multiple curves using a Waveform Graph indicator.The indicators Waveform Graph 1 and Waveform Graph 2 in Figure 12 display identical results. For each ofthe five wires labeled A through E in Figure 12, answer the following questions.• Does the wire represent an array or cluster?• If the wire represents an array, what is the data type of the elements, the dimensions of the array, andthe number of elements per dimension?• If the wire represents a cluster, what are the data type of the elements of the cluster?Figure 12: VI for Problem 32 Part 3.4. (5 points) Figure 13 shows a VI that writes a 1D array of eight Booleans to disk. Determine the size of thesaved file in units of bytes. To receive credit, you must state in one or two sentences how you determined thesize. No credit will be given if you simply state the va lue by executing the code and checking the fil e size ondisk.Figure 13: VI for Problem 32 Part


View Full Document

PSU EE 200 - ps8

Download ps8
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view ps8 and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view ps8 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?