Outline for Today. Lab Equipment & Procedures. Teaching Assistants. Announcements

Similar documents
Announcements Homework #3 due today. Ports. Outline for Today C8051 SFRs & Port I/O Worksheet #4 - simple I/O code. Using Ports

Before Class Install SDCC Instructions in Installing_SiLabs-SDCC- Drivers document. Solutions to Number Systems Worksheet. Announcements.

By the end of Class. Outline. Homework 5. C8051F020 Block Diagram (pg 18) Pseudo-code for Lab 1-2 due as part of prelab

Finite State Machine Lab

Lab #2: Building the System

IME-100 ECE. Lab 3. Electrical and Computer Engineering Department Kettering University. G. Tewolde, IME100-ECE,

PIC Dev 14 Surface Mount PCB Assembly and Test Lab 1

EECE 2411/2211-Introduction to Electrical and Computer Engineering Lab. Lab 3

IME-100 ECE. Lab 4. Electrical and Computer Engineering Department Kettering University. G. Tewolde, IME100-ECE,

PIC Dev 14 Through hole PCB Assembly and Test Lab 1

GEORGIA INSTITUTE OF TECHNOLOGY School of Electrical and Computer Engineering ECE 2020 Fall 2017 Lab #1: Digital Logic Module

Physics 120/220 Lab Equipment, Hints & Tips

This Presentation Will

Thursday, September 15, electronic components

RFID: Read and Display V2010. Version 1.1. Sept Cytron Technologies Sdn. Bhd.

ECE 103 In-Class Exercise L1 Guide

Laboratory of Sensors Engineering Sciences 9 CFU

Goal: We want to build an autonomous vehicle (robot)

Universal Keying Adapter 3+

Drexel University Electrical and Computer Engineering Department ECE 200 Intelligent Systems Spring Lab 1. Pencilbox Logic Designer

7 8 9 C. PRELAB REQUIREMENTS You must adhere to the Lab Rules and Policies document for every lab.

Quicksilver 606 TR-606 CPU Upgrade

ECE383: Microcomputers Lab 2 PIC24 System Schematic Creation in PCB Artist

CSC 258 lab notes, Fall 2003

INTRODUCTION TO LABVIEW

CURIE Academy, Summer 2014 Lab 1: Computer Engineering Hardware Perspective Sign-Off Sheet

EE251: Thursday September 20

Button Code Kit. Assembly Instructions and User Guide. Single Button Code Entry System

ELECTRONIC INSTRUMENTATION AND SYSTEMS LABORATORY

Elec 326: Digital Logic Design

CpSc 1111 Lab 9 2-D Arrays

Magic 8 Ball. Student's name & ID (1): Partner's name & ID (2): Your Section number & TA's name

Welcome to Lab! You do not need to keep the same partner from last lab. We will come around checking your prelabs after we introduce the lab

UF-3701 Power Board Construction Guide

ME456: Mechatronics. Prof. Clark Radcliffe. Do you have the knack? Joonho Lee, TA. What s Mechatronics? Mechatronics

ECE383: Microprocessors Lab 9 Analog-to-Digital and Digital-to-Analog Conversion with I 2 C Serial EEPROM Data Storage

Fundamentals of Digital System Design ECE 3700, CPSC 3700

ENGR 210 Lab1. Ohm's Law

Digital Pins and Constants

MICROPROCESSORS A (17.383) Fall Lecture Outline

EECE 690/890 Digital Radio Hardware Design. Team 3 Assignment 2. Informal Design Review: Thurs 10/15/98 Deliverables Due: Tues 10/20/98

Lab Overview. Lab Details. ECEN 4613/5613 Embedded System Design Week #1 Fall 2008 Lab #1 8/27/2008

Welcome to Lab! Feel free to get started until we start talking! The lab document is located on the course website:

CSCB58 - Lab 0. Intro to The Lab & The DE2 Board. Prelab /4 Part I (in-lab) /1 Part II (in-lab) /1

Embedded Systems and Software

COS 116 The Computational Universe Laboratory 7: Digital Logic I

Arduino 05: Digital I/O. Jeffrey A. Meunier University of Connecticut

CS12020 (Computer Graphics, Vision and Games) Worksheet 1

Chat Activity. Moodle: Collaborative Activities & Blocks. Creating Chats

The GENIE Light Kit is ideal for introducing simple lighting projects, such as an electronic die, a wearable badge or a night-time warning system.

Lab 4: Digital Electronics Innovation Fellows Program Boot Camp Prof. Steven S. Saliterman

Arduino Prof. Dr. Magdy M. Abdelhameed

Computer Interfacing Using LabView

Microprocessors B Lab 3 Spring PIC24/24LC515 EEPROM Interface Using I 2 C

1/Build a Mintronics: MintDuino

