How to Teach the Sequential Part of Digital Electronics Basis with Project Pedagogy? Thanks to a Self-Working Card Trick Named Cyclic Number!

Similar documents
Lecture 8: Sequential Logic

Advanced Devices. Registers Counters Multiplexers Decoders Adders. CSC258 Lecture Slides Steve Engels, 2006 Slide 1 of 20

Contents Circuits... 1

Registers and Counters

Registers and Counters

Sequential Logic Notes

VeriLab. An introductory lab for using Verilog in digital design (first draft) VeriLab

Objectives. Combinational logics Sequential logics Finite state machine Arithmetic circuits Datapath

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

North Shore Community College

AM AM AM AM PM PM PM

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

Semester III. Subject Name: Digital Electronics. Subject Code: 09CT0301. Diploma Branches in which this subject is offered: Computer Engineering

Department of Electrical and Computer Engineering Mid-Term Examination Winter 2012

Solution to Digital Logic )What is the magnitude comparator? Design a logic circuit for 4 bit magnitude comparator and explain it,

Find the equivalent decimal value for the given value Other number system to decimal ( Sample)

Section 6.8 Synthesis of Sequential Logic Page 1 of 8

R13 SET - 1 '' ''' '' ' '''' Code No: RT21053

Asynchronous (Ripple) Counters

1. Convert the decimal number to binary, octal, and hexadecimal.

Minnesota State College Southeast

Bachelor Level/ First Year/ Second Semester/ Science Full Marks: 60 Computer Science and Information Technology (CSc. 151) Pass Marks: 24

DIGITAL TECHNICS. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

R13. II B. Tech I Semester Regular Examinations, Jan DIGITAL LOGIC DESIGN (Com. to CSE, IT) PART-A

Lecture 12. Amirali Baniasadi

CSE Latches and Flip-flops Dr. Izadi. NOR gate property: A B Z Cross coupled NOR gates: S M S R Q M

EE292: Fundamentals of ECE

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) LATCHES and FLIP-FLOPS

MODULE 3. Combinational & Sequential logic

Dr. Shahram Shirani COE2DI4 Midterm Test #2 Nov 19, 2008

Chapter 11 State Machine Design

Electrical and Telecommunications Engineering Technology_TCET3122/TC520. NEW YORK CITY COLLEGE OF TECHNOLOGY The City University of New York

Chapter 6. Flip-Flops and Simple Flip-Flop Applications

Nirma University Institute of Technology. Electronics and Communication Engineering Department. Course Policy

EECS 270 Midterm 2 Exam Closed book portion Fall 2014

Counter dan Register

SRM UNIVERSITY FACULTY OF ENGINEERING AND TECHNOLOGY SCHOOL OF ELECTRONICS AND ELECTRICAL ENGINEERING DEPARTMENT OF ECE COURSE PLAN

Chapter 4. Logic Design

Flip-Flops and Sequential Circuit Design

EXPERIMENT: 1. Graphic Symbol: OR: The output of OR gate is true when one of the inputs A and B or both the inputs are true.

COMP2611: Computer Organization. Introduction to Digital Logic

Figure 30.1a Timing diagram of the divide by 60 minutes/seconds counter

EEE130 Digital Electronics I Lecture #1_2. Dr. Shahrel A. Suandi

MODEL QUESTIONS WITH ANSWERS THIRD SEMESTER B.TECH DEGREE EXAMINATION DECEMBER CS 203: Switching Theory and Logic Design. Time: 3 Hrs Marks: 100

How to Design a Sequential Counter

Logic Design II (17.342) Spring Lecture Outline

Sequential Digital Design. Laboratory Manual. Experiment #7. Counters

Sequential Logic. Analysis and Synthesis. Joseph Cavahagh Santa Clara University. r & Francis. TaylonSi Francis Group. , Boca.Raton London New York \

Sequential Digital Design. Laboratory Manual. Experiment #3. Flip Flop Storage Elements

Final Exam review: chapter 4 and 5. Supplement 3 and 4

Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 3 Logistics

CHAPTER 4: Logic Circuits

