Digital Logic (Part 1) Prof Kin Hong Wong Department of computer Science and Engineering 香港中文大學 ENGG1100 Introduction to Engineering Design The Chinese University of Hong Kong
ENGG1100 Introduction to Engineering Design Digital Logic (Part 1) Prof. Kin Hong Wong Department of Computer Science and Engineering
ENGG1100|Term2|201415 题香港中文大學 The Chinese University of Hong Kong Overview Part 1: Introduction 1.1 What is digital logic? 1.2 Digital operations(AND, OR, NOT 1.3 Truth table 1.4 Robot hardware 1.5 Software implementation of digital operations Part 2(next week): Hardware/software Implementation 2. 1 Robot system 2.1 Use of If-then-else(software method 1) 2.2 Use of switch case(software method 2) 2.3 Finite state machines V15.02.09 Introduction
ENGG1100 | Term 2 | 2014-15 Overview • Part 1: Introduction • 1.1 What is Digital logic? • 1.2 Digital operations (AND, OR, NOT) • 1.3 Truth table • 1.4 Robot Hardware • 1.5 Software implementation of digital operations • Part 2 (next week): Hardware/software Implementation • 2.1 Robot system • 2.1 Use of If-then-else (software method 1) • 2.2 Use of switch case (software method 2) • 2.3 Finite state machines V15.02.09 Introduction 2
ENGG1100|Term2|201415 题香港中文大學 The Chinese University of Hong Kong Motivations and plans The brain of our robot is a set of digital logic functions We will introduce three techniques in digital logic design Logic formula -Truth table Finite state machine We will use a program in a micro-controller system to implement these techniques V15.02.09 Introduction
ENGG1100 | Term 2 | 2014-15 Motivations and plans • The brain of our robot is a set of digital logic functions • We will introduce three techniques in digital logic design – Logic formula – Truth table – Finite state machine • We will use a program in a micro-controller system to implement these techniques V15.02.09 Introduction 3
ENGG1100|Term2|201415 题香港中文大學 The Chinese University of Hong Kong Exampl e Termina Magnetic sensors How to keep the robot S1 to move forward? Method If the robot deviates to the left, turn right If the robot deviates to Magnetic the right, turn left strip following robot (2013-4) · The above ru| es are logic functions and operations ight following robot (20145) V15.02.09 Introduction
ENGG1100 | Term 2 | 2014-15 Example • How to keep the robot to move forward? Method: – If the robot deviates to the left, turn right – If the robot deviates to the right, turn left • The above rules are logic functions and operations. V15.02.09 Introduction 4 Magnetic sensors S1 S2 Terminal Magnetic strip following robot (2013-4) Light following robot (2014-5)
1. 1 What is digital logic? Understanding the difference between Digital and analog operations V15.02.09 Introduction 5
1.1 What is digital logic? Understanding the difference between Digital and Analog operations V15.02.09 Introduction 5