Top Banner
Jeff Shelton – 3 February 2015 = 1 ⋅ 2 + 1 ⋅ 2 + 1 ⋅2 + 1 ⋅ 2 = 1 + 2 ⋅ 1 + 2 1 +2 ⋅ 1 + 2 1
51

ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

May 05, 2018

Download

Documents

vokhanh
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015

𝑦 = 𝐵1 ⋅ 𝐵2 + 𝐵1 ⋅ 𝐵2 + 𝐵1 ⋅ 𝐵2 + 𝐵1 ⋅ 𝐵2

𝑦 = 𝐵1 + 𝐵2 ⋅ 𝐵1 + 𝐵2 ⋅ 𝐵1 + 𝐵2 ⋅ 𝐵1 + 𝐵2

1

Page 2: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015 2

Page 3: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015 3

Controls

Sensors

Actuators

Environment

Mechatronic Device

Page 4: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015 4

Controls

Sensors

Actuators

Environment

Mechatronic Device

How might we best develop appropriate logic?

Page 5: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015 5

Page 6: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015

Drive forward

Flippers rotate

Drive forward with flippers

6

Page 7: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015

7

Page 8: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015 8

Imperative Declarative

?

Page 9: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015 9

Page 10: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015 10

Page 11: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015

11

1

value = 0

last_CLK = 0 value = 0

0

Start

CLK⋅/last_CLK? last_CLK = 0 /CLK ⋅ last_CLK?

value?

0

value = 1 0 1

1

last_CLK = 0; value = 0; while 1 % put into infinite loop input CLK; if CLK == 1 && last_CLK == 0 if value = 0 value = 1; else value = 0; endif last_CLK = 1; elseif CLK == 0 && last_CLK == 1 last_CLK = 0; endif endwhile

CLK

Page 12: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015

12

1

value = 0

last_CLK = 0 value = 0

0

Start

CLK⋅/last_CLK? last_CLK = 0 /CLK ⋅ last_CLK?

value?

0

value = 1 0 1

1

last_CLK = 0; value = 0; while 1 % put into infinite loop input CLK; if CLK == 1 && last_CLK == 0 if value = 0 value = 1; else value = 0; endif last_CLK = 1; elseif CLK == 0 && last_CLK == 1 last_CLK = 0; endif endwhile

CLK

Largely Procedural Information

Page 13: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015

S0 S1

0 1

13

This model tells us nothing about when transitions should occur, nor how the transition is to be accomplished.

Largely Declarative Information

Page 14: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015

14

Page 15: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015

15

Page 16: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015 16

Page 17: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015 17

Page 18: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015

18

Page 19: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015

19

Page 20: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015 20

Q

Q

S

R

Page 21: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015 21

S Q

Q R

EN CLK

Page 22: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015

22

Page 23: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015 23

CLOCK (evenly spaced)

HIGH LEVEL Enabled

ENABLE (may be unevenly spaced)

Page 24: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015 24

CLOCK (evenly spaced)

ENABLE (may be unevenly spaced)

LOW LEVEL Enabled

Page 25: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015 25

CLOCK (evenly spaced)

ENABLE (may be unevenly spaced)

Falling Transition after Rising Transition

Page 26: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015 26

CLOCK (evenly spaced)

ENABLE (may be unevenly spaced)

LOW to HIGH transition (Rising Edge)

Page 27: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015 27

CLOCK (evenly spaced)

ENABLE (may be unevenly spaced)

HIGH to LOW transition (Falling Edge)

Page 28: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015 28

Page 29: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015

Input

Clock

29

Tsu Th

Page 30: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015

30

R

S

Q

Q’

R S Q Q’

0 0

0 1

1 0

1 1

Q Q’

1 0

0 1 not allowed

Page 31: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015

R S Q Q’

0 0

0 1

1 0

1 1

R S Q Q*

0 0 0

0 0 1

0 1 0

0 1 1

1 0 0

1 0 1

1 1 0

1 1 1

Q Q’ 1 0 0 1

not allowed

0 1

1 1

0 0

X X

next state

31

Page 32: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015

R SS-R

Latch 00 01 11 10

0Q

1