Chapter 1: Switching Algebra Chapter 2: Logical Levels, Timing & Delays. Introduction to latches Chapter 9: Binary Arithmetic

Other Flip-Flops. Lecture 27 1

Logic. Andrew Mark Allen March 4, 2012

CprE 281: Digital Logic

Chapter 2. Digital Circuits

1. a) For the circuit shown in figure 1.1, draw a truth table showing the output Q for all combinations of inputs A, B and C. [4] Figure 1.

ELEN Electronique numérique

CPSC 121: Models of Computation Lab #5: Flip-Flops and Frequency Division

UNIVERSITI TEKNOLOGI MALAYSIA

LESSON PLAN. Sub Code: EE2255 Sub Name: DIGITAL LOGIC CIRCUITS Unit: I Branch: EEE Semester: IV

Course Plan. Course Articulation Matrix: Mapping of Course Outcomes (COs) with Program Outcomes (POs) PSO-1 PSO-2

problem maximum score 1 28pts 2 10pts 3 10pts 4 15pts 5 14pts 6 12pts 7 11pts total 100pts

DEPARTMENT OF ELECTRICAL &ELECTRONICS ENGINEERING DIGITAL DESIGN

St. MARTIN S ENGINEERING COLLEGE

CPSC 121: Models of Computation Lab #5: Flip-Flops and Frequency Division

Logic and Computer Design Fundamentals. Chapter 7. Registers and Counters

CPS311 Lecture: Sequential Circuits

Microprocessor Design

Sequential circuits. Same input can produce different output. Logic circuit. William Sandqvist

RS flip-flop using NOR gate

CHAPTER 4: Logic Circuits

Department of CSIT. Class: B.SC Semester: II Year: 2013 Paper Title: Introduction to logics of Computer Max Marks: 30

ECE 331 Digital System Design

ECE 301 Digital Electronics

MODU LE DAY. Class-A, B, AB and C amplifiers - basic concepts, power, efficiency Basic concepts of Feedback and Oscillation. Day 1

DALHOUSIE UNIVERSITY Department of Electrical & Computer Engineering Digital Circuits - ECED 220. Experiment 4 - Latches and Flip-Flops

IS1500 (not part of IS1200) Logic Design Lab (LD-Lab)

Digital Electronics Course Outline

Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 2 Logistics

COE328 Course Outline. Fall 2007

BCN1043. By Dr. Mritha Ramalingam. Faculty of Computer Systems & Software Engineering

MC9211 Computer Organization

Vignana Bharathi Institute of Technology UNIT 4 DLD

Chapter 9 Counters. Clock Edge Output Q 2 Q 1 Q

Registers & Counters. Logic and Digital System Design - CS 303 Erkay Savaş Sabanci University

Department of Computer Science and Engineering Question Bank- Even Semester:

TIME SCHEDULE. MODULE TOPICS PERIODS 1 Number system & Boolean algebra 17 Test I 1 2 Logic families &Combinational logic

Module -5 Sequential Logic Design

Computer Architecture and Organization

UNIVERSITY OF MASSACHUSSETS LOWELL Department of Electrical & Computer Engineering Course Syllabus for Logic Design Fall 2013

Register Transfer Level in Verilog: Part II

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) COUNTERS

COSC 243. Sequential Logic. COSC 243 (Computer Architecture) Lecture 5 - Sequential Logic 1

DIGITAL SYSTEM DESIGN UNIT I (2 MARKS)

LAB 7. Latches & Flip Flops

RAO PAHALD SINGH GROUP OF INSTITUTIONS BALANA(MOHINDER GARH)123029

CS6201 UNIT I PART-A. Develop or build the following Boolean function with NAND gate F(x,y,z)=(1,2,3,5,7).

Transcription:

