ECE 287 FUNDAMENTAL C LAB - ODU

[Pages:3]Welcome to ECE287

...

ECE 287 FUNDAMENTAL CIRCUITS LAB

Dr. Vishnu Lakdawala

Files and Software required......

kernel.c vector.c ICC11 V6 Compiler Windows-based downloader

Lab Notebook required........

Lab Notebook Details

Lab Related......

Guidelines Grading Policy Lab Grading Sheets Sample Report Lab Kit parts list Lab Manual

Useful Links......

M68HC11 Reference Manual

Data Sheets......

MC68HC11 Programming Reference Guide Developing Embedded Software in C using ICC11 MicroStamp11 ImageCraft ICC11 Resistor Color Code Calc Digital Multimeter HP 34401 A Manual User Guide to HP 34401 A Digital Oscilloscope TDS 210 Manual

Breadboard Diagram Red LED Zener Diode NPN Transistor LED Display Regulator Op Amp Shift register Darlington Array Microstamp Socket Microstamp

LABS

Go Top

1 of 3

2/3/14, 4:04 PM

Welcome to ECE287

...

Lab 1 Design Experiment

Lab 2

Microstamp 11 Familiarisation

Lab 3

Lights and Switches Hardware

Lab 4

Lights and Switches - Real Time

Lab 5

Digital to Analog Conversion

Analog to Digital Lab 6 Conversion - Part

1-Hardware

The resistor color code calculator link will prove useful. Resistor Color Code Calc

The pinout for the MicroStamp socket is under datasheets. Commenting your code is encouraged, but does not count as the program description for the lab report.

The labs are getting longer, so do yourself a favor and complete the PRE-lab BEFORE lab. Check out the 7-segment data sheet

Lights and Switches - real time Be sure to include a "stop" indicator in the second program.

When planning your R-2R ladder network..... your lab kit contains 20 2.2K ohm resistors.... if you use a 2.2K for the R value...what is an easy way to obtain the 2R value? Step 3 of pre-lab suggests building your r2r on the left side of your breadboard, actually the lower right would be a better location. When building your ladder network, lay it out like the pictured schematic to make construction and troubleshooting easy. Run the three ports down to the r2r circuit. You will be using ports PD0 and PD1 to drive your DAC. These pins are used by the microstamp to communicate to the RS232 interface that talks to the computer. You will need to use the kernal function disable_sci() to turn off this default communication in order to use the pins for general purpose outputs. Once you call this function, you will not be able to use any of the functions that communicate with the terminal program.

Conserve board space! Use this sample data table as a guide in taking your data. Reference voltage... the lab manual gives a simple version of a circuit to generate a reference voltage. This example provides a range of 0-5V. The output of you buffer amp should be around 0-6V. The OP amp chip is powered from 9V. How could you use this to get a reference voltage of 0-6V? (Hint: think voltage divider) Make sure to take the threshold data. You will need this for Lab 7 pre-lab. Your negative potentials (grounds) of your two supply voltages need to be connected to ensure they are at the same potential. Figure 10 on page 59 in the lab manual has a correction.

2 of 3

2/3/14, 4:04 PM

Welcome to ECE287

Analog to Digital Lab 7 Conversion - Part 2 -

Software

Lab 8 Pulse Width Modulation

Lab 9

Digital to Analog Conversion Revisted

Lab 10 Getting power off the wall

Lab 11 Serial Interfaces

Analog to Digital Lab 12 Conversion Revisited -

Time multiplexing

...

The figure for Vin > 5V should have a line (or a short) to represent the diode that is between R1 and R2. Make sure you know where pin 1 is when wiring up your op amps

Pre-lab threshold data plot data is from the data you took in Lab 6. Sample code logic may be backwards depending on how you designed your comparator. Selecting N may not be as straight forward as you think. You may want to create a table of your variables and manually run through your for loop.

The reference manual and programming reference guide for the microcontroller are under the useful links. These may be of help in understanding interrupts . Check out section 10 of the ref manual.

Use your PWM signal to drive an RC circuit and create a 6-bit DAC In-Lab #4 - "value of the RC circuits's response" is the ripple voltage.

PreLab : Use 470 ohms for the series resistance in Figure 7. ALSO USE THIS VALUE DURING IN-LAB. CAUTION : The series resistor will get very hot during testing!

Learn how to serially drive the 7-segment display to reduce the number of output pins needed from the MicroStamp.

Multiplexing. Learn how to control 2 displays with the same address lines.

Go Top

3 of 3

2/3/14, 4:04 PM

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download