ECE 265 – LECTURE 17 Simulator Project 8/7/2015 1 ECE265.

Slides:



Advertisements
Similar presentations
EMS1EP Lecture 6 Digital Inputs
Advertisements

EMS1EP Lecture 4 Intro to Programming Dr. Robert Ross.
The 8051 Microcontroller and Embedded Systems
1 Homework Reading –Intel 8254 Programmable Interval Timer (PIT) Data Sheet Machine Projects –Continue on MP3 Labs –Continue in labs with your assigned.
MCS-Connect Intro to Connect Connection and Setup Display Menus Graphics Uses in troubleshooting Overview.
Over-view of Lab. 1 For more details – see the Lab. 1 web-site There will be a 20 min prelab quiz (based on Assignment 1 and 2) at the start of the lab.
LOGIC DESIGN AND CIRCUITS SEVEN SEGMENT LED DISPLAY Res. Assist. Hale İnan 1.
Lab. 2 – More details – Tasks 4 to 6 1. What concepts are you expected to understand after the Lab. 2 is finished? 2. How do you demonstrate that you have.
Counter Circuits and VHDL State Machines
TK 2633 Microprocessor & Interfacing
RIPPLE COUNTERS A register that goes through a prescribed sequence of states upon the application of input pulses is called a counter. The input pulses.
Over-view of Lab. 1 For more details – see the Lab. 1 web-site There will be a 20 min prelab quiz (based on Assignment 1 and 2) at the start of the lab.
TK 2633 Microprocessor & Interfacing Lecture 3: Introduction to 8085 Assembly Language Programming (2) 1 Prepared By: Associate Prof. Dr Masri Ayob.
Room: E-3-31 Phone: Dr Masri Ayob TK 2633 Microprocessor & Interfacing Lecture 1: Introduction to 8085 Assembly Language.
1 Introduction to Coding. 2 Example Codes A lot of example codes are given with Arduino IDE A code can often be based on a previous example rather than.
Capacitance Sensor Project
Lecture 6: PLC: Timers and Counters
Alarm Clock Robert Stuart. 1.Keep track of time. 2.When the time matches a stored value an alarm should go off. 3.Functionality that allows for the user.
Block Diagram of 4518 Dual BCD Counter The 4518 Dual BCD Counter has two BCD counters. Each counter is similar to the other. Each counter has a master.
Statement of Purpose: To program an incremental counter using the PSoC Designer 5.0, Imagecraft, the programming language C, the PSoCEval USB CY3214 circuit.
The M68HC11 Basic Instruction Set Basic Arithmetic Instructions
Writing an Embedded Controller. It usually consists of two parts – Initialization – A main loop More challenging than HW3 because HW3 is stateless, the.
Tutorial 2: Introduction to ISE 14.6 (revised by khw)
LoboTime Manager Terminal Job Aid The purpose of this job aid is to provide managers an overview of the swipe terminal for the LoboTime system.
JavaScript Events and Event Handlers 1 An event is an action that occurs within a Web browser or Web document. An event handler is a statement that tells.
Programmable Logic Controllers
SAP1 (Simple-As-Possible) Computer
Lecture 9. - Synchronous Devices require a timing signal. Clock generated Interval Timer Microprocessor Interval Timer Clk PCLK = MHz PCLK (for.
ABCDNumber = Off 1 = On Binary Coded Decimal (BCD)
Input/Output Ports and Interfacing
Computer Architecture Lecture 13 – part 2 by Engineer A. Lecturer Aymen Hasan AlAwady 7/4/2014 University of Kufa - Information Technology Research and.
11/10/2015 Iphone APP for VIPA PLC‘s Using the application mobile automation monitor, "mobileAM" available in the iPhone App Store, you can access VIPA.
Forging new generations of engineers
Khaled A. Al-Utaibi  The Push Button  Interfacing Push Buttons to Arduino  Programming Digital Inputs  Working with “Bouncy”
Chapter 8.
Computer & Electronics Engineering. Objectives Understand Digital Logic Gates Construct & Simulate Digital Logic Circuits on the Computer.
Problem 1 Choose title 1 st XML 2 nd electronic spider 3 rd infrared remote home control Waste time.
The George Washington University Department of ECE ECE 1010 Intro: Electrical & Computer Engineering –Introducing KIPR Link/Interface and Set-up –Continuation.
Microcontroller I Seth Price Department of Chemical Engineering New Mexico Tech Rev. 9/22/14.
Prof Jess 2008 DIGITAL IC COUNTERS Lecture 7.
Computer Architecture Lecture 12 by Engineer A. Lecturer Aymen Hasan AlAwady 17/3/2014 University of Kufa - Information Technology Research and Development.
Codes by Dr. Amin Danial Asham. References  Programmable Controllers- Theory and Implementation, 2nd Edition, L.A. Bryan and E.A. Bryan.
Reaction Timer Project
PIC Discussion By: Eng. Tamar Jomaa.
Simulating Probabilistic Behaviour
HW4. A TV controller Let’s use this lecture to start to develop a simple TV controller together.
Keyboard interfacing.
Counter Circuits and VHDL State Machines
ECE Lecture 1 1 L15 –I/O Part II Department of Electrical and Computer Engineering The Ohio State University ECE 2560.
Digital System Design using VHDL
BCD S EVEN SEGMENT D ECODER. I NTRODUCTION  A Decoder IC, is a device which converts one digital format into another and the most commonly used device.
Department of Electronic & Electrical Engineering Program design. USE CASES. Flow charts. Decisions. Program state.
Teaching Digital Logic courses with Altera Technology
EE/CS-352: Embedded Microcontroller Systems Part V The 8051 Assembly Language Interrupts.
Lecture 3 CSE 341 – Microprocessors Lecture 3 Md. Omar Faruqe UB 1228
ECE 3450 M. A. Jupina, VU, 2016 Capacitance Sensor Project Goal: Creation of a digital capacitance sensor circuit where a variation in capacitance changes.
Embedded Programming and Robotics Lesson 11 Arduino Interrupts 1.
Department of Electronic & Electrical Engineering Lecture 4. ➢ Loops ➢ Delays ➢ Conditional instructions ➢ Simple clock example.
Arduino “Getting Started” Instructor : Dr Matthew Miss Khin Yi Kyaw
All Freezer Advance. When the Freezer is first supplied with power or if a power outage occurs, the display will indicate this by flashing the temperature.
Homework Reading Machine Projects Labs
Logic Gates Practical Objective: to develop an understanding of logic circuits and truth tables.
Week 10, Finite State Machine
MIPS interrupt continued
Lecture 4. Introduction to the DE2 Board
Decisions in assembler code
HW4.
Counter Fundamentals Presented by :
The Simulator project.
Presentation transcript:

ECE 265 – LECTURE 17 Simulator Project 8/7/ ECE265

Simulator Project  Overview of the project  Some specific items to note 8/7/ ECE265

Step 1 of the project – the setup  Start up THRSIM  Open a new code window  You will have a 2 digit 7 segment display to display the A register  You also need a switch. Connect it to pin PC0.  Connect a 2 nd switch to PC1. 8/7/2015ECE265 3

Step 2  Write code that does the following  The switch on PC0 is the count ON/OFF switch. When it is OFF the counter does not run. When it is ON, the counter runs. (ON = 1)  The switch on PC1 is the count up/count down switch When it is OFF, the counter counts up. When it is ON, the counter counts down (ON = 1)  The byte display of the A accumulator shows the count. The display be in decimal, so count in BCD. 8/7/2015ECE265 4

BCD adjustment  When counting up – what adjustment is needed in BCD?  Currently at $19 – do an INCA – what do you get?  Get a $1A but want $20  When counting down – what adjustment is needed in BCD?  Currently at $20 – do an DECA – what do you get?  Get $1F but want $19.  Do a DAA and get $25  How to solve?  Must look at each digit of the two independently. 8/7/2015ECE265 5

Incorporate your delay subroutine  You wrote a routine to introduce delay  Incorporate that routine that the counts occur at approximately 1 second intervals 8/7/2015ECE265 6

Sim Proj 2 – extra credit  Modify your code from Sim Proj 1 to add the following  Add a second 2 digit 7 segment display, this time to port B.  Use it and the display from the A accumulator to display time in a 12 hour format.  To stay in the 12 hour format the minutes (A accumulator) will count to 59 and then roll over to 00, incrementing the hour.  The run button will be modified to a set function. When pressed the hours or minutes will be adjusted.  The up/down button will be used to select minutes or hours to set.  When running you will only increment the minutes digit every minute in a real application. For this assignment and to allow testing have it change every 3 to 4 seconds. You can do this by writing a new subroutine for this delay that calls the previous delay routine a number of times. 8/7/2015ECE265 7