International Journal of Educational Technology and Learning Vol. 1, No. 1, pp. 6-10 DOI: 10.20448/2003.11.6.10 How to Teach the Sequential Part of Digital Electronics Basis with Project Pedagogy? Thanks to a Self-Working Card Trick Named Cyclic Number! Pierre SCHOTT 1 1 Art et Recherche NUMérique (ARNUM), Ecole Supérieure d Informatique, d Electronique et d Automatisme (ESIEA), Paris, France Abstract Why use Magic for teaching digital electronics theory and software? Magicians know that, once the surprise has worn off, the audience will seek to understand how the trick works. The aim of every teacher is to interest their students, and a magic trick will lead them to ask how? And why? And how can I create one myself? Whatever the student's professional ambitions, they will be able to see the impact that originality and creativity have when combined with an interest in one's work. The students know how to perform a magic trick for their family and friends, a trick that they will be able to explain and so enjoy a certain amount of success. Sharing a mathematical / informatics demonstration not easy and that they do so means that they will have worked on understood and are capable of explaining this knowledge. Isn't this the aim of all teaching? In this article I present a self-working magic card trick, its global study and how, with a project pedagogy, digital electronics can be teached. I have presented, in a previous article in the same journal, all the notions of combinatory digital electronics. In this article I presented how to introduce the flip-flop gates, synchronous and asynchronous counters designed thanks to transition tables without using clear/reset entries of the gates. In order to visualize the results, seven segment displays with the associated encoders and decoders could be introduce and simulated by an open source software named Logisim. The truth table of each command circuits of the complete cycle can be calculated by Open Office. Keywords: Higher education Engineer Educational method Digital electronics software Combinatory circuits Sequential circuits Project pedagogy Magic Logisim Excel. Licensed: This work is licensed under a Creative Commons Attribution 4.0 License. Publisher: Scientific Publishing Institute 1. Introduction I am fascinated by Magic (or rather conjuring!) and for many years I have used this way of teaching, both in my physics classes and as higher education teacher trainer. I present in this paper firstly all the sequential digital electronics notions I can teach with the cyclic number, secondly the project I took and I have exposed and finally its answer and the sequential notions I have teached with it. The aim of the magician is to hide the principles he uses (using Maths, Physics, Psychology, sleight of hand, etc...) by disguising the trick so that the audience has no way of discovering how it is done thus allowing the Magic to remain. 2. The Teacher can do Exactly the Opposite: Unraveling a Magic Trick to Highlight the Principles Used! 2.1. Summary In a previous paper (Schott, 2016) I presented the way to introduce with this magic trick the following combinational theory and electronics devices: Binary number system and weighted codes; Transcoders : binary <-> weighted code; Logic minimization using Karnaugh map (for example to synthesize these transcoders using the gates AND, OR, NOT); 6

Synthesize comparators thanks to other gates (NOT, NOR) and/or by arithmetic circuits; Seven segment displays with the associated encoders and decoders; Multiplexers and demultiplexers; An open source software named Logisim ; In this paper I presented the way to introduce, with this magic trick, the following sequential theory an electronics devices. We will make students gather information about all these following notions at the time they need to, in order to keep going forward in their project: D-Latch, Flip-Flop Gate; Their truth table and transition table; Synchronous counters and command circuits. 2.2. My Motivations to Propose Such Kind of Course I teached since many years with a descending method the introduction of digital electronics lecture. But the subject of the final work, I gave to the students, was always a peculiar subject such as a music partition, fitness program or the cyclic number card trick. I thought I can build my lecture on this subject with an ascending method like the pedagogy project! I chose the topic of magic, a subject which fascinates me, to be virtually certain that the topic would be completely new for the students. So they are in an unfamiliar situation. They will thus have to implement all the necessary means to complete the project successfully. I also try to arouse the students curiosity by proposing a subject that is more playful than usual. Following these objectives, I propose a self-working magic card trick. The aim of the course/project is to synthetize this card trick with an open source digital electronics simulator. Consequently, the students have to look for, find and understand a new theory of digital electronics and new software: Logisim. Finally, I try to change the traditional way of teaching: a downward method (the professor teaches the student) usually used in France, become an ascending method here (it is the student who will have to explain to the professor). The ascending method has the merit of showing whether the problem posed is well understood. As Boileau wrote Boileau (Boileau, 1740)"An idea well conceived presents itself clearly, and the words to express it come readily" 1 3. Materials and Methods: Using the Self-Working Card Trick Based On the Cyclic Number 142857 (1/7=0.142857) I summarize in this part the magic trick and the main results we have found in the previous part. I think it is essential to remember you the project and how you can teach with a down-top pedagogy. 3.1. The Self-Working Card Trick Effect Prepare a deck of playing cards by removing the nine spades and nine hearts with digit values. Place them on the bottom of the deck so that their order from the bottom up is 1, 4, 2, 8, 5, 7, with the remaining three cards following in any order. Place away the 6 selected hearts as a prediction [ ] A random multiplier from 1 through 6 is now obtained by rolling a die. Better still, hand someone an imaginary die and ask him to roll this invisible die and tell you what he "sees" on top. Multiply 142,857 by the digit he names. Take and then cut the prediction deck (in order to determine where to cut, multiply 7 by the selected digit to get the last digit of the product). (Gardner, 1992). 3.2. The Mathematical Secret The number 142,857, which students of recreational number theory are likely to recognize at once, is one of the most remarkable of integers. Apart from the trivial case of 1, it is the smallest "cyclic number." A cyclic number is an integer of n digits with an unusual property: when multiplied by any number from 1 through n, the product contains the same n digits of the original number in the same cyclic order. Think of 142,857 as being joined end to end in a circular chain. The circle can be broken at six points and the chain can be opened to form six digit numbers, the six cyclic permutations of the original digits: 1 X 142857 = 142857 2 X 142857 = 285714 3 X 142857 = 428571 4 X 142857 = 571428 5 X 142857 = 714285 6 X 142857 = 857142 1 "ce qui se conçoit bien s'énonce clairement, et les mots pour le dire arrivent aisément". 7

