E40M Useless Box, Boolean Logic. M. Horowitz, J. Plummer, R. Howe 1

Similar documents
E40M Useless Box, Boolean Logic. M. Horowitz, J. Plummer, R. Howe 1

E40M. Binary Numbers, Codes. M. Horowitz, J. Plummer, R. Howe 1

E40M. Solving Circuits using Nodal Analysis and EveryCircuit TM. M. Horowitz, J. Plummer, R. Howe 1

How Do We Figure Out the Voltages and Currents?

E40M. Solving Circuits using Nodal Analysis, Part II and EveryCircuit TM. M. Horowitz, J. Plummer, R. Howe 1

E40M. An Introduction to Making: What is EE?

E40M. MOS Transistors, CMOS Logic Circuits, and Cheap, Powerful Computers. M. Horowitz, J. Plummer, R. Howe 1

M. Horowitz E40M Lecture 13

COMP combinational logic 1 Jan. 18, 2016

Finite State Machine Lab

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

Lecture 12. Building an LED Display

If I wanted to connect an LED and little light bulb and have them switch on and off with one switch, my schematic would look like the one below.

E40M LEDs, Time Multiplexing. M. Horowitz, J. Plummer, R. Howe 1

E40M LEDs, Time Multiplexing. M. Horowitz, J. Plummer, R. Howe 1

