lab 04 :serial data control systems : slide 2 slide 3 slide 4 nor gate: nand gate: nor / nand...

8
Lab 04 :Serial Data Control Systems : Slide 2 Slide 3 Slide 4 NOR Gate: NAND Gate: NOR / NAND Alternate Symbols: Slide 5 XOR and XNOR Gate: Serial Data Basics: Slide 6 AND Gating Serial Data: Slide 7 Rule for using alternate symbols: Slide 8

Upload: dortha-edwards

Post on 23-Dec-2015

218 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Lab 04 :Serial Data Control Systems : Slide 2 Slide 3 Slide 4 NOR Gate: NAND Gate: NOR / NAND Alternate Symbols: Slide 5 XOR and XNOR Gate: Serial Data

Lab 04 :Serial Data Control Systems :

Slide 2

Slide 3

Slide 4

NOR Gate:

NAND Gate:

NOR / NAND Alternate Symbols:Slide 5

XOR and XNOR Gate:

Serial Data Basics:

Slide 6

AND Gating Serial Data:

Slide 7

Rule for using alternate symbols:

Slide 8

Page 2: Lab 04 :Serial Data Control Systems : Slide 2 Slide 3 Slide 4 NOR Gate: NAND Gate: NOR / NAND Alternate Symbols: Slide 5 XOR and XNOR Gate: Serial Data

Logic 1

Logic 0

Logic 0

Logic 0

Logic 0

Logic 1

Logic 1

Logic 0

Logic 1

Lab 04 : NOR Gate

The NOR gate is equivalent to an OR gate with a NOT gate connected to its output. NOR comes from the words Not OR. Continue to see the standard symbol for NOR.

Input AOutput XInput B

NOR

5v

5v

5v

Logic 0

Logic 1

Logic 0

System animation: In order to see how it works, the gate has been connected to 2 switches and LED. Continue to see the system in action…

BAX Boolean Equation: here is the equation for the NOR gate.

A B X

0 0 1

0 1 0

1 0 0

1 1 0

NOR SymbolTruth Table: The table shows that the NOR gate responds with a low at

the output if the signal applied to the input A or B is high.

Slide #2

Page 3: Lab 04 :Serial Data Control Systems : Slide 2 Slide 3 Slide 4 NOR Gate: NAND Gate: NOR / NAND Alternate Symbols: Slide 5 XOR and XNOR Gate: Serial Data

5v

5v

5v

Logic 1

Logic 1

Logic 0

Logic 0

Logic 1

Logic 1

Logic 1

Logic 0

Logic 1

Lab 04 : NAND Gate

The NAND gate is equivalent to an AND gate with a NOT gate connected to its output. NAND comes from the words Not AND. Continue to see the standard symbol for NAND.

Input AOutput XInput B

NANDLogic 0

Logic 1

Logic 0

System animation: In order to see how it works, the gate has been connected to 2 switches and LED. Continue to see the system in action…

BAX Boolean Equation: here is the equation for the NAND gate.

A B X

0 0 1

0 1 1

1 0 1

1 1 0

NAND SymbolTruth Table: The table shows that the NAND gate responds with a low at

the output if the signal applied to the input A and B is high.

Slide #3

Page 4: Lab 04 :Serial Data Control Systems : Slide 2 Slide 3 Slide 4 NOR Gate: NAND Gate: NOR / NAND Alternate Symbols: Slide 5 XOR and XNOR Gate: Serial Data

Lab 04 : XOR Gate

The XOR gate is an exclusive OR gate. It will output a logic 1 if there is an exclusive logic 1 at input A or B. Exclusive means: Only one input can be high at one time.

Input AOutput XInput B

XOR

BAX XOR Boolean Equation:

A B X

0 0 0

0 1 1

1 0 1

1 1 0

Truth Table: The table shows that the XOR gate responds with a high at the output if the signal applied to the input A or B is high (but not both high).

The XNOR gate is an exclusive OR gate with an NOT gate at the output. It will output a logic 0 if there is an exclusive logic 1 at input A or B.

A B X

0 0 1

0 1 0

1 0 0

1 1 1

Input AOutput XInput B

XNORXOR Boolean Equation:

BAX

Slide #4

Page 5: Lab 04 :Serial Data Control Systems : Slide 2 Slide 3 Slide 4 NOR Gate: NAND Gate: NOR / NAND Alternate Symbols: Slide 5 XOR and XNOR Gate: Serial Data

Lab 04 : NOR and NAND Gate Alternate Symbols:The NAND and NOR logic gate symbols you have studied are called the “standard” symbols. Each gate also has an “alternate” symbol.