The cyclic nature of the six products has long intrigued magicians, and many clever mathematical prediction tricks are based on it (Regnault,1943) (Costa Aliago,1953) (Schott, P. (2016). How to teach the sequential part of digital electronics basis with project pedagogy? Thanks to a self-working card trick named cyclic number! IESJR, Vol. 2, No. 9, September 2016. Simon,1964). Here is one: (Gardner, 1992). To find this kind of number with the same properties, take the prime number, divide it by 1 and if the digit number of the perodic decimal part is equal to the number minus one, then you have found a new cyclic number! Here 1/7=0,142857 142587 3.3. Global Study and How to Cut In Pedagogical Sequences with Ascending Pedagogy The first sequence! Firstly I perform the magic trick and then I propose the students to realize it using digital electronics (with seven segments displays) but the students have to figure it out! Secondly, and it s the aim of this first sequence, consists in breaking up this large problem into smaller bits. It should achieve the anticipated outcome: to find smaller unity problems (but students have to think, they had alone find the solutions) and potentially in the opposite order shown in the normal top-down pedagogical method: Using a cycle (142857) with different connections to achieve the project; Several representations of a single number (coming from a card or the dice) are needed, hence the introduction of binary code and balanced code; How to give rhythm to the cycle? We introduce here flip flops as part of using up-counter and downcounter; I personally don t want to use any of these counters but a very special cycle so I have to synthetize control circuits. So I have to introduce combinatory logic; In order to create these control circuits, we have to make functions, hence the introduction of the SYSTEM s truth tables and the use of Karnaugh maps; But then we need to know some elementary gates to synthetize with gates the results of the Karnaugh maps approach. At the end, I have to display the numbers in order to perform the magic show. That s why, we have to study the seven segment displays with the associated encoders and decoders! But we have 13 displays and we have to select one of them thus the MUX and DEMUX circuits must be used. So, all of the needed notions are found and the next step can be reached. Each week, the students have to find the theoretical notions for each single problem then find a solution and finally implement it. The teacher work consists only to be sure that the theoretical found notions by the students are right and that the students have well understood them! If necessary, the teacher can (must) expose and explain the notions with the found informations; that s very important that the teacher use ONLY the found notions... the figure Error! Reference source not found. shows the complete digital circuit for the 142857 magic trick. Figure-1. The complete 142857 digital electronics circuit. 3.4. Project Representation by States The representation of the project is shown on this figure Figure-: 8

