Click here to start

Table of contents

Lecture 5 Logic and Bit Instructions

Logic Instructions

Slide 3

Slide 4

Clearing Bits using Logic Instructions

Slide 6

Checking Bits

Slide 8

Checking Bits using Logic Instructions

Logic Instructions - OR

Slide 11

Setting Bits using Logic Instructions

Logic Instructions - Exclusive-OR

Slide 14

Slide 15

Slide 16

Laboratory 5.1 : Logic Instructions

Shift Instructions

Slide 19

Slide 20

Switch Debouncing

Laboratory 5.2 : Hex Keypad

Laboratory 5.2 (cont): Hex Keypad

Slide 24

Bit Instructions

Bit Modify Instructions

Slide 27

Bit Check Instructions

Slide 29

Slide 30

Slide 31

Laboratory 5.3 : Bit Instructions

Slide 33

Quiz

Slide 35

Quiz (cont)

Slide 37

Slide 38

Slide 39

Laboratory 5.4 : Stepper Motor

Slide 41

Author: Richard Pfile & Stanley Chien, edited by Sarah Koskie, 2003

E-mail: skoskie@iupui.edu