lec03_handout

lec03_handout - Digital Data Acquisition Data...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
ME365 Digital Coding of Signals 1 Digital Data Acquisition Data Representation - Digital vs. Analog Analog-to-Digital Conversion Number Systems – Binary Numbers – Binary Arithmetic Sampling & Aliasing ME365 Digital Coding of Signals 2 Data Representation - Digital vs. Analog Digital : 1s and 0s, (1001 1011) 2 Advantages Disadvantages Analog : 3.141592687. .., 1/3 Advantages Disadvantages
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
ME365 Digital Coding of Signals 3 Binary Representation of Integers n bits binary: represents 2 n integers. Ex: 4 bit Binary: 2 4 = 16 integers, (0, 1, 2, …, 15). – MSB: M ost S ignificant B it – LSB: L east S ignificant B it Binary Numbers { { { { { . 1 or 0 ' where 2 2 2 2 2 2 ) ( 1 2 4 bits 0 0 1 1 2 2 ) 3 ( ) 3 ( ) 2 ( ) 2 ( ) 1 ( ) 1 ( 2 0 1 2 ) 3 ( ) 2 ( ) 1 ( LSB MSB = × + × + × + + × + × + × = s d d d d d d d d d d d d d i n n n n n n n n n n L 4 4 4 4 48 4 4 4 4 47 6 L ME365 Digital Coding of Signals 4 Binary Numbers - Coding Positive ( Unsigned ) Integers Straight Binary Decimal (10 1 10 0 ) 00 01 02 03 04 05 06 07 Binary (2 3 2 2 2 1 2 0 ) 2 0000 0001 0010 0011 0100 0101 0110 0111
Background image of page 2
ME365 Digital Coding of Signals 5 Binary Numbers - Coding Straight Binary (cont.) Decimal (132) 10 Binary (1011 0100) 2 Q: What are the decimal integers represented by an n bit straight binary number? ME365 Digital Coding of Signals 6 Binary Coded Decimal (BCD) – Used often in numerical displays. – Each digit of the decimal number is separately coded into binary number. 0 to 9, need 4 bits. 0123456 0000 ****** 0001 ** 0010 * ** ** 0011 * **** Ex: (3 6 4) 10 = Binary Number - Coding 3 0 1 24 5 6
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
ME365 Digital Coding of Signals 7 Binary Numbers - Coding Negative Integers Sign Bit Convention – Uses the MSB as the sign bit: MSB = 0 Positive MSB = 1 Negative – Have two zeros. Ex: Binary Decimal ( 2 2 2 1 2 0 ) 2 000 0 001 1 010 2 011 3 { { = 2 ) 101 0 ( { { = 2 ) 110 1 ( ME365 Digital Coding of Signals 8 Binary Numbers - Coding Negative Integers 2’s Complement – Positive Numbers: 0 … (2 (n-1) -1) – Negative Numbers are
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/26/2011 for the course ME 365 taught by Professor Merkle during the Fall '07 term at Purdue.

Page1 / 15

lec03_handout - Digital Data Acquisition Data...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online