Figure-2. Complete cycle in decimal basis (left) and in weighted code 1-4- 2-1 of the cyclic used number 142857. 3.5. Conclusion of the Study We have to synthetize 4 macros circuits: a transcoder binary -> weighted code; a transcoder weighted code -> the display; a multiplexer to select a 7 segment displays; a synchronous or asynchronous counter with many command circuits before the each flip-flop gate of the counter. Only the last macro circuit has not yet been explained! 4. Results In order to synthetize all kind of counter, first of all, you have to define the counter s structure: synchronous or asynchronous counters, flip-flop or D-latch gates, aso. The find the transition table is necessary to synthetize the command circuits of each sequential gates. At the end, testing the final circuit is strength recommended! 4.1. The Number of the Flip-Flop Gates We actually count how many states we have. Here we have 12 states and the aim is to find n so 2 n-1 < 12 2 n. Thus n=4 and it s the number of flip-flop gates that we needed for a synchronous or asynchronous counter. 4.2. The Used Structure of This Counter To move from one element of the cycle to the next one, the inputs of the sequential gates must be changed. In fact a NEW logic states (1 or 0) of the flipflops outputs can be reach on each rising edge (or falling edge) of the global clock. The circuits which calculate the new inputs of the sequential gates depending to the past element of the cycle are named: control circuit (CCJiKi). The goal is to synthesize these circuits. It is the classic case of a combinatorial system synthesis, as seen before BUT the inputs are the binary word which describes one state of the cycle and the outputs are the inputs of the sequential gates. The global structure of the circuit is shown on figure Error! Reference source not found.. Figure-3. The global structure of the counter for the 142857 electronics circuit. The Main Important To Synthesize a Counter : The Transition Table In order to synthesize the CCJiKi you have to know the transition table. It is construct by using the laws of the JK flip-flop written as follows: If the output is equal to 0 and after the clockrise the output must be equal to 0, then J=0 and K=x; If the output is equal to 1 and after the clockrise the output must be equal to 0, then J=x and K=1; If the output is equal to 0 and after the clockrise the output must be equal to 1, then J=1 and K=x; If the output is equal to 1 and after the clock rise the output must be equal to 1, then J=x and K=0. 9

I develop an Excel sheet in order to automatically find the system transition table. The only thing you have to do is to complete the binary words before and the binary word after the clock rise. The result for the 142857 application is shown on figure Error! Reference source not found.. Figure-4. The transition table of the counter for the 142857 electronics circuit calculated by Excel. Thanks to Karnaugh s table, the CCJiKi can be easily synthetized. Two differents set of circuits can be found: the first set is obtained when the transition of unused binary words is not defined (i.e. the Ji=Ki=x); the second set is obtained when the transition of unused binary goes to the beginning of the cycle (i.e. the 1 state). 5. Discussion It s easily understandable to teach Math or Optics Illusion with magic. In this paper, I have proposed to teach sequential part of the digital electronic using Magic and the experience shows that it works quiet good! I think that it seems easy to tech as explained but if you have never used the down-top pedagogy, you have: to give a reading packet which the students must fill up. At the end, they will have a whole project report! to write on your preparation paper all of the needed notions you have to introduce. to have a notebook in which you put down all the interactions you have with each (group of) student(s). In order to begin a such pedagogy, you can introduce a part of you course with this pedagogy the first year; the second year, you can teach the half program and the so on. 6. Acknowledgments This paper could not have been written without the encouragements of Bernard SCHOTT, my father, the invaluable help of Anne SERRIE, my mother, Claire LEROUX, the head of ARNUM. References Boileau, N. (1740). La scolastique. Souchay, Paris. Costa Aliago. (1953). The cyclic number 142857. Scripta Mathematica, 19: 181-184. Gardner, M. (1992). Mathematical Circus. The mathematical association of America, Washington, DC 1992, pp 111-114 Regnault, D. (1943) Les Calculateurs Prodiges. Payot, Paris, pp336-43. Schott, P. (2016). How to teach the sequential part of digital electronics basis with project pedagogy? Thanks to a selfworking card trick named cyclic number! IESJR, Vol. 2, No. 9, September 2016. Simon, W. (1964). A slate prediction trick based on 142,857. Mathematical magic, Scribner s,pp31-35 10