NAND

NORNOT

Alternate NOR Alternate NAND

A B X

0 0 1

0 1 1

1 0 1

1 1 0

A B X

0 0 1

0 1 0

1 0 0

1 1 0

Alternate NOR GATE: The bubbles at the input of the NOR gate implies that a “logic 0” at input A and a “logic 0” at input B are required to produce a “logic 1” at output X (NO bubble at output).

0 AND 0 = 1

Alternate NAND GATE: The bubbles at the input of the NAND gate implies that a “logic 0” at input A or a “logic 0” at input B are required to produce a “logic 1” at output X (NO bubble at output).

0 OR 0 = 1

The “standard” logic symbols for the NAND and NOR gates indicates a gates response to “logic 1” at the input.

Slide #5

Page 6: Lab 04 :Serial Data Control Systems : Slide 2 Slide 3 Slide 4 NOR Gate: NAND Gate: NOR / NAND Alternate Symbols: Slide 5 XOR and XNOR Gate: Serial Data

Lab 04 :Rule for Using the Alternate symbols :The basic logic gates AND, OR, and NOT have standard logic symbols and alternate logic symbols. A general rule for using alternate symbols exists. The rule is a guide and not a strict rule. Some designers do not use the rule but many do.

=Standard Alternate

==

The rule is simple : Active high device connects to active high symbol : Active low device connects to the active low symbol.

Example: Connect an LED to an AND gate:

There are two types of LED connections.

Active High LED

A logic 1 lights the LED

1 Active Low LED

5V

A logic 0 lights the LED

0

Active high device connects to active high symbol (standard).Active low device connects to the active low symbol (alternate).

Slide #6

Page 7: Lab 04 :Serial Data Control Systems : Slide 2 Slide 3 Slide 4 NOR Gate: NAND Gate: NOR / NAND Alternate Symbols: Slide 5 XOR and XNOR Gate: Serial Data

Lab 04 : Gating digital signals: Basic Theory

Digital systems communicate to each other using a Serial Data stream. You will learn what Serial Data is and how logic gates can be used to control the flow of this digital information.

Serial Data is a pulse waveform

The pulse waveform represents a series of 1’s and 0’s.

1 0 0 1 1 1 0 1 0

The series of 1’s and 0’s can sent to a device like a printer. The printer can group the bits into a code. The code could be used to print out a character on a piece of paper.

A

10

01

11

01

0

A Logic Gate and a Control Switch can be used to build a control system. This system can alter the transfer of Serial Data from input B to output Y.

Logic Gate

Control Switch

5v

5v

A

BY

The position of the Control Switch (1 or 0) and the type of Logic Gate (AND, OR, NOR …) create different control schemes. However all control schemes generate responses from a group of 4:

1- The Serial Data is transferred.

Y=B

0

1

3- The Serial Data is blocked.

Output Y= Logic 0.

0

1

4- The Serial Data is blocked.

Output Y= Logic 1.

0

1

2- The inverse of the Serial Data is transferred. Y = B

0

1

Slide #7

Page 8: Lab 04 :Serial Data Control Systems : Slide 2 Slide 3 Slide 4 NOR Gate: NAND Gate: NOR / NAND Alternate Symbols: Slide 5 XOR and XNOR Gate: Serial Data

Lab 04 : AND Gating digital signalsThe “And Gate” will be used to control the flow of Serial Data. Waveforms will be drawn to determine the output response (Y).

The position of the Control Switch is represented by waveform A. When A=0 the switch is in the lower position. When A=1 the switch is in the upper position. Proceed to view the animation.

Control Switch

5v

5v

A

BYAND

Gate

1 0 0 1 1 1 0 0 1 1 0

B

A

To draw the output response (Y) it is helpful to draw vertical lines at each transition of waveform A and B.

Y

The vertical lines create horizontal sections. These sections will be used to determine the output response.Start at the the first section B=1 and A=0. For an AND gate the response is Y=0. Draw Y for that section.

The next section B=0 and A=0. For an AND gate the response is Y=0. Draw Y for that section.

The next section B=0 and A=1. For an AND gate the response is Y=0. Draw Y for that section.

The next section B=1 and A=1. For an AND gate the response is Y=1. Draw Y for that section.

Continue to use this technique to complete the drawing of output waveform Y.

Now that the waveform is drawn we can proceed to a more general discussion about the control system.

The AND gate blocks the Serial Data and Y=0 when the Control Switch is 0.

The AND gate passes the Serial Data and Y=B when the Control Switch is 1.

Slide #8