Dr. Hoganson CSIS 4381 Input from Port D In this project, we will use port D as input and port A as output, by connecting three input bits of port D to.

Slides:



Advertisements
Similar presentations
Computer Engineering II
Advertisements

Lab7: Introduction to Arduino
EXTERNAL COMMUNICATIONS DESIGNING AN EXTERNAL 3 BYTE INTERFACE Mark Neil - Microprocessor Course 1 External Memory & I/O.
TK2633 Introduction to Parallel Data Interfacing DR MASRI AYOB.
 | bit OR & bit AND ~ bit NOT ^ bit EXLUSIVE OR (XOR) > bit RIGHT SHIFT.
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.
2’s Complement 4-Bit Saturator
Many students find it difficult understanding the concept of Object Oriented Programming (OOP) Lack of exciting labs leads to a loss of interest Created.
Getting the O in I/O to work on a typical microcontroller Ideas of how to send output signals to the radio controlled car. The theory behind the LED controller.
Getting the O in I/O to work on a typical microcontroller Activating a FLASH memory “output line” Part 1 Main part of Laboratory 1 Also needed for “voice.
Arduino. Arduino is a tool for making computers that can sense and control more of the physical world than your desktop computer. It's an open-source.
Arithmetic-Logic Units (ALUs). The four-bit adder The basic four-bit adder always computes S = A + B + CI But by changing what goes into the adder inputs.
EEE305 Microcontroller Systems Lecture 5B: Simple I/O Embedded C using PIC microcontrollers Teaching resources on on
Dr. Hoganson CSIS HC11 Demo Program This is our first lab using the 68HC11 microcontroller. We will “talk” to the microcontroller from a PC, run.
In a not gate, if the input is on(1) the output is off (0) and vice versa.
Lab 04 :Serial Data Control Systems : Slide 2 Slide 3 Slide 4 NOR Gate: NAND Gate: NOR / NAND Alternate Symbols: Slide 5 XOR and XNOR Gate: Serial Data.
Introduction to FPGA Design Illustrating the FPGA design process using Quartus II design software and the Cyclone II FPGA Starter Board. Physics 536 –
Introduction to Digital Design Lab Project
PIC microcontrollers. PIC microcontrollers come in a wide range of packages from small chips with only 8 pins and 512 words of memory all the way up to.
Calculator Lab Overview Note: Slides Updated 10/8/12
Dr. Hoganson CSIS Segment Display and Count by 16 This is our third lab using the 68HC11 microcontroller. We will write a program that counts by.
1 Applied Control Systems Technology. 2 Pin configuration Applied Control Systems.
4.1 Conversion of English Sentences to Boolean Equations
Binary Addition CSC 103 September 17, 2007.
CSIS CSIS Input AND from Transistors Illustrates basic use of IDL-800 Illustrates construction of gates Illustrates the “transistor bleed-through”
Introduction Verilog is a HARDWARE DESCRIPTION LANGUAGE (HDL) A hardware description language is a language or means used to describe or model a digital.
Advanced Digital Circuits ECET 146 Week 5 Professor Iskandar Hack ET 221B,
CS 8421 Computing Systems, Dr. Hoganson Copyright © 2004, 2006 Dr. Ken Hoganson CS Class Will Start Momentarily… CS8421 Computing Systems.
Exclusive OR Gate. Logically, the exclusive OR (XOR) operation can be seen as either of the following operations:exclusive OR (XOR) 1. A AND NOT B OR.
Bits, Data types, and Operations: Chapter 2 COMP 2610 Dr. James Money COMP
Lab 2 : Overview Combinational System.
Logic Gates. The Inverter The inverter (NOT circuit) performs the operation called inversion or complementation. Standard logic symbols: 1 1 input output.
Lab. 1 – Required Tasks. For more details – see the Lab. 1 web-site.
Karnaugh Maps Ellen Spertus MCS 111 September 2, 2003.
1 COMP541 Combinational Logic - 3 Montek Singh Jan 23, 2012.
Introduction to Testing CSIS 1595: Fundamentals of Programming and Problem Solving 1.
Dr. Hoganson CSIS 4381 Finite State Recognizer In this project, we will use the MicroStamp to function as a Finite State Recognizer (FSR). A FSR is a type.
Lecture 24: 12/3/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
Teaching Digital Logic courses with Altera Technology
Lab. 1 – GPIO Pin control Using information ENEL353 and ENCM369 text books combined with Blackfin DATA manual.
AND Gate Inputs Output Input A (Switch) Input B (Switch) Output Y (Lamp) 0 (Open) 0 (OFF) A B Lamp.
CISSP Common Body of Knowledge Review by Alfred Ouyang is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
Logic Gates Chapter 5 Subject: Digital System Year: 2009.
Introduction to the DE0 Board Prof. Taeweon Suh Computer Science & Engineering Korea University COSE221, COMP211 Computer Logic Design.
Programming PIC 16F84A in Assembly. PIC16F84 pin-out and required external components.
Arduino “Getting Started” Instructor : Dr Matthew Miss Khin Yi Kyaw
Programming and Debugging with the Dragon and JTAG Many thanks to Dr. James Hawthorne for evaluating the Dragon system and providing the core content for.
Digital Logic Design Ch1-1. Digital Logic Design Ch1-2 Introduction to digital logic (logic gates, flip-flops, circuits) Definition of Digital Logic 
Parallel Input/Output
ECE 3430 – Intro to Microcomputer Systems
Fundamentals of Computer Engineering
The Electronic Die Using the PICAXE 08
Lab 2 : Overview Combinational System.
Logic Gates.
Lab02 :Logic Gate Fundamentals:
COMP211 Computer Logic Design Introduction to the DE2 Board
LAB #1 Introduction Combinational Logic Design
Overview Register Transfer Language Register Transfer
Microcontrollers and Microprocessors
Logic Gates Practical Objective: to develop an understanding of logic circuits and truth tables.
REGISTER TRANSFER LANGUAGE
Computer Organization and Design
CS-401 Computer Architecture & Assembly Language Programming
CS 206D Computer Organization
Lab. 1 – GPIO Pin control Using information ENEL353 and ENCM369 text books combined with Blackfin DATA manual.
Lab 1. Introduction to the DE2 Board
Lecture 4. Introduction to the DE2 Board
Basic Logic Operations
Chapter5: Synchronous Sequential Logic – Part 3
Logic Gates and Memory.
Presentation transcript:

Dr. Hoganson CSIS 4381 Input from Port D In this project, we will use port D as input and port A as output, by connecting three input bits of port D to logic switches, and connecting three output bits of port A to LEDs. Your assignment will be to extend the program we worked on in the last lab. Port_a bits 4,5,6 for output, will be wired to LEDs (as before). Port_d bits 2,3,4 for input, will be wired to three of the 0-1 logic switches on the IDL-800.

Dr. Hoganson CSIS 4381 MicroStamp Pin Functions Note: Port D bits 0 & 1 are used by the serial cable to download our programs. Do not use.

Dr. Hoganson CSIS 4381 Exclusive OR A useful function for complementing bits is the Exclusive-OR operation, often abbreviated as XOR. Our assembly language has EORA and EORB XOR The XOR puts in 1 in the output if either inputs are 1, BUT NOT BOTH!

Dr. Hoganson CSIS 4381 Complementing with XOR XOR can be used to complement bits: Say we want to complement bit 2, but we don’t know (and don’t care) what bit two currently is: (bits) 3,2,1,0 Original1101 XOR with Result1001 (bits) 3,2,1,0 changed1001 XOR with Result1101 Only the bit desired is flipped, all other bits, regardless of whether they are 0 or 1, are unchanged.

You may choose to use SW0-2

Dr. Hoganson CSIS 4381 Example: inputtst.asm This is the same example program as before. It is NOT the solution to the last lab!

Dr. Hoganson CSIS 4381 Example cont.

Dr. Hoganson CSIS 4381 Example cont.

Dr. Hoganson CSIS 4381 Your Assignment for Next Monday Lab Preparation: 1.If your program from the last lab, did not work correctly, continue to work with and debug that program using the wookie. In either case, revise your program to use the XOR operation (EORA or EORB). 2.Next, modify your WORKING program, so that the input PD_2 controls PA_4 output determining how fast PA_4 flashes. 0-slow, 1-fast. The other inputs/outputs work to echo the state of the switches without flashing. PD3  PA5 PD4  PA6 3.Test your program on the wookie. 4.Modify your program to work on the 68HC11/Microstamp. Hands-On portion next Monday: 5.Wire your input switches, assembly, download, and test/debug your program from step 4 on the MicroStamp. 6.Demonstrate your working program to your instructor.