ENGG1015: Lab 7. In Search of Light

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Introductory Digital Systems Laboratory

Onwards and Upwards, Your near space guide Overview of the NearSys Two Sensor Temperature Array Figure 1. A complete Two Sensor Temperature Array

Figure 1. A complete Temperature Sensor

E40M. An Introduction to Making: What is EE?

Week 9: Design a Night Light. The experimental procedure Is not in the lab manual

VG-305A AC Traffic Light Controller Kit

Discharge by touching: BNC coax shield, outlet metal cover plate, wire connected to GND

EECS 140 Laboratory Exercise 4 3-to-11 Counter Implementation

solutions for teaching and learning

Lab 4: Digital Electronics BMEn 2151 Introductory Medical Device Prototyping Prof. Steven S. Saliterman

Lab 2.2 Ohm s Law and Introduction to Arduinos

Build Your Own Home Security System

9 Output Devices: Buzzers

Pre-Lab: Part 1 Using The Development Environment. Purpose: Minimum Parts Required: References: Handouts:

AXE Stack 18. BASIC-Programmable Microcontroller Kit. An inexpensive introduction to microcontroller technology for all ability levels

Look closely at this schematic diagram, in thid class you will be asked to construct this circuit WITHOUT using the textbook!

CONTENTS. dspicpro4 KEY FEATURES 4 CONNECTING THE SYSTEM 5 INTRODUCTION 6

TECH 3821 Lab #2 Relay Driver with Computer Control

Problem Score 1 / 27 2 / 19 3 / 16 4 / 14 code check off 5 / 22 /2 Total /100

Advanced Strobe 1.0 Kit

- create new schematic to the new project, PCB design begins with a schematic diagram, which present how components are connected

PRE-LAB #4: Voltage-Divider-Based Cloud Detector

EE 330 Laboratory 3 Layout, DRC, and LVS Fall 2015

manufactured by SF8150-ZIF14

None. MICROCONTROLLERS III

Parallel I/O and Keyboard Scanning

Standard Logic Chips and National Instruments ELVIS Breadboarding for Combinational Logic Circuits

Lab 8: Debugging Embedded Devices and Software

Butterfly Laser Diode Mount

Module 3B: Arduino as Power Supply

Lab 0: Wire Wrapping Project: Counter Board

Procedure: Determine the polarity of the LED. Use the following image to help:

eace PLC Velocio s Embedded Ace (eace) PLC

BUILDING YOUR KIT. For the Toadstool Mega328.

Electronics & Control

A B A+B

ESE 570 Cadence Lab Assignment 2: Introduction to Spectre, Manual Layout Drawing and Post Layout Simulation (PLS)

E85: Digital Design and Computer Engineering Lab 1: Electrical Characteristics of Logic Gates

USER MANUAL FOR HARDWARE REV

Introduction 1. Liquid crystal display (16 characters by 2 rows) Contrast dial: turn the dial to adjust the contrast of the display (see page 5)

University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Science

University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Science. EECS 150 Spring 2000

Intro to Multisim & Ultiboard

OPERATING INSTRUCTIONS 7 SERIES STATIC GENERATORS

Transcription:

Announcements Homework #2 (due before class) submit file on LMS. Submit a soft copy using LMS, everybody individually. Log onto the course LMS site Online Assignments Homework 2 Upload your corrected HW2-vn.c file Submit Important to remember to do this. Everybody must submit their own work. Add the provided pseudo-code for Lab 1-1 to your notebook, corrected for 1 team member's version of lab Quiz 1 in 2 classes (Mon Sept 15, sections 1,2; Tue Sept 13, sections 3,4) 40 minutes; Open book (printed manual), open printed notes No web pages, no past quizzes, no sharing, calculators allowed Coverage: number conversion, logic, pseudocode, and wiring Make sure you are registered for the correct section Homework #3 on website: Online assessment 30 min time limit REMINDER: No food or (container without lid) drink in the lab! Outline for Today Procedures of Tools and Hardware: if you don t have a toolbox from Elect Ccts or Elect Instrumentation you will need to purchase one for your team ($25) Hardware for switches and LEDS Switches are inputs, LEDs are used for Output Worksheet #3 Lab 1, part 1 2 3 Teaching Assistants Introduce Grading TAs Side A (podium left) Yogish Didgi Side B (podium right) Yogish Didgi Introduce Helping TAs Jeremy Ang You will need to check out one logic probe per team each day of lab. Logic probes are located in a cabinet in the back right corner of the room (as entering the main door). A TA will need to unlock the cabinet and hold your ID. Students need to be responsible when using the equipment. If something is missing or not working, please let the TA or Instructor know. We will replace it. Make sure logic probes are replaced at the end of class. 4 5