Combinational Circuits Digital Logic (Materials taken primarily from:

LAB #1 BASIC DIGITAL CIRCUIT

CSC 101: Lab #5 Prelab Boolean Logic Practice Due Date: 5:00pm, day after lab session

COS 116 The Computational Universe Laboratory 7: Digital Logic I

Lecture #21 March 31, 2004 Introduction to Gates and Circuits

Final Project. Project Idea. Sample Project Idea 2/11/2019. CS 362: Computer Design Lecture 7: DeMorgan s, XOR, Universal Gates

CS61C : Machine Structures

CS 61C: Great Ideas in Computer Architecture Introduction to Hardware: Representations and State

Computer Organization and Levels of Abstraction

Experiment 4.A. Speed and Position Control. ECEN 2270 Electronics Design Laboratory 1

Digital Systems. Jinkyu Jeong Computer Systems Laboratory Sungkyunkwan University

Electronic Engineering Part 1 Laboratory Experiment. Digital Circuit Design 1 Combinational Logic. (3 hours)

EECS 183. Week 3 - Diana Gage. www-personal.umich.edu/ ~drgage

Designing Information Devices and Systems II Spring 2018 J. Roychowdhury and M. Maharbiz Discussion 1A

ECE 2010 Laboratory # 2 J.P.O Rourke

Designing Information Devices and Systems II Fall 2017 Miki Lustig and Michel Maharbiz Discussion 1B

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

ECE 2300 Digital Logic & Computer Organization. More Sequential Logic Verilog

9/10/2016. The Dual Form Swaps 0/1 and AND/OR. ECE 120: Introduction to Computing. Every Boolean Expression Has a Dual Form

Overview. Multiplexor. cs281: Introduction to Computer Systems Lab02 Basic Combinational Circuits: The Mux and the Adder

COS 116 The Computational Universe Laboratory 8: Digital Logic II

Motivating Example. Lecture 10: How does a computer act so logically? Simple Example: Boolean Variables

ECE3663 Design Project: Design Review #1

Logic Gates and Boolean Algebra ENT263

Project 17 Shift Register 8-Bit Binary Counter

PART 1. Simplification Using Boolean Algebra

WELCOME TO. ENGR 303 Introduction to Logic Design. Hello my name is Dr. Chuck Brown

Boolean Algebra & Digital Logic

3. Implementing Logic in CMOS

1/Build a Mintronics: MintDuino

HW #5: Digital Logic and Flip Flops

211: Computer Architecture Summer 2016

Music. Numbers correspond to course weeks EULA ESE150 Spring click OK Based on slides DeHon 1. !

Arithmetic-logic units

ENGR 40M Project 4b: Displaying ECG waveforms. Lab is due Monday June 4, 11:59pm

what is an algorithm? analysis of algorithms classic algorithm example: search

Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

Dynamic CMOS Logic Gate

CS2630: Computer Organization Homework 3 Combinational logic and Logisim Due October 14, 2016, 11:59pm

Recitation Session 6

From Boolean Algebra to Smart Glass

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

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

Memristive stateful logic

Date Performed: Marks Obtained: /10. Group Members (ID):. Experiment # 04. Boolean Expression Simplification and Implementation

Module 3B: Arduino as Power Supply

NAME EET 2259 Lab 3 The Boolean Data Type

Copyright 2011 R.S.R. Electronics, Inc. All rights reserved. 04/11. Ver. 1.0web

Lecture (05) Boolean Algebra and Logic Gates

Computer Organization and Levels of Abstraction

LECTURE 4. Logic Design

What s a Tri-state Buffer?

Self-reproducing programs. And Introduction to logic. COS 116: 3/6/2008 Sanjeev Arora

Finite State Machines (FSMs) and RAMs and CPUs. COS 116, Spring 2011 Sanjeev Arora

A B A+B

USB PowerControl 0042-USBPC-DSBT / USBPCNE-DSBT

Electronics & Control

6. Combinational Circuits. Building Blocks. Digital Circuits. Wires. Q. What is a digital system? A. Digital: signals are 0 or 1.

Chapter 2: Universal Building Blocks. CS105: Great Insights in Computer Science

Logic and Computer Design Fundamentals. Chapter 2 Combinational Logic Circuits. Part 3 Additional Gates and Circuits

LAB #3: ADDERS and COMPARATORS using 3 types of Verilog Modeling

VLSI Test Technology and Reliability (ET4076)

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

Combinational Circuits

1 /8_ 2 /12 3 /12 4 /25 5 /12 6 /15 7 /16

Digital Systems Design with PLDs and FPGAs Kuruvilla Varghese Department of Electronic Systems Engineering Indian Institute of Science Bangalore

Lecture 10: Floating Point, Digital Design

How Computers Work. Processor and Main Memory. Roger Young

ECE 270 Lab Verification / Evaluation Form. Experiment 1

Department of Electrical Engineering McGill University ECSE 221 Introduction to Computer Engineering Assignment 2 Combinational Logic

Basic circuit analysis and design. Circuit analysis. Write algebraic expressions or make a truth table

An OR Operation. Or (O) Function I0.4 Q0.1 I0.5 I0.5 I0.4 Q0.1. Input 3. Input 4. Output 2

Wiring Inside the card reader you will see a circuit board. The connections are as follows:

Propositional Calculus. Math Foundations of Computer Science

Which LED(s) turn on?

Engin 100 (section 250), Winter 2015, Technical Lecture 3 Page 1 of 5. Use pencil!

Sense Amplifiers 6 T Cell. M PC is the precharge transistor whose purpose is to force the latch to operate at the unstable point.

Digital Fundamentals. Integrated Circuit Technologies

Digital Circuits 1: Binary, Boolean, and Logic

The Building Blocks: Binary Numbers, Boolean Logic, and Gates. Purpose of Chapter. External Representation of Information.

Synthesis of combinational logic

PC170 Control Box USER MANUAL 24V DC GEAR MOTOR FOR RESIDENTIAL

I 3 I 2. ! Language of logic design " Logic optimization, state, timing, CAD tools

Name: Nouketcha Franklin Lab partner: Chika Nna

First published October, Online Edition available at For reprints, please contact us at

Transcription:

E40M Useless Box, Boolean Logic M. Horowitz, J. Plummer, R. Howe 1

Useless Box Lab Project #2a Motor Battery pack Two switches The one you switch A limit switch The first version of the box you will build (Lab 2a) uses mechanical switches to determine the state of the box e.g. https://www.youtube.com/watch? v=aqaumge3wym M. Horowitz, J. Plummer, R. Howe 2

Useless Box Lab Project #2b Concepts Finite State Machines Digital Logic Binary numbers MOS Transistors CMOS Gates Adding a computer (Arduino) (Lab 2b) makes the box much more interesting e.g. https://www.youtube.com/watch?v=- PqcCjFaf3I M. Horowitz, J. Plummer, R. Howe 3

Useless Box Lab Project #2 The concepts we ll discuss will help you to understand how modern digital systems work. M. Horowitz, J. Plummer, R. Howe 4

Readings For This Material Chapter 4 in the reader up to MOS transistors For more details A&L 5.1 Digital Signals (goes in much more detail than we need) M. Horowitz, J. Plummer, R. Howe 5

Useless Box Operation The simple version of the Useless Box uses switches, batteries and a motor. DPDT Switch Momentary Switch As discussed in last Friday s lecture, in order to figure out how to wire these components together, we can use an action diagram to illustrate what we want the box to do. Last Friday s Prelab lecture also introduced how we actually wire the components in a circuit. M. Horowitz, J. Plummer, R. Howe 6

EveryCircuit Implementation of Useless Box 2a EveryCircuit can be used to test your circuit design and see what your circuit actually does. EveryCircuit doesn t have DPDT or momentary switch components so you will need to use SPDT switches and manually switch them. SPDT Switch SPDT Switch Toggle Switch Limit Switch M. Horowitz, J. Plummer, R. Howe 7

Action Diagram - Finite State Machine The motor in the box can be in three different states Forward, Stop, Reverse. How does it know when to change state? M. Horowitz, J. Plummer, R. Howe 8

Useless Box Operation Boolean Logic The motor could be in one of three states: Forward, reverse, off State determined by the voltage on the motor terminals State M+ M- Forward 4.5V 0V This voltage is set by the position of two switches: Switch1 On or not on Switch2 Limit or not limit Reverse 0V 4.5V Off 0V (4.5V) 0v (4.5v) M. Horowitz, J. Plummer, R. Howe 9

Boolean Variables The voltages on the wires in this circuit have two values At least two stable values 4.5V and Gnd The switches also seem to have two values (positions) On, off; at limit and not at limit What does this remind you of? A Boolean variable? Boolean Logic is a form of algebra in which all variables are reduced to True and False (1 and 0 in a binary numbering system). M. Horowitz, J. Plummer, R. Howe 10

Electrical Boolean Signal Still is just a voltage on a node And to find the voltage you use nodal analysis Or some short cut But the voltages of the node settle to only two values True (1) is a high value near the supply (4.5V) False (0) is a low value near the reference (Gnd) Each node carries one bit of information Boole s thinking has become the practical foundation of digital circuit design and the theoretical grounding of the digital age. M. Horowitz, J. Plummer, R. Howe 11

Useless Box Operation Think about the situation in logical values State M+ M- State M+ M- Forward true false Forward 4.5V 0V Reverse false true Reverse 0V 4.5V Off false true false true Off 0V (4.5V) 0v (4.5v) These outputs are a function of two switches: OnSwitch True, false LimitSwitch True, false M. Horowitz, J. Plummer, R. Howe 12

Useless Box Program If (SwitchOn){ Motor = Forward; } else { if (Limit){ } else { } Motor:= Stop; Motor = Reverse; Computer programs use Boolean logic M. Horowitz, J. Plummer, R. Howe 13

Useless Box Boolean Expression Operators: (A && B) AND Both have to be true (A B) OR True if either is true!(a) NOT True if A is false What are the Boolean expressions for this Finite State Machine? Forward Reverse M. Horowitz, J. Plummer, R. Howe 14

Digital Logic In most programming languages True = 1; False = 0 So to build a circuit that can represent a bit {0,1} Need something that can drive its output to either: The power supply voltage (which we call Vdd) Or the reference level (which we call ground, or gnd) 1 X 0 In the useless box we built the logic from switches And the first computers used mechanical switches and relays too But that is so yesterday M. Horowitz, J. Plummer, R. Howe 15

Modern Digital Logic - CMOS In the next set of lecture notes you ll learn about CMOS logic gates that perform digital logic operations. Your Arduino has tens of thousands of these gates. CMOS NAND Gate M. Horowitz, J. Plummer, R. Howe 16

Truth Tables & Logic Gates A B AND 0 0 0 0 1 0 1 0 0 1 1 1 A NOT 0 1!(A) NOT 1 0 Logic Gate Symbols (A && B) AND A B OR 0 0 0 0 1 1 1 0 1 1 1 1 (A B) OR M. Horowitz, J. Plummer, R. Howe 17

V dd and Gnd For many circuits The bottom supply is chosen as the reference So it is called Gnd And many devices connect to the same power supply This is often called V dd (or V cc ) We ll see specific examples in the next set of notes when we discuss CMOS transistors and logic gates. M. Horowitz, J. Plummer, R. Howe 18

Symbols For V dd and Ground V dd V dd Gnd M. Horowitz, J. Plummer, R. Howe 19

Learning Objectives Understand how to describe a simple system as a finite state machine How to represent a Boolean signal in an electrical circuit V dd = True; Gnd =False Understand the function of AND, OR, NOT operations M. Horowitz, J. Plummer, R. Howe 20