Fuzzy Logic Controllers. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff

Size: px
Start display at page:

Download "Fuzzy Logic Controllers. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff"

Transcription

1 Fuzzy Logic Controllers

2 Control System Models the physical system Uses sensor feedback to generate a new system control signal Controller requires accurate mathematical model of system Requires accurate, often complex system of equations These equations are not always readily available /barrett/68hc12/fuzzy_logic.pdf 2

3 Motivation for Fuzzy Logic People do not require precise, numerical information input, and yet they are capable of highly adaptive control. 1 Fuzzy logic deals with reasoning that is approximate rather than fixed and exact Similar to neural networks Proponents claim fuzzy systems are much closer to human control processes Skeptics deride fuzzy logic for lack of mathematical rigor However, fuzzy logic controllers are in heavy use For example, HCS12 has dedicated machine instructions for fuzzy logic! It must have enough demand to warrant this kind of support. 1 Professor Lotfi Zadeh, UC Berkeley,

4 Fuzzy Logic Fuzzy logic is a form of many-valued logic or probabilistic logic Compared to traditional binary variables (true or false) fuzzy logic variables have a truth value that ranges in degree between 0 and 1 Fuzzy logic has the concept of partial truth, where the truth value may range between completely true and completely false Conventional (Boolean) Set Theory Fuzzy Set Theory 38 C 40.1 C 41.4 C 38.7 C 38 C 40.1 C 41.4 C 38.7 C 39.3 C 37.2 C 42 C Strong Fever 39.3 C 37.2 C 42 C Strong Fever 4

5 Fuzzy Logic Controller Overview Rely on if-then rules rather than mathematical equations A simple form of an expert system An expert system has rules to map input signals to output system responses Uses confidence factors to assign a system output From: 5

6 Advantages Advantages and Disadvantages Useful where system equations are difficult to develop Solutions can be developed quickly and intuitively Mimics human control logic Uses imprecise language Other advantages Inherently robust Fails safely Modified and tweaked easily Disadvantages Operator's experience required System complexity 6

7 Example Applications Sendai subway system train controller HVAC controllers Industrial automation for process control Videos Flexible robot control Anti-sway control of a crane Mobile robot control 7

8 Possible Instances to Use Fuzzy Logic When it is difficult to obtain a mathematical model of the process. If fuzzy logic has been previously applied to a similar application with success. If you have some knowledge about the process variables and their interdependencies. If you can easily do experiments to find good values for the fuzzy logic parameters. 8

9 Recall Boolean logic Any Boolean logic function can be implemented as an AND-OR network This network implements three functions of two inputs A control output signal is asserted if its rule (i.e., AND- OR expression) is satisfied From: Designing with Microcontrollers, Tom Almy, 9

10 Fuzzy logic In fuzzy logic we don t use True and False values, but allow a continuum of values from totally false (0) to totally true (1) The inputs and outputs can have multiple levels A process called fuzzification converts the input levels into fuzzy levels A membership function determines the fuzzy levels Example: input voltages less than 1 are totally false and those greater than 4 are totally true; other values have intermediate truth From: Designing with Microcontrollers, Tom Almy, 10

11 Fuzzy logic The result is that all of the output signals may be asserted to some extent! In Boolean logic The output of an AND gate is false if any input is false (i.e., the output is the minimum of the inputs) The output of an OR gate is the maximum of its inputs In fuzzy logic the AND/OR logic network becomes a minimum function followed by a maximum function Instead of the AND logic operation, take the minimum of the inputs fuzzy levels Instead of the OR logic operation, take the maximum of the inputs from the first level 11

12 Fuzzy logic control Steps Map input values to fuzzy input membership values ( fuzzification ) Evaluate rules to generate output membership values Convert output membership values to a digital value ( defuzzification ) /barrett/68hc12/fuzzy_logic.pdf 12

13 Fuzzification Given an input datum, the controller must first assign a degree of membership, a value ranging from zero to one, to each fuzzy membership function /barrett/68hc12/fuzzy_logic.pdf 13

14 Rule evaluation Apply expert rules to input membership functions Rules should cover all possible combinations of the input variables Rules map combinations of inputs to output fuzzy membership functions Rule format: if (antecedent 1) AND (antecedent 2), then (desired response) The minimum degree of membership among the input functions is assigned to the output membership function (this is the confidence factor) 14

15 Rule evaluation (continued) If there are multiple rules that assign an output function, take the maximum of the confidence factors as the degree of the membership for that output fuzzy function. Namely, use the most dominant rule to assign the output membership function. We still need to convert the output membership function values to a form suitable to control system ( defuzzification ). 15

16 Defuzzification Each output membership function has a nominal output value Si To combine them, average the output values of all the functions, but weighted by their fuzzy membership values /barrett/68hc12/fuzzy_logic.pdf 16

17 Example - Fuzzy logic based robot controller Want robot to avoid obstacles Robot has two IR distance sensors (values 0..$FF) Output is the motor command, from 0 (hard left) to $FF (hard right) $80 means go straight 17

18 Development steps Determine linguistic variables describing all inputs to the controller left sensor input: very weak, weak, medium, strong, very strong right sensor input: very weak, weak, medium, strong, very strong Each linguistic variable must be defined with a set of input membership functions For the HC12 a trapezoidal function must be used 18

19 Development steps (continued) Input membership function Specify using: farthest left point, farthest right point, left slope, and right slope Full membership corresponds to $FF very weak $00, $50, $00, $10 weak $40, $70, $10, $10 medium $60, $A0, $10, $10 strong $90, $C0, $10, $10 very strong $B0, $FF, $10, $ very weak weak medium strong very strong

20 Development steps (continued) Determine fuzzy rules that map input to output membership functions Rules are intuitive based on considering all possible input sensor value scenarios Rule format: IF (antecedent 1) AND (antecedent 2), THEN (desired output) 20

21 Development steps (continued) Rules in table form 21

22 Development steps (continued) Output membership function design process Use singleton functions for the fuzzy output membership functions ( singleton : each function is defined by a single value) Medium Left ($40) Small Left ($60) Zero ($80) Small Right ($A0) Medium Right ($C0) (Assumption: $80 keeps robot on straight path) 22

23 Development steps (continued) Define output values of all output fuzzy membership functions The controller will take a weighted average of the values, weighted by their fuzzy membership values Output = Σ (Si Fi) / Σ (Fi) for i = i..n where: Si is the Singleton value Fi is the output membership value for fuzzy logic output function i 23

24 // Define the tables for the input value membership functions. // Specify using: farthest left pt, farthest right pt, left slope, right slope int veryweaktable[] = { 0x00, 0x50, 0x00, 0x10 }; int weaktable[] = { 0x40, 0x70, 0x10, 0x10 }; int mediumtable[] = { 0x60, 0xa0, 0x10, 0x10 }; int strongtable[] = { 0x90, 0xc0, 0x10, 0x10 }; int verystrongtable[] = { 0xb0, 0xff, 0x10, 0x00 }; // Define the values for the output members. #define mediumleft 0x40 // hard left turn #define smallleft 0x60 #define zero 0x80 // go straight #define smallright 0xa0 #define mediumright 0xc0 // hard right trun // Utility functions for min, max. int min(int a, int b) { return (a<b? a : b); } int max(int a, int b) { return (a>b? a : b); } int max(int a, int b, int c, int d) { return max( max(a,b), max(c,d) ); // 4-input max function } int max(int a, int b, int c, int d, int e) { return max( max(a,b,c,d), e ); // 5-input max function } int max(int a, int b, int c, int d, int e, int f) { return max( max(a,b,c,d), max(e,f) ); // 6-input max function } int fuzzification(int x, int table[]) { int x0 = table[0]; // Leftmost point int x1 = table[1]; // Rightmost point int s0 = table[2]; // Left slope int s1 = table[3]; // Right slop int y0 = (x0==0? 255 : 0); int y1 = (x1==255? 255 : 0); if (x < x0 x > x1) return 0; // Value at leftmost point // Value at rightmost point Mobile Robot Example Code C++ This is simple program that directly implements the robot controller. A better version would be able to handle an arbitrary number of variables and rules. See rticles/316668/cplusplus-fuzzy- Logic-API-plus-Simple-DSL, for example } // Estimate value at x. int y = min(y0 + s0*(x-x0), y1 - s1*(x-x1)); y = min(y, 255); // Clip to 255 return (int) y; 24