Wire for your project can be found in the spare wire box and on the spools Please use the spare wire in the box before using new wire from the spools Less cutting, less waste, less cost Remember: red wires for 5V pwr, black wires for 0V gnd Each group will be assigned protoboards A team MUST put their names on the bottom of it (get new label sticker if needed) At end of lab, return it to the corresponding numbered location in cabinets REMEMBER THIS NUMBER Write the number of your protoboard on the inside cover of your lab notebook Cabinets located on each side of the lab (in back) Unless told otherwise, keep the circuit on the protoboard when you store your equipment at the end of class 6 7 Each group will be assigned a bag of chips and components. These should be left with the protoboard - not taken home (so you won t damage parts or forget to bring it to class). Not all components are in your bag LEDs, resistors, and some other components can be found in the trays on the center table 8 9

Preparing for Hardware Clean up your station before leaving lab! Don t just wipe wires onto floor! Turn off power on car. Remember: no food or drink allowed in lab! Take a few minutes and perform the following tasks (TAs will hand them out): If no one on the team owns a toolbox from Elect Ccts or Elect Instr then 1 member will need to sign up to purchase one ($25) One student get a protoboard and logic probe Partner get a bag of parts and label Mount label on bottom of protoboard and write names, section # & side, and semester on label Understand the protoboard nodes (see LITEC Manual, end of Ch. 2) Mount the protoboard on the car Connect the ribbon cable to the protoboard 10 11 Wiring Rules All partners should have a copy of your code Make sure all have a copy at end of each day One partner may be late/sick/gone next class Homework needs to be submitted on LMS If equipment is broken, inform a TA so it can get replaced or repaired Please be careful, only limited supplies and some equipment is custom built Power/Ground and color convention All connections to power (+5V) use red wire All connections to ground use black wire Do not use red or black wires for any other connections No wires over chips Wire around them Use tight wiring Easier to debug Trim leads of resistors & LEDs 13 14

Help Procedures TAs there to help you Be aware there are only four or five TAs in the room with up to 70 students We are limited Try to use the resources available & troubleshoot on your own first, then ask a TA if you cannot solve the problem If TAs and professor are busy, please wait patiently Help Procedures There are also Open Shop hours posted in the lab and on-line The schedule is posted on the pillar in the center of the room TAs will be in the lab at those times to help if necessary 15 16 Lab 1-1 Overview Lab 1 focuses on the hardware and the functions used to interface the hardware to the C8051 Lab 1-1 specifically introduces the use of digital inputs and outputs Acquire digital input from external source Use this to determine a digital output It is important to develop reusable code Use of functions in your programming GOAL: Control 2 LEDs and a buzzer with two switches 17 Common Digital Gates Inverter Buffer X Q X Q 0 0 7407 74365 1 1 (logic level unchanged, voltage level may change & current increased) OR X Q 7404 X Q Y 7432 X Q 0 1 1 0 X Y Q 0 0 0 0 1 1 1 0 1 1 1 1 18

AND NAND Common Digital Gates X Y X Y 7408 7400 There are many, many other digital circuits, but these are the common ones we will use. Q Q X Y Q 0 0 0 0 1 0 1 0 0 1 1 1 X Y Q 0 0 1 0 1 1 1 0 1 1 1 0 Hardware Components Refer to the components when discussing the following slides Buffer chips LEDs Pushbuttons Slide switches Note: voltage inputs/outputs corresponding to On/Off are not necessarily 0/5 [V] Circuit examples 19 9/1/2016 Lecture #3 20 Chip Numbering Resistors & Potentiometers On the physical chip, the pin numbers are arranged from the top-left around the chip in a counterclockwise (CCW) direction. The top-left is found by locating the small dot or notch on the chip. Example of a resistor component: Physical appearance Electrical symbol Resistance value is indicated by the colored bars. Resistor color codes can be found in Appendix C of the lab manual and on the poster on center column in the lab. 21 22

Light-Emitting Diodes Application in Circuit LEDs are common components that provide a visible indication of a digital output. Diodes only allow current to flow through in one direction. From the cathode to the anode Must be a potential drop across it to emit light Current (i) 23 Connect an LED and resistor in series Power +5V Choose resistor to limit current in LED to rated value i<=10 ma Can use an output pin on microcontroller to turn on/off Power +5V Current (i) Ground 0V Logic High no current flow Logic Low current flow Use buffer gate to protect microcontroller (acts as a current sink) 24 Switches Different types of switches can provide digital input to the microprocessor. Pushbuttons provide different status only when pressed. Slide switches can be placed in either status. Application in Circuit Connect a switch and resistor in series Resistor limits current and provides a voltage drop When open circuit, no current flow, no voltage drop across resistor, therefore reading +5V at point A When closed circuit, current flows, voltage drops across resistor, therefore reading 0V at point A Microcontroller can read the status at this point A - Voltage at this point w.r.t. ground is: High when not pressed (no current) Low when pressed common 25 Power +5V Current (i) only when pressed Ground 0V 26

