Experiment 2 Fall 2012

Similar documents
Experiment 6 Fall 2012

Experiment 10 Fall 2012

ECE 367 -Experiment #1 Fall 2012

Pre-Laboratory #Boolean Expressions ECE 332

Finite State Machine Lab

Project 3: RPN Calculator

ONE AVR D EVELOPMENT SECTION I NTRODUCTION TO NTRODUCTION TO AVR EVELOPMENT TOOLS. Section One: Introduction to AVR Development Tools

BV4626 General Purpose I/O. Product specification. Mar 2010 V0.a. ByVac Page 1 of 13

538 Lecture Notes Week 5

Laboratory 10. Programming a PIC Microcontroller - Part II

Assembly Instructions CT-E Screen Read Board

REQUIRED MATERIALS Epiphany-DAQ board Wire Jumpers Switch LED Resistors Breadboard Multimeter (if needed)

8051 Microcontroller Interrupts

4. Configuring Cyclone II Devices

Helmsman User Guide v1.5.1

BV4218. I2C-LCD & Keypad. Product specification. December 2008 V0.a. ByVac 2006 ByVac Page 1 of 9

538 Lecture Notes Week 5

Instruction Manual for BE-SP3 Circuit. 10/21/07

UNISONIC TECHNOLOGIES CO., LTD

Arduino - DigitalReadSerial

1. Introduction. 2. Installation INSTALLATION INSTRUCTIONS: MCD USB MODULE

Dec/26/2012 errata_s5u1c17001h2_1. S1C17 Manual errata. Object manuals Document codes Items Pages Target Interface Connector 14

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

ECE 3210 Lab 4: Calculator

ECE 362 Experiment 3: General Purpose I/O

DIGITAL COMPASS SOLUTION

ECE 270 Lab Verification / Evaluation Form. Experiment 1

Lab #3: Keypad Scanning in C Week of 11 February 2019

melabs Serial LCD Firmware Version 1.1 3/5/07

CSC 258 lab notes, Fall 2003

Adapted from a lab originally written by Simon Hastings and Bill Ashmanskas

EE 231 Fall EE 231 Lab 2

FPGA Interfacing of HD44780 Based LCD Using Delayed Finite State Machine (FSM)

LT900SERIES. 1xN Multi-Channel Switch Operation Manual

A B A+B

Mechatronics and Measurement. Lecturer:Dung-An Wang Lecture 6

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

BV4615. Dual Interface Zero Keypad. Product specification. Dec 2009 V0.a. ByVac Page 1 of 11

Shack Clock kit. U3S Rev 2 PCB 1. Introduction

MIT Nerd Kit. Configurable Application Modules. Switches

Connected Component Workbench

How-To #7: Assemble an H-bridge Circuit Board

PT7M Ultra Low Voltage Detectors

RayStar Microelectronics Technology Inc.

AT45DQ321. Features. 32-Mbit DataFlash (with Extra 1-Mbits), 2.3V Minimum SPI Serial Flash Memory with Dual-I/O and Quad-I/O Support

EE 231 Fall Lab 2: Decoders and Multiplexers. Introduction

MICROPROCESSOR B.Tech. th ECE

ECE383: Microcomputers Lab 6 Basic and Finite State Machine LED and Switch I/O Programming

Adafruit USB Power Gauge Mini-Kit

LDR_Light_Switch5 -- Overview

Section 3 Board Experiments

EE 231 Fall Lab 1: Introduction to Verilog HDL and Altera IDE

Configuring APEX 20K, FLEX 10K & FLEX 6000 Devices

Unified Engineering Fall 2004

GammaTron USB Module

5. Configuring Cyclone FPGAs

School of Computer Science Faculty of Engineering and Computer Science Student ID Number. Lab Cover Page. Lab Date and Time:

EECS 373 Midterm 2 Fall 2018

Physical Computing Self-Quiz

Amarjeet Singh. January 30, 2012

EE251: Thursday November 30

