Docsity

Binary Representation and Digital Signals, Study notes of Electrical and Electronics Engineering

Partial preview of the text

Download Binary Representation and Digital Signals and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

Numerical Representa0on in Binary

ECE 3710, Spring 2012

Text Key

Chapters 7.1, 7.3 and 7.4 in the text

The Advantages of Working with Digital Signals

  • Noise: ASer noise is added to a an analog signal, it is nearly impossible to guess what the original amplitude was. However, with a digital signal, we know there are only two discrete amplitudes that contained, and thus noise has less of an impact.
  • Analog circuits typically require capacitors and inductors, which are very large components and do not allow for the miniaturiza0on that you can can get with transistors (Remember, making circuits smaller is the key to their success!)

Noise in Analog and Digital Circuits

1 0 1 1 (^1 ) 0 Analog Signal Digital Signal No Noise Noise

Digital “Words”

bit : A single binary digit (0 or 1) byte : 8 bits This a very small amount of informa0on, essen0ally all we can say is “Yes” or “No”. We would like to send more complex data. digital word : A group of logic variables Example: R: Raining? W: Windy? S: Sunny? bit(R): 0 No Rain, 1 Rain word(RWS): 011 No Rain, Windy and Sunny

Forms of TransmiXng Digital Informa0on

8 Parallel Transmission Serial Transmission B 1 B 2 B 3 B 4 Bn N bits N+ Lines Bn B 4 B 3 B 2 B 1 N bits 2 Lines Parallel is faster for data transmission

Why Can’t We Use Base-­‐10 for Digital Circuits?

Lets look at Base-­‐10, keeping in mind that we would like to represent a number with only 1’s and 0’s

2

1

0 How many different numbers can go into each power of ten place holder? Ten different numerals can go into each power of ten place holder (0,1,2,3,4,5,6,7,8,9). This is a problem for digital circuits, since we can only “represent” a 1 or a 0.

Binary Representa0on

Any number can be represented through only using 1’s and 0’s, this is called “Binary” or “Base-­‐2” representa0on.

5

4

3

2

1

0

We will put a binary 1 or 0 as the place holder! “Most Significant Bit” “Least Significant Bit”

Conver0ng Decimal to Binary

How would we convert a decimal number to binary?

Keep subtrac0ng the LARGEST power of two,

un0l you reach zero

2 0 1 2 1 2 2 2 4 2 3 8 2 4 16 2 5 32 2 6 64 2 7 128 2 8 256 Start by memorizing your power of two’s

Decimal to Binary Example

Convert 72 to binary 72! 64 = 8 1 " 2 6 8! 8 = 0 1 " 2 3 1001000 Convert 597 to binary 597! 512 = 85 1 " 2 9 85! 64 = 21 1 " 2 6 21! 16 = 5 1 " (^21001010101) 4 5! 4 = 1 1 " 2 2 1! 1 = 0 1 " 2 0

Subtrac0ng Binary Numbers

1000 11 ! 1 0 1000 ! (^0011) 1000 ! 0011 2 2 1 2 0101

What is Really Happening with Addi0on?

0

  • 0 0 0
  • 1 1 1
  • 0 1 1
  • 1 0
C = 1

Sum bit: Carry bit:

S =?

C =?

Think of the two bits that are being added as the INPUT Sum is an exclusive OR of the inputs Carry is an AND of the inputs

Building a Circuit that Adds Two Bits

S = A XOR B C = A AND B XOR AND Assuming you have circuit that can compute XOR and AND, can you build me the adder circuit? XOR AND A B S C

The Real Ques0on

Can you build a circuit that computes AND using only transistors and a power supply? A B OUT +

- V HIGH

For our next lecture!