Worksheets #3 and #4 To prepare for Lab 1, we will begin with an example Port initialization and hardware circuit. Worksheet #3 uses hardware similar to Lab 1, part 1, but without the microprocessor control. One switch activates an LED and one activates a buzzer. This circuit can be used as the basis circuitry for Lab 1 (note the similarities). Use proper wiring conventions (neatness, wire color) Don t disassemble it when finished! Hardware Wiring and Testing Additional items in open supply in the Parts Drawers on the table in the middle of the room. Wire, Resistors Some special items like LEDs Read the schematic for Worksheet #03. Plan the circuit layout on the protoboard. Connect wires and check. Remember to connect power and ground to the chip. Turn on power. Verify correct function. Debug if necessary with logic probe. Enter procedure and results in Lab Notebook Show TA the result. Save your work for Lab 1, part 1. Lecture restarts in 30 minutes 27 28 Lab 1, part 1 Objectives Lab 1, part 1 Representation Your program for Lab 1, part 1 should (or some variation of): When the Slide switch is off (input is a HIGH voltage), LED0 is on, all other output devices are off When the Slide switch is on and both Pushbuttons are pushed, the Buzzer is turned on When the Slide switch is on and only Pushbutton 1 is pushed, the BiLED is green When the Slide switch is on and only Pushbutton 2 is pushed, the BiLED is red print LED and buzzer status to the screen Print button and switch states to the SecureCRT window See Tutorials website for helpful info. C code Switches (pushbutton, slide switch) Input Port 2 & 3 C8051 Controller Port 3 Output buzzer LED0 BicolorLED 29 30

Lab 1, part 1 Schematic Inputs Why do we need inputs? We want to send some type of information to the system. What type of signals can we send? Digital (True/False, 1/0, High/Low, +5V/0V) High for the C8051 microcontroller is ~3V, while logic gates need ~5V Analog (variable voltage) 31 32 Creating Digital Inputs Creating Digital Inputs The Goal: Communicate information to the microcontroller. The Approach: Force an input line to a TRUE or FALSE condition. Recommended practice: Make the input line either high or low at all times do not let input lines float. Floating lines create the possibility of ambiguous information at best, and undesirable information at worst. The usual implementation: R V cc To input pin 33 34

C Program for Lab 1, part 1 Sample Code Look on LMS Course material, Laboratory 1 for the lab1-1.c starting code. This code is incomplete in many ways As we look over this example now, think of these questions: How can this be applied in this project? What modifications and additions need to be made to meet our goals? Your pseudo-code should reflect these considerations Lets refer to the Sample code provided with Laboratory1-1. This code will control one LED with one switch You need to modify this code to control 2 LEDs and a buzzer with two switches (as described previously) Things to note as a review of C programming Include header files we need to include c8051_sdcc.h (website) Function prototypes note what is returned/passed Variable declarations must declare at beginning of function Use of indentation & brackets proper use is very helpful Function calls need () for functions, not variables 48 49 Lab Check-Off Lab Notebooks When you complete a lab assignment, you will need to demonstrate your lab to a TA Check-off procedure TAs/Prof from any section may check you off All partners should to be present (no credit if missing) Lab Notebook needs to be completed to that point You will be asked questions from the Demonstration and Verification section at end of lab as well as some additional questions All partners need to know lab well Questions will be directed towards each partner individually Don t forget to keep your lab notebooks up-to-date! Details in Lab Manual Appendix B Part of lab check-off procedure 53 54

Good Communication Connections to the Microcontroller Inform TAs of any partner changes over next week. After that, you will remain partners for rest of semester You will receive email updates from your grading TA Be sure to check your email Thank you for your help in making this course run smoothly Each protoboard has an EVB Port Connector, see back cover of lab manual and pin sheet For example, hardware connects to Port 3 by using pins 31-38. Review the numbering scheme on the protoboard connector block to EVB. Note the location of pins 1 and 2 to see how they are sequenced. 55 56 Additional Hardware Notes Note: LEDs will only turn on for forward current flow. Reverse connections if they do not light. See lab manual. The same applies to the polarized buzzer (look for +). Slide protoboards into the slots on top of the car above EVB. This will ensure proper connection of the ribbon cable. Brown edge of cable should be at low number end of pin connector. Next Class Homework 3 is due before class C8051 SFRs & Port I/O Continue Lab 1, part 1 Before you leave Return your protoboard to cabinet slot that matches number on protoboard. Parts bags should be left with protoboard. Return your toolbox (with everything put back) to the TA by the back cabinet. Turn off your car. 57 58