Lab #4: GPIOs in Assembly Language Week of 18 February 2019

Physics 364, Fall 2012, Lab #9 (Introduction to microprocessor programming with the Arduino) Lab for Monday, November 5

Application Note AN232-10

Oct/04/2013 errata_s5u1c17001h1_1. S1C17 Manual errata. Object manuals Document codes Items Pages Target Interface Connector 9

MIFARE Secure OEM Reader Module Data Sheet

Lab 3: Building a Power Supply and a Stereo Amplifier

University of Florida EEL 4744 Fall 1998 Dr. Eric M. Schwartz

K8+ Single Chip Keyer Manual August 13, 1998 Steven T. Elliott - K1EL

USB-BASED 8-CHANNEL DATA ACQUISITION MODULE

Ocean Controls KT-5190 Serial Stepper Motor Controller

High Speed USB Controllers for serial and FIFO applications. Debug Information for FT8U232/245 devices

ECE 375: Computer Organization and Assembly Language Programming

Raspberry-Pi Shield: Binary-Coded-Decimal Clock

MP3 Trigger v2 User Guide

EasyIO FC20 User Reference v1.3. EasyIO FC 20 DDC User Reference V1.3

Manual. Specifications. Contents. Options

Note. The above image and many others are courtesy of - this is a wonderful resource for designing circuits.

PIC KIT 2 BASIC-USERS GUIDE FEMTO ELECTRONICS

Application Note #1438

Issue : 1.1 Date : 19/1/2004. Trigger IO. C-Cam Technologies. a division of. Vector International 1 / 6

Prototyping & Engineering Electronics Kits Basic Kit Guide

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

Greco Systems DU-58. Operation Manual. A division of e-dnc Inc. 303 E Gurley St. #522 Prescott, AZ USA

melabs Serial LCD Firmware Version 1.0 2/7/07

Submit this lab and the extended learning (optional) to TEACH by Monday at 11:59pm. You must get checked off by a TA by the beginning of lab 7.

EMCH 367 Fundamentals of Microcontrollers Example_RPM_1 EXAMPLE RPM_1

4-Megabit 2.7-volt Only Serial DataFlash AT45DB041. Features. Description. Pin Configurations

CSE 141L Computer Architecture Lab Fall Lecture 3

Exam 1. EE319K Spring 2013 Exam 1 (Practice 1) Page 1. Date: February 21, 2013; 9:30-10:45am. Printed Name:

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL

Introduction to MATLABs Data Acquisition Toolbox, the USB DAQ, and accelerometers

ONYX-MM-XT PC/104 Format Counter/Timer & Digital I/O Module

Lab 2: Introduction to Verilog HDL and Quartus

CHAPTER 4 I/O PORT PROGRAMMING

VBattery 7 VCC V DD IRLED IS31SE5001 SDA SCL INTB SDB. Figure 1 Typical Application Circuit

SE-330 SERIES (NEW REVISION) DEVICENET INTERFACE

SPSS Tutorial - How to Perform an Offline License Activation on a Windows Computer

Laboratory 1 Introduction to the Arduino boards

Raspberry Pi Activity 2: My Binary Addiction...Reloaded

Transcription:

10/30/12 Experiment 2 Fall 2012 Experiment 2 Fall 2012 What's My UIN? Go over experiment 1 for a complete explanation of delay loops. You will need to implement delays in experiment 2. Design a system that will output the digits of your UIN in ASCII (i.e. a 7-bit binary number - note that actually only 6 ascii bits are required for decimal numbers since the most significant bit is zero) and in 4-bit binary. Example: for the decimal digit 6 the 10 bit output will be - 0110 110110 (4-bit binary on the left, 6-bit ASCII on the right.) A START DISPLAY signal is required to begin displaying the digits. The output should be blank until the START DISPLAY signal goes LOW. When the START DISPLAY signal goes LOW the digits should display one digit at a time (as above.) After the digits begin being displayed the START DISPLAY signal should be ignored. Each output digit should display for about 1 second. After the last digit is displayed (for one second) the display should go blank and the system should go into an idle state and do nothing. The RESET signal of the NANOCORE12 should be implemented so that the program can be re-started. Design and implement the system with the following specification: I. Input: 1. One line to RESET the system. 2. One line to implement the START DISPLAY key. Use the "push button switch" and 10K "Pull-up" resistors that came with your ECE 367 parts kit to create these input lines. Use PORT M pin PM3 for the START DISPLAY input signal. Use the NANOCORE12 RESET input to implement the system RESET. There must be a PULL-UP resistor from RESET (pin 30) to Vcc. When pin 30 is connected to ground the NANOCORE12 will restart running the code from the Start label location. II. Output: 1. Use the LED BAR GRAPH DISPLAY ( with a 470 Ohm current limiting resistor for each LED bar - use the 470 Ohm resistors from your ECE 367 parts kit) to show the BINARY and ASCII output. Use PORT T bits, and if necessary, Port M bits PM0-1 for the signals to the LED BAR GRAPH www.uic.edu/classes/ece/ece367/experiments/exp2.f l12.html 1/2

10/30/12 Experiment 2 Fall 2012 III. Operation: 1. At power up or RESET pulse (signal that is pulled LOW and then HIGH) the LED's should go blank and wait for the START DISPLAY signal. 2. When the START DISPLAY key goes LOW the UIN digits begin to display in BINARY and ASCII Use "polling" to check for the START DISPLAY key. Assuming START DISPLAY is held HIGH by the pullup resistor (switch open) then the following code slice can check for LOW (switch closed) HERE: BRSET PORTM, $08, HERE ; Branch if PM3 is SET (1) to HERE - i.e repeat this line ; i.e check PM3 again. Hence polling! Assumes PORTM = $250 and the DDRM = $252 code to run when PM3 = LOW ; If we get here PM3 is LOW Your UIN number is "HARD CODED." The UIN number is permanently in the code. The only way to change it will be to re-assemble the code after you change those digits. You MUST use "look-up" tables to store the digits for your UIN. See examples from class. Experiment 2 is due WEEK 4 (9/18) Report: Your lab report must include the following: 1. A cover page with: Experiment Name and number, ECE 367 Spring 2012, Your name, Your UIN, the date submitted, and your TA's name. 2. Your assembler code with your name, course, date, experiment number, program explanation and comments for every line of code. The program explanation should include the NanoCore12 pin assignments and an explanation of the organization of the data table. 3. A logic diagram of the circuit 4. An electric circuit diagram of the complete system 5. A user manual to explain how to use the system. 6. Conclusions: Does your circuit meet the specifications and function properly? What problems did you encounter during the coding or construction of the circuit? How would you do this project differently? What extra features or functionality could you have included? What did you learn from working on this project? Last modified: Mon Sep 10 10:00:44 2012 www.uic.edu/classes/ece/ece367/experiments/exp2.f l12.html 2/2

ECE 367: Experiment 2 Project: What s My UIN Semester: Fall 2012 Name: Kai Zhao UIN: 670720413 Due Date: 2012 Sept 18 Lab Section: T11 TA: Chenjie Tang

User Manual: To determine what is my UIN, first supply power by USB and press the reset button on the left of the bar graph. Press the start button on the right of the bar graph when ready. To restart, press the reset button and then the start button. Conclusion: Yes, my circuit meets the specifications and function properly. I had trouble figuring out how to poll for the start button. I tried setting the direction of port M to input before polling. However, use the BRSET op-code did not seem to work unless it is the first line of code after the setup code. I would not do this project differently. I could have included an optional one button start switch, as opposed to having to use reset and start button. Therefore, the user will be able to start the program with 1 click or 2 clicks, whatever the user prefers. I learned about program layouts, port memory locations, polling, loop-up tables, push-switches, and 7-segment LED displays.