S0 S1

0 1

S=1, R=0

S=0, R=1

S=0 R=0

S=0 R=1

S=0 R=0

S=1 R=0

1

0 1 X

X

0

0 1 𝑄∗ = 𝑆 + 𝑄 ⋅ 𝑅

32

Page 33: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015 33

Q

Q

S

R

R S /R /S Q Q’

0 0 1 1

0 1 1 0

1 0 0 1

1 1 0 0

Q Q’ 1 0 0 1

not allowed

74279 Quad S-R Latch

S Q

Q R R

S

Q

Q

S

R

+5V

+5V

Switch Debouncing Circuit

VQ

t

VR'

t

R

S

Q

Q’

Page 34: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015

0 0

0

1

1

1

0 1

J KJ-KLatch 00 01 11 10

0Q

1

J

K

Q

/Q

J K Q Q*

0 0 0 0

0 0 1 1

0 1 0 0

0 1 1 0

1 0 0 1

1 0 1 1

1 1 0 1

1 1 1 0

Q

0

1

toggle

Q*Q J Q K34

J Q

Q K

Page 35: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015

D Q Q* /Q*

0 X

1 X

1 0 1

0

35

D Q

Q

D

Q

Q

NAND Gate Implementation

NOR Gate Implementation

D

Q

Q

Restricted input not possible

Page 36: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015

36

Page 37: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015

J

K

CLK

Q

Q

Restricted state permits toggling action

Texas Instruments SN7475 4-Bit Bi-Stable Latches

37

Page 38: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015

38

S Q

EN

R

S

R

Q

Q

EN

P S

CLK

R /P

Master Slave

Q

S

R

Page 39: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015

39

CLOCK

S

R

Q

Glitch

Erroneous State

S Q

EN

R

S

R

Q

Q

EN

P S

CLK

R /P

Master Slave

Q

S

R

Page 40: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015

CLK

J

K

Q

Q’

40

J Q

Q CLK

K

Postponed Output

Texas Instruments SN74LS107 Dual J-K Flip-Flops with Clear

Page 41: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015

41

Page 42: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015 42

J Q

Q

CLK

K

𝐽

𝐾

CLK

𝑄

Q

D

EN

Q

Q

J K CL Q*

0 0 Q

0 1 0

1 0 1

1 1 /Q

X X 0 Q

X X 1 Q

74109 Dual J-K' Positive Edge-Triggered Flip Flop

Dynamic Input Indicator

Page 43: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015

CLK

D

Q

Q’

D CLK Q Q*

0

1

0

1

X X 0

1 Q Q Q Q

𝑄∗ = 𝐷

43

D Q

Q CLK

Reset Latch

Set Latch

Output Latch

Page 44: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015

T

Q

Q’

44

Page 45: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015

Quad S-R Latch

Dual J-K Flip-Flop with CLR

Dual D Flip-Flop with PRE

CLR

Hex D Flip-Flop CLR

R

S

Q

Q

S-R Latch

J

K

Q

Q

J-K Latch

J

K

Q

Q

Edge-Triggered J-K Flip-Flop

Edge-Triggered D Flip-Flop

D Q

Q

Page 46: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015

J

K

Q

Q D

CLK

D flip-flop implemented by J-K flip-flop

D Q

Q

K

J

J-K flip-flop implemented by D flip-flop

Q Q* R S J K T D

0 0 X 0

0 1 0 1

1 0 1 0

1 1 0 X

X 0

0 1 1 0

X 0

1 0

0 1

1

0

0 1

S-R J-K T D

Page 47: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015

47

Page 48: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015

48

Page 49: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015

49

Q

QSET

CLR

D

ASYNC_IN

CLK

SYNC_IN

Synchronous

Logic

Synchronizer

Page 50: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015

Q

QSET

CLR

D

ASYNC_IN

CLK

SYNC_IN

Synchronous

Logic

Synchronizer

50

Page 51: ME588 Mechatronics – Integrated Design of Electro ... · Jeff Shelton – 3 February 2015 ... ME588 Mechatronics – Integrated Design of Electro-Mechanical Systems Author: James

Jeff Shelton – 3 February 2015

51