25 void main(void) { EnableInterrupts; for(;;) { // Some code needed to read left and right sensor values. int leftsensor; int rightsensor; // Perform fuzzification to determine input membership values. int lvw = fuzzification(leftsensor, veryweaktable); int lw = fuzzification(leftsensor, weaktable); int lm = fuzzification(leftsensor, mediumtable); int ls = fuzzification(leftsensor, strongtable); int lvs = fuzzification(leftsensor, verystrongtable); int rvw = fuzzification(rightsensor, veryweaktable); int rw = fuzzification(rightsensor, weaktable); int rm = fuzzification(rightsensor, mediumtable); int rs = fuzzification(rightsensor, strongtable); int rvs = fuzzification(rightsensor, verystrongtable); Mobile Robot Example Code C++ // Perform rule evaluation to determine output membership values. // Each rule is of the form IF (a AND b) OR (c AND d) THEN e int gomediumleft = max( min(lw,rvs), min(lw,rs), min(lvw,rvs), min(lvw,rs) ); int gosmallleft = max( min(ls,rvs), min(lm,rvs), min(lm,rs), min(lw,rm), min(lvw,rm), min(lvw,rw)); int gozero = max( min(lvs,rvs), min(ls,rs), min(lm,rm), min(lw,rw), min(lvw,rvw) ); int gosmallright = max( min(rs,lvs), min(rm,lvs), min(rm,ls), min(rw,lm), min(rvw,lm), min(rvw,lw)); int gomediumright = max( min(rw,lvs), min(rw,ls), min(rvw,lvs), min(rvw,ls) ); // Perform defuzzification to determine a precise output value. // The output is just the weighted sum of the members. int outvalue = (gomediumleft*mediumleft + gosmallleft*smallleft + gozero*zero + gosmallright*smallright + gomediumright*mediumright)/ (gomediumleft + gosmallleft + gozero + gosmallright + gomediumright); } // Some code needed to send the control output to the actuators. } /* loop forever */ 25

26 HCS12 Fuzzy Logic Instructions Four HCS12 instructions: MEM: grade of membership REV: MIN-MAX rule evaluation REVW: MIN-MAX rule evaluation with optional rule weighting WAV: performs weighted average calculations See Section 9 in the CPU12 reference manual Supplementary instructions: ETBL, TBL, EDIV, EDIVS, EMACS, EMAX, EMAXM, EMIND, EMINM, EMUL, EMULS 26

27 Line 1 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Line 2 ;Fuzzy Logic Controller for A Mobile Robot Line 3 ;Description: This program takes in two Infrared Line 4 ;sensor values and computes a di Line 5 ;rection control signal to avoid Line 6 ;wall collisions. The two sensor Line 7 ;values are read from memory Line 8 ;locations $6000 and $6001 and Line 9 ;the control output value is Line 10 ;written to memory location $6002 Line 11 ; Line 12 ; Authors: Daniel Pack and Steve Barrett Line 13 ; Date: Line 14 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Line 15 ; Data Section Line 16 O_R_VS EQU $00 ;Offset values input and output mem fns Line 17 O_R_ST EQU $01 ; Right Sensor Strong Line 18 O_R_ME EQU $02 ; Right Sensor Medium Line 19 O_R_WE EQU $03 ; Right Sensor Weak Line 20 O_R_VW EQU $04 ; Right Sensor Very Weak Line 21 O_L_VS EQU $05 ; Left Sensor Very Strong Line 22 O_L_ST EQU $06 ; Left Sensor Strong Line 23 O_L_ME EQU $07 ; Left Sensor Medium Line 24 O_L_WE EQU $08 ; Left Sensor Weak Line 25 O_L_VW EQU $09 ; Left Sensor Very Weak Line 26 O_ML Line 27 O_SL Line 28 O_ZR Line 29 O_SR Line 30 O_MR EQU $0A ; Medium Left EQU $0B ; Small Left EQU $0C ; Zero EQU $0D ; Small Right EQU $0E ; Medium Right Line 31 MARKER EQU $FE ; rule separator Line 32 ENDR EQU $FF ; end of rule marker Mobile Robot Example Code - Assembly 27

28 Line 33 ORG $6000 Line 34 RSENSOR RMB $01 ; Allocating Line 35 LSENSOR RMB $01 ; memory locations Line 36 CONTROLS RMB $01 ; for input/output variables Mobile Robot Example Code - Assembly Line 37 ; Fuzzy Input Membership Function Definitions for Right Sensor Line 38 R_Very_Strong FCB $B0, $FF, $10, $00 Line 39 R_Strong FCB $90, $C0, $10, $10 Line 40 R_Medium FCB $60, $A0, $10, $10 Line 41 R_Weak FCB $40, $70, $10, $10 Line 42 R_Very_Weak FCB $00, $50, $00, $10 Line 43 ; Fuzzy Input Membership Function Definitions for Left Sensor Line 44 L_Very_Strong FCB $B0,$FF,$10,$00 Line 45 L_Strong FCB $90,$C0,$10,$10 Line 46 L_Medium FCB $60,$A0,$10,$10 Line 47 L_Weak FCB $40,$70,$10,$10 Line 48 L_Very_Weak FCB $00,$50,$00,$10 Line 49 ;Fuzzy Output Membership Function Definitions Line 50 Medium_Left FCB $40 Line 51 Small_Left FCB $60 Line 52 Zero FCB $80 Line 53 Small_Right FCB $A0 Line 54 Medium_Right FCB $C0 28

29 Line 55 ; Locations for fuzzy membership values Line 56 R_VS RMB $01 Line 57 R_ST RMB $01 Line 58 R_ME RMB $01 Line 59 R_WE RMB $01 Line 60 R_VW RMB $01 Line 61 L_VS RMB $01 Line 62 L_ST RMB $01 Line 63 L_ME RMB $01 Line 64 L_WE RMB $01 Line 65 L_VW RMB $01 Mobile Robot Example Code - Assembly Line 66 ; Output Fuzzy Logic Membership Values - initialize to zero Line 67 ML FCB $00 Line 68 SL FCB $00 Line 69 ZR FCB $00 Line 70 SR FCB $00 Line 71 MR FCB $00 29

30 In HCS12, rules are stored as antecedent one, antecedent two, $FE, desired output, $FE Line 72 ; Rule Definitions Line 73 Rule_Start FCB O_R_VS,O_L_VS,MARKER,O_ZR,MARKER Line 74 FCB O_R_VS,O_L_ST,MARKER,O_SL,MARKER Line 75 FCB O_R_VS,O_L_MD,MARKER,O_SL,MARKER Line 76 FCB O_R_VS,O_L_WE,MARKER,O_ML,MARKER Line 77 FCB O_R_VS,O_L_VW,MARKER,O_ML,MARKER Line 78 FCB O_R_ST,O_L_VS,MARKER,O_SR,MARKER Line 79 FCB O_R_ST,O_L_ST,MARKER,O_ZR,MARKER Line 80 FCB O_R_ST,O_L_MD,MARKER,O_SL,MARKER Line 81 FCB O_R_ST,O_L_WE,MARKER,O_ML,MARKER Line 82 FCB O_R_ST,O_L_VW,MARKER,O_ML,MARKER Line 83 FCB O_R_MD,O_L_VS,MARKER,O_SR,MARKER Line 84 FCB O_R_MD,O_L_ST,MARKER,O_SR,MARKER Line 85 FCB O_R_MD,O_L_MD,MARKER,O_ZR,MARKER Line 86 FCB O_R_MD,O_L_WE,MARKER,O_SL,MARKER Line 87 FCB O_R_MD,O_L_VW,MARKER,O_SL,MARKER Line 88 FCB O_R_WE,O_L_VS,MARKER,O_MR,MARKER Line 89 FCB O_R_WE,O_L_ST,MARKER,O_MR,MARKER Line 90 FCB O_R_WE,O_L_MD,MARKER,O_SR,MARKER Line 91 FCB O_R_WE,O_L_WE,MARKER,O_ZR,MARKER Line 92 FCB O_R_WE,O_L_VW,MARKER,O_SL,MARKER Line 93 FCB O_R_VW,O_L_VS,MARKER,O_MR,MARKER Line 94 FCB O_R_VW,O_L_ST,MARKER,O_MR,MARKER Line 95 FCB O_R_VW,O_L_MD,MARKER,O_SR,MARKER Line 96 FCB O_R_VW,O_L_WE,MARKER,O_SR,MARKER Line 97 FCB O_R_VW,O_L_WE,MARKER,O_ZR,ENDR Mobile Robot Example Code - Assembly 30

31 Line 98 ; Main Program Line 99 ORG $4000 Line 100 ; Fuzzification ; Fuzzification Procedure ; MEM function determines grade of membership. ; ; Registers must be set up as follows: ; A: must hold the current crisp value of system input variable ; X: must point to 4-byte data structure describing the trapezoidal ; membership function for a label of the system input ; Y: must point to the fuzzy input (RAM location) where the resulting ; grade of membership is to be stored ; ; Perform fuzzification for right sensor Line 101 LDX #R_Very_Strong ; Start of Input Mem func Line 102 LDY #R_VS ; Start of Fuzzy Mem values Line 103 LDAA RSENSOR ; Right Sensor Value Line 104 LDAB #5 ; Number of iterations Line 105 Loopr MEM ; Assign mem value Line 106 DBNE B,Loopr ; Do all five iterations ; Perform fuzzification for left sensor Line 107 LDAA LSENSOR ; Left Sensor Value Line 108 LDAB #5 ; Number of iterations Line 109 Loopl MEM ; Assign mem value Line 110 DBNE B,Loopl ; Do all five iterations Mobile Robot Example Code - Assembly All the preceding code is just setup and initialization. The bulk of the actual work is done here, by the MEM instruction. 31

32 ; Fuzzy Logic Rule Evaluation ; REV function performs an unweighted evaluation of a list of rules, ; using fuzzy input values to produce fuzzy outputs. ; ;Before executing REV, perform the following set up operations. ; X: must point to the first 8-bit element in the rule list. ; Y: must point to the base address for fuzzy inputs and outputs ; A: must contain the value of $FF, and the CCR V bit must = 0 ; (LDAA #$FF places the correct value in A and clears V) ; Clear fuzzy outputs to zeros ; Line 111 LDY #R_VS ; Process rules Line 112 LDX #Rule_Start ; Point X to the start addr Line 113 LDAA #$FF ; Initialize min and V bit Line 114 REV ; Evaluate rules Line 115 ; Defuzzification Process ; WAV function performs weighted average calculations on ; values stored in memory. ; X: used to reference one source operand list ; Y: used to reference second source operand list ; B: used a s counter to control number of elements to ; be included in the weighted average ; Line 116 LDX #Medium_Left ; Start of output mem func Line 117 LDY #ML ; Start of mem values Line 118 LDAB #$05 ; Five elements sum Line 119 WAV ; Computing a crisp value Line 120 EDIV ; Extended divide - 32 bit/16 bit Line 121 TFR Y,D ; Store answer to D Line 122 STAB CONTROLS ; Save the answer Line 123 END Mobile Robot Example Code - Assembly The REV and the WAV instructions do the bulk of the work here too. 32

33 Summary / Questions Fuzzy logic is a superset of conventional (Boolean) logic that has been extended to handle the concept of partial truth; i.e., truth values between "completely true" and "completely false". It has been used for control applications and recognition systems. What are the advantages and disadvantages of fuzzy logic? 33

Linking Assembly Subroutine with a C Program

Linking Assembly Subroutine with a C Program Linking Assembly Subroutine with a C Program To link an assembly subroutine to a C program, you have to understand how parameters are passed. For the CodeWarrior C compiler, one parameter is passed in

More information

EE 5340/7340 Motorola 68HC11 Microcontroler Lecture 1. Carlos E. Davila, Electrical Engineering Dept. Southern Methodist University

EE 5340/7340 Motorola 68HC11 Microcontroler Lecture 1. Carlos E. Davila, Electrical Engineering Dept. Southern Methodist University EE 5340/7340 Motorola 68HC11 Microcontroler Lecture 1 Carlos E. Davila, Electrical Engineering Dept. Southern Methodist University What is Assembly Language? Assembly language is a programming language

More information

ARTIFICIAL INTELLIGENCE. Uncertainty: fuzzy systems

ARTIFICIAL INTELLIGENCE. Uncertainty: fuzzy systems INFOB2KI 2017-2018 Utrecht University The Netherlands ARTIFICIAL INTELLIGENCE Uncertainty: fuzzy systems Lecturer: Silja Renooij These slides are part of the INFOB2KI Course Notes available from www.cs.uu.nl/docs/vakken/b2ki/schema.html

More information

Total: EEL 3701 Digital Logic & Computer Systems Final Exam Fall Semester 2007 COVER SHEET: Re-Grade Information: 1 (10) 2 (10) 3 (10) 4 (14) 5 (14)

Total: EEL 3701 Digital Logic & Computer Systems Final Exam Fall Semester 2007 COVER SHEET: Re-Grade Information: 1 (10) 2 (10) 3 (10) 4 (14) 5 (14) COVER SHEET: Prob. Points: Re-Grade Information: Total: 1 (10) 2 (10) 3 (10) 4 (14) 5 (14) 6 (15) 7 (15) 8 (12) (100) 1 Remember to show ALL work here and in EVERY problem on this exam. [10%] 1. Circuit

More information

Lecture 36 April 25, 2012 Review for Exam 3. Linking Assembly Subroutine with a C Program. A/D Converter

Lecture 36 April 25, 2012 Review for Exam 3. Linking Assembly Subroutine with a C Program. A/D Converter Lecture 36 April 25, 2012 Review for Exam 3 Linking Assembly Subroutine with a C Program A/D Converter Power-up A/D converter (ATD1CTL2) Write 0x05 to ATD1CTL4 to set at fastest conversion speed and 10-bit

More information

ME4447/6405. Microprocessor Control of Manufacturing Systems and Introduction to Mechatronics. Instructor: Professor Charles Ume LECTURE 7

ME4447/6405. Microprocessor Control of Manufacturing Systems and Introduction to Mechatronics. Instructor: Professor Charles Ume LECTURE 7 ME4447/6405 Microprocessor Control of Manufacturing Systems and Introduction to Mechatronics Instructor: Professor Charles Ume LECTURE 7 Reading Assignments Reading assignments for this week and next

More information

Mark McDermo2 Steven Smith. SOC Design. Taxonomy of Hardware Accelera+on Microcoded Co- Processor. MC68332 Time Processing Unit

Mark McDermo2 Steven Smith. SOC Design. Taxonomy of Hardware Accelera+on Microcoded Co- Processor. MC68332 Time Processing Unit Hardware Accelera+on Mark McDermo2 Steven Smith Agenda Taxonomy of Hardware Accelera+on Microcoded Co- Processor MC68332 Time Processing Unit ISA Enhancements: HC12 Fuzzy Logic Accelera+on SIMD Instruc+ons

More information

Mark II Aiken Relay Calculator

Mark II Aiken Relay Calculator Introduction to Embedded Microcomputer Systems Lecture 6.1 Mark II Aiken Relay Calculator 2.12. Tutorial 2. Arithmetic and logical operations format descriptions examples h 8-bit unsigned hexadecimal $00

More information

FUZZY INFERENCE SYSTEMS

FUZZY INFERENCE SYSTEMS CHAPTER-IV FUZZY INFERENCE SYSTEMS Fuzzy inference is the process of formulating the mapping from a given input to an output using fuzzy logic. The mapping then provides a basis from which decisions can

More information

Homework 12 Solutions

Homework 12 Solutions Page 1/6 1. Here is a short program that shows all addressing modes: We are given a table of student's test scores where there are three scores in a semester per student. Unfortunately, the person who

More information

Fuzzy Reasoning. Outline

Fuzzy Reasoning. Outline Fuzzy Reasoning Outline Introduction Bivalent & Multivalent Logics Fundamental fuzzy concepts Fuzzification Defuzzification Fuzzy Expert System Neuro-fuzzy System Introduction Fuzzy concept first introduced

More information

CHAPTER 4 FREQUENCY STABILIZATION USING FUZZY LOGIC CONTROLLER

CHAPTER 4 FREQUENCY STABILIZATION USING FUZZY LOGIC CONTROLLER 60 CHAPTER 4 FREQUENCY STABILIZATION USING FUZZY LOGIC CONTROLLER 4.1 INTRODUCTION Problems in the real world quite often turn out to be complex owing to an element of uncertainty either in the parameters

More information

Lab 2 Part 1 Assembly Language Programming and 9S12 Ports

Lab 2 Part 1 Assembly Language Programming and 9S12 Ports Lab 2 Part 1 Assembly Language Programming and 9S12 Ports In this sequence of three labs, you will learn how to write simple assembly language programs for the MC9S12 microcontroller, and how to use general

More information

LECTURE #21: G-CPU & Assembly Code EEL 3701: Digital Logic and Computer Systems Based on lecture notes by Dr. Eric M. Schwartz

LECTURE #21: G-CPU & Assembly Code EEL 3701: Digital Logic and Computer Systems Based on lecture notes by Dr. Eric M. Schwartz LECTURE #21: G-CPU & Assembly Code EEL 3701: Digital Logic and Computer Systems Based on lecture notes by Dr. Eric M. Schwartz G-CPU Important Notes (see Schwartz s lecture for a general overview) - The

More information

Introduction to Fuzzy Logic and Fuzzy Systems Adel Nadjaran Toosi

Introduction to Fuzzy Logic and Fuzzy Systems Adel Nadjaran Toosi Introduction to Fuzzy Logic and Fuzzy Systems Adel Nadjaran Toosi Fuzzy Slide 1 Objectives What Is Fuzzy Logic? Fuzzy sets Membership function Differences between Fuzzy and Probability? Fuzzy Inference.

More information

CHAPTER 5 FUZZY LOGIC CONTROL

CHAPTER 5 FUZZY LOGIC CONTROL 64 CHAPTER 5 FUZZY LOGIC CONTROL 5.1 Introduction Fuzzy logic is a soft computing tool for embedding structured human knowledge into workable algorithms. The idea of fuzzy logic was introduced by Dr. Lofti

More information

FUZZY LOGIC TECHNIQUES. on random processes. In such situations, fuzzy logic exhibits immense potential for

FUZZY LOGIC TECHNIQUES. on random processes. In such situations, fuzzy logic exhibits immense potential for FUZZY LOGIC TECHNIQUES 4.1: BASIC CONCEPT Problems in the real world are quite often very complex due to the element of uncertainty. Although probability theory has been an age old and effective tool to

More information

Most of the HC12 s instructions access data in memory There are several ways for the HC12 to determine which address to access

Most of the HC12 s instructions access data in memory There are several ways for the HC12 to determine which address to access HC12 Addressing Modes Instruction coding and execution o Inherent, Extended, Direct, Immediate, Indexed, and Relative Modes o Summary of MC9S12 Addressing Modes o Using X and Y registers as pointers o

More information

ARTIFICIAL INTELLIGENCE - FUZZY LOGIC SYSTEMS

ARTIFICIAL INTELLIGENCE - FUZZY LOGIC SYSTEMS ARTIFICIAL INTELLIGENCE - FUZZY LOGIC SYSTEMS http://www.tutorialspoint.com/artificial_intelligence/artificial_intelligence_fuzzy_logic_systems.htm Copyright tutorialspoint.com Fuzzy Logic Systems FLS

More information

Module 1-D. Control Structure Applications. Tim Rogers 2017 [1.D]-1

Module 1-D. Control Structure Applications. Tim Rogers 2017 [1.D]-1 Module 1-D Control Structure Applications Tim Rogers 2017 [1.D]-1 Learning Outcome #1 An ability to program a microcontroller to perform various tasks How? A. Architecture and Programming Model B. Instruction

More information

ECE 3120 Computer Systems Arithmetic Programming

ECE 3120 Computer Systems Arithmetic Programming ECE 3120 Computer Systems Arithmetic Programming Manjeera Jeedigunta http://blogs.cae.tntech.edu/msjeedigun21 Email: msjeedigun21@tntech.edu Tel: 931-372-6181, Prescott Hall 120 Today: Multiplication and

More information

Dinner for Two, Reprise

Dinner for Two, Reprise Fuzzy Logic Toolbox Dinner for Two, Reprise In this section we provide the same two-input, one-output, three-rule tipping problem that you saw in the introduction, only in more detail. The basic structure

More information

Introduction 3 Fuzzy Inference. Aleksandar Rakić Contents

Introduction 3 Fuzzy Inference. Aleksandar Rakić Contents Beograd ETF Fuzzy logic Introduction 3 Fuzzy Inference Aleksandar Rakić rakic@etf.rs Contents Mamdani Fuzzy Inference Fuzzification of the input variables Rule evaluation Aggregation of rules output Defuzzification

More information

ECET Chapter 2, Part 2 of 3

ECET Chapter 2, Part 2 of 3 ECET 310-001 Chapter 2, Part 2 of 3 W. Barnes, 9/2006, rev d. 10/07 Ref. Huang, Han-Way, The HCS12/9S12: An Introduction to Software and Hardware Interfacing, Thomson/Delmar. In This Set of Slides: 1.

More information

Lecture 11: Advanced Arithmetic Instructions

Lecture 11: Advanced Arithmetic Instructions Lecture 11: Advanced Arithmetic Instructions Today s Goals Use basic multiplication li and divisioni i instructions. ti Use shift and rotate instructions Multiplication Three different multiplication li

More information

Chapter 7 Fuzzy Logic Controller

Chapter 7 Fuzzy Logic Controller Chapter 7 Fuzzy Logic Controller 7.1 Objective The objective of this section is to present the output of the system considered with a fuzzy logic controller to tune the firing angle of the SCRs present

More information

Wed. Sept 6 Announcements

Wed. Sept 6 Announcements Wed. Sept 6 Announcements HW 3 / Lab 3 posted [1.C]-1 Endianness Problem: Memory is byte addressed. Sometimes you want to access multi-byte values (16-bit, 32-bits etc.) X is 2-bytes Addr Memory Value

More information

Sample Problem Set #1

Sample Problem Set #1 Sample Problem Set #1 Notes: These problems are typical exam problems; most are drawn from previous homeworks and exams. This exam is open book, open notes. It may help to have a calculator. For partial

More information

Chapter 2: HCS12 Assembly Programming. EE383: Introduction to Embedded Systems University of Kentucky. Samir Rawashdeh

Chapter 2: HCS12 Assembly Programming. EE383: Introduction to Embedded Systems University of Kentucky. Samir Rawashdeh Chapter 2: HCS12 Assembly Programming EE383: Introduction to Embedded Systems University of Kentucky Samir Rawashdeh With slides based on material by H. Huang Delmar Cengage Learning 1 Three Sections of

More information

Ryerson University Department of Electrical and Computer Engineering ELE 538 Microprocessor Systems Final Examination December 8, 2003

Ryerson University Department of Electrical and Computer Engineering ELE 538 Microprocessor Systems Final Examination December 8, 2003 Ryerson University Department of Electrical and Computer Engineering ELE 538 Microprocessor Systems Final Examination December 8, 23 Name: Student Number: Time limit: 3 hours Section: Examiners: K Clowes,

More information

S12CPUV2. Reference Manual HCS12. Microcontrollers. S12CPUV2/D Rev. 0 7/2003 MOTOROLA.COM/SEMICONDUCTORS

S12CPUV2. Reference Manual HCS12. Microcontrollers. S12CPUV2/D Rev. 0 7/2003 MOTOROLA.COM/SEMICONDUCTORS HCS12 Microcontrollers /D Rev. 0 7/2003 MOTOROLA.COM/SEMICONDUCTORS To provide the most up-to-date information, the revision of our documents on the World Wide Web will be the most current. Your printed

More information

EE4390 Microprocessors

EE4390 Microprocessors EE4390 Microprocessors Lesson 6,7 Instruction Set, Branch Instructions, Assembler Directives Revised: Aug 1, 2003 1 68HC12 Instruction Set An instruction set is defined as a set of instructions that a

More information

Background Fuzzy control enables noncontrol-specialists. A fuzzy controller works with verbal rules rather than mathematical relationships.

Background Fuzzy control enables noncontrol-specialists. A fuzzy controller works with verbal rules rather than mathematical relationships. Introduction to Fuzzy Control Background Fuzzy control enables noncontrol-specialists to design control system. A fuzzy controller works with verbal rules rather than mathematical relationships. knowledge

More information

EE319 K Lecture 3. Introduction to the 9S12 Lab 1 Discussion Using the TExaS simulator. University of Texas ECE

EE319 K Lecture 3. Introduction to the 9S12 Lab 1 Discussion Using the TExaS simulator. University of Texas ECE EE319 K Lecture 3 Introduction to the 9S12 Lab 1 Discussion Using the TExaS simulator University of Texas ECE Introduction (von Neumann architecture) processor Bus Memory Mapped I/O System Input Devices

More information

Using the stack and the stack pointer

Using the stack and the stack pointer Using the stack and the stack pointer o The Stack and Stack Pointer o The stack is a memory area for temporary storage o The stack pointer points to the last byte in the stack o Some instructions which

More information

Introduction to Embedded Systems and Chapter 1: Introduction to HCS12/MC9S12. EE383: Introduction to Embedded Systems University of Kentucky

Introduction to Embedded Systems and Chapter 1: Introduction to HCS12/MC9S12. EE383: Introduction to Embedded Systems University of Kentucky Introduction to Embedded Systems and Chapter 1: Introduction to HCS12/MC9S12 EE383: Introduction to Embedded Systems University of Kentucky Samir Rawashdeh With slides based on material by H. Huang Delmar

More information

EE 308 Spring The HCS12 has 6 addressing modes

EE 308 Spring The HCS12 has 6 addressing modes The HCS12 has 6 addressing modes Most of the HC12 s instructions access data in memory There are several ways for the HC12 to determine which address to access Effective Address: Memory address used by

More information

CHAPTER 3 FUZZY RULE BASED MODEL FOR FAULT DIAGNOSIS

CHAPTER 3 FUZZY RULE BASED MODEL FOR FAULT DIAGNOSIS 39 CHAPTER 3 FUZZY RULE BASED MODEL FOR FAULT DIAGNOSIS 3.1 INTRODUCTION Development of mathematical models is essential for many disciplines of engineering and science. Mathematical models are used for

More information

Lecture notes. Com Page 1

Lecture notes. Com Page 1 Lecture notes Com Page 1 Contents Lectures 1. Introduction to Computational Intelligence 2. Traditional computation 2.1. Sorting algorithms 2.2. Graph search algorithms 3. Supervised neural computation

More information

Introduction 2 Fuzzy Sets & Fuzzy Rules. Aleksandar Rakić Contents

Introduction 2 Fuzzy Sets & Fuzzy Rules. Aleksandar Rakić Contents Beograd ETF Fuzzy logic Introduction 2 Fuzzy Sets & Fuzzy Rules Aleksandar Rakić rakic@etf.rs Contents Characteristics of Fuzzy Sets Operations Properties Fuzzy Rules Examples 2 1 Characteristics of Fuzzy

More information

Menu Computer Organization Programming Model for the an example microprocessors (the G-CPU & Motorola 68HC11) Assembly Programming Look into my...

Menu Computer Organization Programming Model for the an example microprocessors (the G-CPU & Motorola 68HC11) Assembly Programming Look into my... Menu Computer Organization Programming Model for the an example microprocessors (the G-CPU & Motorola 68HC11) Assembly Programming Look into my... See examples on web: DirAddr.asm, ExtAddr.asm, IndAddr.asm,

More information

Mark Redekopp and Gandhi Puvvada, All rights reserved. EE 357 Unit 15. Single-Cycle CPU Datapath and Control

Mark Redekopp and Gandhi Puvvada, All rights reserved. EE 357 Unit 15. Single-Cycle CPU Datapath and Control EE 37 Unit Single-Cycle CPU path and Control CPU Organization Scope We will build a CPU to implement our subset of the MIPS ISA Memory Reference Instructions: Load Word (LW) Store Word (SW) Arithmetic

More information

FUZZY INFERENCE. Siti Zaiton Mohd Hashim, PhD

FUZZY INFERENCE. Siti Zaiton Mohd Hashim, PhD FUZZY INFERENCE Siti Zaiton Mohd Hashim, PhD Fuzzy Inference Introduction Mamdani-style inference Sugeno-style inference Building a fuzzy expert system 9/29/20 2 Introduction Fuzzy inference is the process

More information

ECE331 Handout 3- ASM Instructions, Address Modes and Directives

ECE331 Handout 3- ASM Instructions, Address Modes and Directives ECE331 Handout 3- ASM Instructions, Address Modes and Directives ASM Instructions Functional Instruction Groups Data Transfer/Manipulation Arithmetic Logic & Bit Operations Data Test Branch Function Call

More information

Why Fuzzy? Definitions Bit of History Component of a fuzzy system Fuzzy Applications Fuzzy Sets Fuzzy Boundaries Fuzzy Representation

Why Fuzzy? Definitions Bit of History Component of a fuzzy system Fuzzy Applications Fuzzy Sets Fuzzy Boundaries Fuzzy Representation Contents Why Fuzzy? Definitions Bit of History Component of a fuzzy system Fuzzy Applications Fuzzy Sets Fuzzy Boundaries Fuzzy Representation Linguistic Variables and Hedges INTELLIGENT CONTROLSYSTEM

More information

What is all the Fuzz about?

What is all the Fuzz about? What is all the Fuzz about? Fuzzy Systems CPSC 433 Christian Jacob Dept. of Computer Science Dept. of Biochemistry & Molecular Biology University of Calgary Fuzzy Systems in Knowledge Engineering Fuzzy

More information

Lecture 5 Assembly Programming: Arithmetic

Lecture 5 Assembly Programming: Arithmetic CPE 390: Microprocessor Systems Spring 2018 Lecture 5 Assembly Programming: Arithmetic Bryan Ackland Department of Electrical and Computer Engineering Stevens Institute of Technology Hoboken, NJ 07030

More information

Addition and Subtraction of Hexadecimal Numbers Simple assembly language programming

Addition and Subtraction of Hexadecimal Numbers Simple assembly language programming Addition and Subtraction of Hexadecimal Numbers Simple assembly language programming o A simple Assembly Language Program o Assembling an Assembly Language Program o Simple 9S12 programs o Hex code generated

More information

CodeWarrior. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff

CodeWarrior. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff CodeWarrior 1 Assembler An assembler is a program that translates assembly language into machine code. Machine code are the numbers that the CPU recognizes as instructions. $B6 $10 $00 Assembly language

More information

Introduction to Programming the 9S12 in C Huang Sections 5.2 and 5.3. You will be able to use all of the Motorola data manuals on the exam.

Introduction to Programming the 9S12 in C Huang Sections 5.2 and 5.3. You will be able to use all of the Motorola data manuals on the exam. Introduction to Programming the 9S12 in C Huang Sections 5.2 and 5.3 o Comparison of C and Assembly programs for the HC12 o How to compile a C program using the GNU-C compiler o Using pointers to access

More information

Why Fuzzy Fuzzy Logic and Sets Fuzzy Reasoning. DKS - Module 7. Why fuzzy thinking?

Why Fuzzy Fuzzy Logic and Sets Fuzzy Reasoning. DKS - Module 7. Why fuzzy thinking? Fuzzy Systems Overview: Literature: Why Fuzzy Fuzzy Logic and Sets Fuzzy Reasoning chapter 4 DKS - Module 7 1 Why fuzzy thinking? Experts rely on common sense to solve problems Representation of vague,

More information

EE 3170 Microcontroller Applications

EE 3170 Microcontroller Applications Q. 3.9 of HW3 EE 37 Microcontroller Applications (a) (c) (b) (d) Midterm Review: Miller Chapter -3 -The Stuff That Might Be On the Exam D67 (e) (g) (h) CEC23 (i) (f) (j) (k) (l) (m) EE37/CC/Lecture-Review

More information

MC9S12 Assembler Directives A Summary of MC9S12 Instructions Disassembly of MC9S12 op codes. Summary of HCS12 addressing modes ADDRESSING MODES

MC9S12 Assembler Directives A Summary of MC9S12 Instructions Disassembly of MC9S12 op codes. Summary of HCS12 addressing modes ADDRESSING MODES MC9S12 Assembler Directives A Summary of MC9S12 Instructions Disassembly of MC9S12 op codes o Review of Addressing Modes o Which branch instruction to use (signed vs unsigned) o Using X and Y registers

More information

Fuzzy Logic Based Path Planning for Quadrotor

Fuzzy Logic Based Path Planning for Quadrotor Fuzzy Logic Based Path Planning for Quadrotor Reagan L. Galvez a*, Elmer P. Dadios a, and Argel A. Bandala b a Gokongwei College of Engineering De La Salle University-Manila, Manila, Philippines b Gokongwei

More information

1. Memory Mapped Systems 2. Adding Unsigned Numbers

1. Memory Mapped Systems 2. Adding Unsigned Numbers 1 Memory Mapped Systems 2 Adding Unsigned Numbers 1 1 Memory Mapped Systems Our system uses a memory space Address bus is 16-bit locations Data bus is 8-bit 2 Adding Unsigned Numbers 2 Our system uses

More information

ECE L A B 1 Introduction ASSEMBLY PROGRAMMING WITH MINIIDE

ECE L A B 1 Introduction ASSEMBLY PROGRAMMING WITH MINIIDE L A B 1 Introduction ASSEMBLY PROGRAMMING WITH MINIIDE The purpose of this lab is to introduce you to the layout and structure of Assembly Language programs and their format. You will write your own programs

More information

Fuzzy Logic. Sourabh Kothari. Asst. Prof. Department of Electrical Engg. Presentation By

Fuzzy Logic. Sourabh Kothari. Asst. Prof. Department of Electrical Engg. Presentation By Fuzzy Logic Presentation By Sourabh Kothari Asst. Prof. Department of Electrical Engg. Outline of the Presentation Introduction What is Fuzzy? Why Fuzzy Logic? Concept of Fuzzy Logic Fuzzy Sets Membership

More information

Decimal, Hexadecimal and Binary Numbers Writing an assembly language program

Decimal, Hexadecimal and Binary Numbers Writing an assembly language program Decimal, Hexadecimal and Binary Numbers Writing an assembly language program o Disassembly of MC9S12 op codes o Use flow charts to lay out structure of program o Use common flow structures if-then if-then-else

More information

Fuzzy Sets and Fuzzy Logic. KR Chowdhary, Professor, Department of Computer Science & Engineering, MBM Engineering College, JNV University, Jodhpur,

Fuzzy Sets and Fuzzy Logic. KR Chowdhary, Professor, Department of Computer Science & Engineering, MBM Engineering College, JNV University, Jodhpur, Fuzzy Sets and Fuzzy Logic KR Chowdhary, Professor, Department of Computer Science & Engineering, MBM Engineering College, JNV University, Jodhpur, Outline traditional logic : {true,false} Crisp Logic

More information

What is all the Fuzz about?

What is all the Fuzz about? What is all the Fuzz about? Fuzzy Systems: Introduction CPSC 533 Christian Jacob Dept. of Computer Science Dept. of Biochemistry & Molecular Biology University of Calgary Fuzzy Systems in Knowledge Engineering

More information

Lotfi Zadeh (professor at UC Berkeley) wrote his original paper on fuzzy set theory. In various occasions, this is what he said

Lotfi Zadeh (professor at UC Berkeley) wrote his original paper on fuzzy set theory. In various occasions, this is what he said FUZZY LOGIC Fuzzy Logic Lotfi Zadeh (professor at UC Berkeley) wrote his original paper on fuzzy set theory. In various occasions, this is what he said Fuzzy logic is a means of presenting problems to

More information

Introduction to Intelligent Control Part 2

Introduction to Intelligent Control Part 2 ECE 4951 - Spring 2010 Introduction to Intelligent Control Part 2 Prof. Marian S. Stachowicz Laboratory for Intelligent Systems ECE Department, University of Minnesota Duluth January 19-21, 2010 Human-in-the-loop

More information

Y = (A + C) (A + B) (B + C)

Y = (A + C) (A + B) (B + C) EEL3701 Dr. Gugel Last Name First Name Spring 2012 Final Quiz UF ID# Open book and open notes, 90-minute examination to be done in non-red pencil or pen. No electronic devices permitted. All work and solutions

More information

Addition and Subtraction of Hexadecimal Numbers Simple assembly language programming

Addition and Subtraction of Hexadecimal Numbers Simple assembly language programming Addition and Subtraction of Hexadecimal Numbers Simple assembly language programming o A simple Assembly Language Program o Assembling an Assembly Language Program o Simple 9S12 programs o Hex code generated

More information

Lecture 5 Fuzzy expert systems: Fuzzy inference Mamdani fuzzy inference Sugeno fuzzy inference Case study Summary

Lecture 5 Fuzzy expert systems: Fuzzy inference Mamdani fuzzy inference Sugeno fuzzy inference Case study Summary Lecture 5 Fuzzy expert systems: Fuzzy inference Mamdani fuzzy inference Sugeno fuzzy inference Case study Summary Negnevitsky, Pearson Education, 25 Fuzzy inference The most commonly used fuzzy inference

More information

Cross Assembly and Program Development

Cross Assembly and Program Development Cross Assembly and ENGG4640/3640; Fall 2004; Prepared by Radu Muresan 1 Introduction Text Editor Program Ex. DOS, Notepad, Word saved as ASCII Source Code Assembler or Cross-Assembler Object Code Machine

More information

Fuzzy Sets and Fuzzy Logic

Fuzzy Sets and Fuzzy Logic Fuzzy Sets and Fuzzy Logic KR Chowdhary, Professor, Department of Computer Science & Engineering, MBM Engineering College, JNV University, Jodhpur, Email: Outline traditional logic : {true,false} Crisp

More information

Fuzzy Networks for Complex Systems. Alexander Gegov University of Portsmouth, UK

Fuzzy Networks for Complex Systems. Alexander Gegov University of Portsmouth, UK Fuzzy Networks for Complex Systems Alexander Gegov University of Portsmouth, UK alexander.gegov@port.ac.uk Presentation Outline Introduction Types of Fuzzy Systems Formal Models for Fuzzy Networks Basic

More information

ECE 331: PC Lab 3 Stack and Subroutines

ECE 331: PC Lab 3 Stack and Subroutines ECE 331: PC Lab 3 Stack and Subroutines Professor Andrew Mason Michigan State University Rev: S11 p.1 Announcements Objectives Topics Outline Review starting and using ASM development environment Pushing

More information

68HC12 Training Lab Student Exercise Book

68HC12 Training Lab Student Exercise Book 68HC12 Training Lab Student Exercise Book Date: 13 September, 2000 Document Revision:1.01 BiPOM Electronics 16301 Blue Ridge Road, Missouri City, Texas 77489 USA Telephone: (713) 661-4214 Fax: (281) 416-2806

More information

An ability to program a microcontroller to perform various tasks

An ability to program a microcontroller to perform various tasks Learning Outcome #1 An ability to program a microcontroller to perform various tasks How? A. Architecture and Programming Model B. Instruction Set Overview C. Assembly Control Structures D. Control Structure

More information

Deciphering Data Fusion Rule by using Adaptive Neuro-Fuzzy Inference System

Deciphering Data Fusion Rule by using Adaptive Neuro-Fuzzy Inference System Deciphering Data Fusion Rule by using Adaptive Neuro-Fuzzy Inference System Ramachandran, A. Professor, Dept. of Electronics and Instrumentation Engineering, MSRIT, Bangalore, and Research Scholar, VTU.

More information

N bit is set if result of operation in negative (MSB = 1) Z bit is set if result of operation is zero (All bits = 0)

N bit is set if result of operation in negative (MSB = 1) Z bit is set if result of operation is zero (All bits = 0) Addition and Subtraction of Hexadecimal Numbers. Setting the C (Carry), V (Overflow), N (Negative) and Z (Zero) bits How the C, V, N and Z bits of the CCR are changed Condition Code Register Bits N, Z,

More information

Demonstration Model of fuzzytech Implementation on M68HC12

Demonstration Model of fuzzytech Implementation on M68HC12 Order this document by Demonstration Model of fuzzytech Implementation on M68HC12 by Philip Drake and Jim Sibigtroth of Freescale, Austin; and Constantin von Altrock and Ralph Konigbauer of Inform Software

More information

EE319 K Lecture 7. Address mode review Assembler, Debugging Psuedo ops 16 bit timer finite state machines. University of Texas ECE

EE319 K Lecture 7. Address mode review Assembler, Debugging Psuedo ops 16 bit timer finite state machines. University of Texas ECE EE319 K Lecture 7 Address mode review Assembler, Debugging Psuedo ops 16 bit timer finite state machines University of Texas ECE Texas and execution A $24 EEPROM $F800 $F801 $86 $F802 $24 $F803 }ldaa #36

More information

Lecture 6 Assembly Programming: Branch & Iteration

Lecture 6 Assembly Programming: Branch & Iteration CPE 390: Microprocessor Systems Spring 2018 Lecture 6 Assembly Programming: Branch & Iteration Bryan Ackland Department of Electrical and Computer Engineering Stevens Institute of Technology Hoboken, NJ

More information

Final Exam. Controller, F. Expert Sys.., Solving F. Ineq.} {Hopefield, SVM, Comptetive Learning,

Final Exam. Controller, F. Expert Sys.., Solving F. Ineq.} {Hopefield, SVM, Comptetive Learning, Final Exam Question on your Fuzzy presentation {F. Controller, F. Expert Sys.., Solving F. Ineq.} Question on your Nets Presentations {Hopefield, SVM, Comptetive Learning, Winner- take all learning for

More information

Chapter 2 HCS12 Assembly Language

Chapter 2 HCS12 Assembly Language Chapter 2 HCS12 Assembly Language ECE 3120 Dr. Mohamed Mahmoud http://iweb.tntech.edu/mmahmoud/ mmahmoud@tntech.edu Outline 2.1 Assembly language program structure 2.2 Data transfer instructions 2.3 Arithmetic

More information

CHAPTER 3 ADAPTIVE NEURO-FUZZY INFERENCE SYSTEM

CHAPTER 3 ADAPTIVE NEURO-FUZZY INFERENCE SYSTEM 33 CHAPTER 3 ADAPTIVE NEURO-FUZZY INFERENCE SYSTEM The objective of an ANFIS (Jang 1993) is to integrate the best features of Fuzzy Systems and Neural Networks. ANFIS is one of the best tradeoffs between

More information

Chapter 4 Fuzzy Logic

Chapter 4 Fuzzy Logic 4.1 Introduction Chapter 4 Fuzzy Logic The human brain interprets the sensory information provided by organs. Fuzzy set theory focus on processing the information. Numerical computation can be performed

More information

HC11 Instruction Set Architecture

HC11 Instruction Set Architecture HC11 Instruction Set Architecture High-level HC11 architecture Interrupt logic MEMORY Timer and counter M8601 CPU core Serial I/O A/D converter Port A Port B Port C Port D Port E CMPE12 Summer 2009 16-2

More information

ECET Chapter 2, Part 3 of 3

ECET Chapter 2, Part 3 of 3 ECET 310-001 Chapter 2, Part 3 of 3 W. Barnes, 9/2006, rev d. 10/07 Ref. Huang, Han-Way, The HCS12/9S12: An Introduction to Software and Hardware Interfacing, Thomson/Delmar. In This Set of Slides: 1.

More information

HC11 Instruction Set Architecture

HC11 Instruction Set Architecture HC11 Instruction Set Architecture Summer 2008 High-level HC11 architecture Interrupt logic MEMORY Timer and counter M8601 CPU core Serial I/O A/D converter Port A Port B Port C Port D Port E CMPE12 Summer

More information

Dra. Ma. del Pilar Gómez Gil Primavera 2014

Dra. Ma. del Pilar Gómez Gil Primavera 2014 C291-78 Tópicos Avanzados: Inteligencia Computacional I Introducción a la Lógica Difusa Dra. Ma. del Pilar Gómez Gil Primavera 2014 pgomez@inaoep.mx Ver: 08-Mar-2016 1 Este material ha sido tomado de varias

More information

INTERNATIONAL JOURNAL OF COMPUTER ENGINEERING & TECHNOLOGY (IJCET)

INTERNATIONAL JOURNAL OF COMPUTER ENGINEERING & TECHNOLOGY (IJCET) INTERNATIONAL JOURNAL OF COMPUTER ENGINEERING & TECHNOLOGY (IJCET) ISSN 0976 6367(Print) ISSN 0976 6375(Online) Volume 3, Issue 2, July- September (2012), pp. 157-166 IAEME: www.iaeme.com/ijcet.html Journal

More information

Introduction to Programming

Introduction to Programming Introduction to Programming Chapter 2 Microcontrollers Objectives Describe the difference between source code and machine code. Define opcode, operand, and address of an operand. Explain the purpose of

More information

2. Arithmetic Instructions addition, subtraction, multiplication, divison (HCS12 Core Users Guide, Sections 4.3.4, and ).

2. Arithmetic Instructions addition, subtraction, multiplication, divison (HCS12 Core Users Guide, Sections 4.3.4, and ). AS12 Assembler Directives A Summary of 9S12 instructions Disassembly of 9S12 op codes Huang Section 1.8, Chapter 2 MC9S12 V1.5 Core User Guide Version 1.2, Section 12 o A labels is a name assigned the

More information

Figure 2-1: Membership Functions for the Set of All Numbers (N = Negative, P = Positive, L = Large, M = Medium, S = Small)

Figure 2-1: Membership Functions for the Set of All Numbers (N = Negative, P = Positive, L = Large, M = Medium, S = Small) Fuzzy Sets and Pattern Recognition Copyright 1998 R. Benjamin Knapp Permission to make digital or hard copies of part or all of this work for personal or classroom use is granted without fee provided that

More information

Fuzzy Sets and Systems. Lecture 1 (Introduction) Bu- Ali Sina University Computer Engineering Dep. Spring 2010

Fuzzy Sets and Systems. Lecture 1 (Introduction) Bu- Ali Sina University Computer Engineering Dep. Spring 2010 Fuzzy Sets and Systems Lecture 1 (Introduction) Bu- Ali Sina University Computer Engineering Dep. Spring 2010 Fuzzy sets and system Introduction and syllabus References Grading Fuzzy sets and system Syllabus

More information

History of the Microprocessor. ECE/CS 5780/6780: Embedded System Design. Microcontrollers. First Microprocessors. MC9S12C32 Block Diagram

History of the Microprocessor. ECE/CS 5780/6780: Embedded System Design. Microcontrollers. First Microprocessors. MC9S12C32 Block Diagram History of the Microprocessor ECE/CS 5780/6780: Embedded System Design Chris J. Myers Lecture 1: 68HC12 In 1968, Bob Noyce and Gordon Moore left Fairchild Semiconductor and formed Integrated Electronics

More information

Exam 1 Feb. 23, 25, 27?

Exam 1 Feb. 23, 25, 27? Exam 1 Feb. 23, 25, 27? You will be able to use all of the Motorola data manuals on the exam. No calculators will be allowed for the exam. Numbers Decimal to Hex (signed and unsigned) Hex to Decimal (signed

More information

Decision Making: Fuzzy Logic

Decision Making: Fuzzy Logic Decision Making: Fuzzy Logic 2018-03-15 First, a bit of history, my 1965 paper on fuzzy sets was motivated by my feeling that the then existing theories provided no means of dealing with a pervasive aspect

More information

A Brief Idea on Fuzzy and Crisp Sets

A Brief Idea on Fuzzy and Crisp Sets International OPEN ACCESS Journal Of Modern Engineering Research (IJMER) A Brief Idea on Fuzzy and Crisp Sets Rednam SS Jyothi 1, Eswar Patnala 2, K.Asish Vardhan 3 (Asst.Prof(c),Information Technology,

More information

538 Lecture Notes Week 2

538 Lecture Notes Week 2 538 Lecture Notes Week 2 (Sept. 13, 2017) 1/15 Announcements 538 Lecture Notes Week 2 Labs begin this week. Lab 1 is a one-week lab. Lab 2 (starting next week) is a two-week lab. 1 Answers to last week's

More information

Outlines. Fuzzy Membership Function Design Using Information Theory Measures and Genetic Algorithms. Outlines

Outlines. Fuzzy Membership Function Design Using Information Theory Measures and Genetic Algorithms. Outlines Fuzzy Membership Function Design Using Information Theory Measures and Genetic Algorithms Outlines Introduction Problem Statement Proposed Approach Results Conclusion 2 Outlines Introduction Problem Statement

More information

fuzzytech ST6 Explorer Edition

fuzzytech ST6 Explorer Edition fuzzytech ST6 Explorer Edition FUZZY LOGIC DEVELOPMENT TOOL FOR ST6 DESIGN: System : up to four inputs and one output Variables: up to 7 labels per input/output Rules : up to 125 rules ON-LINE OPTIMISATION:

More information

CS/ECE 5780/6780: Embedded System Design

CS/ECE 5780/6780: Embedded System Design CS/ECE 5780/6780: Embedded System Design John Regehr Lecture 2: 68HC12 Architecture & Lab 1 Introduction Duff s Device void foo (int x, int *y, int *z) { switch (x % 8) { case 0: do { *y++ = *z++; case

More information

REASONING UNDER UNCERTAINTY: FUZZY LOGIC

REASONING UNDER UNCERTAINTY: FUZZY LOGIC REASONING UNDER UNCERTAINTY: FUZZY LOGIC Table of Content What is Fuzzy Logic? Brief History of Fuzzy Logic Current Applications of Fuzzy Logic Overview of Fuzzy Logic Forming Fuzzy Set Fuzzy Set Representation

More information

A Simple MC9S12 Program

A Simple MC9S12 Program A Simple MC9S12 Program All programs and data must be placed in memory between address 0x1000 and 0x3BFF. For our programs we will put the first instruction at 0x2000, and the first data byte at 0x1000

More information

Self-learning Mobile Robot Navigation in Unknown Environment Using Evolutionary Learning

Self-learning Mobile Robot Navigation in Unknown Environment Using Evolutionary Learning Journal of Universal Computer Science, vol. 20, no. 10 (2014), 1459-1468 submitted: 30/10/13, accepted: 20/6/14, appeared: 1/10/14 J.UCS Self-learning Mobile Robot Navigation in Unknown Environment Using

More information