9789333219020 Flipbook PDF


22 downloads 98 Views 10MB Size

Recommend Stories


Porque. PDF Created with deskpdf PDF Writer - Trial ::
Porque tu hogar empieza desde adentro. www.avilainteriores.com PDF Created with deskPDF PDF Writer - Trial :: http://www.docudesk.com Avila Interi

EMPRESAS HEADHUNTERS CHILE PDF
Get Instant Access to eBook Empresas Headhunters Chile PDF at Our Huge Library EMPRESAS HEADHUNTERS CHILE PDF ==> Download: EMPRESAS HEADHUNTERS CHIL

Story Transcript

As per Revised Syllabus of

MSBTE - I Scheme

Digital Techniques S.Y. Diploma Semester - III (Computer and Electronics Engineering Group) (CO/CM/CW/DE/EJ/ET/EN/EX/EQ/IE/IS/IC/MU)

Atul P. Godse

Dr. Mrs. Deepali A. Godse

M.S. Software Systems (BITS Pilani) M.E., Ph.D. (Computer Engg.) B.E. Industrial Electronics Head of Information Technology Det., Formerly Lecturer in Dept. of Electronics Engg. Bharati Vidyapeeth's College of Engg. for Women, Vishwakarma Institute of Technology Pune Pune

Ajaykumar K. Kakde

Sachin S. Mahulkar

M.E. (Digital Electronics) Lecturer in E & Tc, Cusrow Wadia Institute of Technology, Pune

B.E. (E & Tc), Lecturer in E & Tc JSPM's Jayawantrao Sawant Polytechnic, Hadapsar, Pune

Sharad S. Yenkar B.E. (E&Tc), Sr. Lecturer in E&Tc, Thakur Polytechnic, Kandivali, Mumbai

®

TM

TECHNICAL PUBLICATIONS

Website : www.technicalpublications.org https://www.facebook.com/technicalpublications

An Up-Thrust for Knowledge (i)

Digital Techniques S.Y. Diploma Semester - III (Computer and Electronics Engineering Group) (CO/CM/CW/DE/EJ/ET/EN/EX/EQ/IE/IS/IC/MU) First Edition : June 2018 Second Revised Edition : June 2019

ã Copyright with A.P. Godse and Dr. D.A. Godse All publishing rights (printed and ebook version) reserved with Technical Publications. No part of this book should be reproduced in any form, Electronic, Mechanical, Photocopy or any information storage and retrieval system without prior permission in writing, from Technical Publications, Pune.

Published by : ® TECHNICAL

TM

PUBLICATIONS

Amit Residency, Office No.1, 412, Shaniwar Peth, Pune - 411030, M.S. INDIA Ph.: +91-020-24495496/97, Telefax : +91-020-24495497 Email : [email protected] Website : www.technicalpublications.org

Price : ` 170/ISBN 978-93-332-1902-0

9 789333 219020 MSBTE I 9789333219020 [2]

(ii)

®

TM

TECHNICAL PUBLICATIONS - An up thrust for knowledge

®

TM

TECHNICAL PUBLICATIONS - An up thrust for knowledge

®

TM

TECHNICAL PUBLICATIONS - An up thrust for knowledge

®

TM

TECHNICAL PUBLICATIONS - An up thrust for knowledge

10

3

10

5 In power of 10

2

10

6

5  10

3

6  10

1

10

7 2

0

10 .

8

7  10

1

8  10

0

9 9  10

MSD

–1

–1

LSD

1101.101 2

3

2

2

2

1

2

0

2

MSB

TM

TECHNICAL PUBLICATIONS - An up thrust for knowledge

2

–2

2

–3

2

–4

LSB

Binary point

®

–1

2

3

1

N =

3

3

2 .

1

2

1

8

3

.

28

58 + 68 + 38 + 28

0

3

N =

2

2

3

=

1

16

1

16

F 2

0

D 0

3  16 + F  16 + D  16

F  16

1

2

1

0

2

1

0

3  16 + 15  16 + 13  16

+ TM

–3

1 –3

12 + 02 + 12

–3

02

–1

–1

–2 –2

8

–2

8

7

48

–1

48

–1

1

78

18

–3

+78

–2

+18

–3

–1

= (13.625)10

–3

–2

16

= (2970.611328)10

–2

4

8

+

2

12

16 .

–2

0 –1

4

+

D  16

3  16 N =

38

+

2

1

8

2 1

–1

12

0

0

68

2

1 1

8

6 3

02

2

8

5

2

0

0

12

16

®

2

0

1 3

1

12 + 12 + 02 + 12

58 N =

2

12

8 N =

2

0

12 N =

2

8  16

–1

4  16

–2

8  16

–1

+ 4  16

–2

8  16

–1

+ 4  16

–2

= (1021.515625)10

TECHNICAL PUBLICATIONS - An up thrust for knowledge

b31 b30 b29 b28 b27 b26 b25 b24 b23 b22 b21 b20 b19 b18 b17 b16 b15 b14 b13 b12 b11 b10 b9 b8

Nibble 7

Nibble 6

Nibble 5

Byte 3

Nibble 4

Nibble 3

Byte 2

®







TM

Nibble 1

Nibble 0

Nibble 2

Byte 0 Word 0

Double word



b3 b2 b 1 b 0

Byte 1

Word 1



b7 b6 b 5 b 4

TECHNICAL PUBLICATIONS - An up thrust for knowledge

Bit

Digital Techniques

Ex. 1.3.1

1-4

Number Systems and Codes

Ex. 1.3.3 Convert 1101101110 1001101 to hexadecimal equivalent.

Convert 10101101.0111 to octal equivalent.

Sol. :

Sol. : Step 1 : Make group of 3-bits starting from LSB for integer part and MSB for fractional part, by adding 0s at the end, if required.

Step 1 : Make group of 4-bits starting from LSB for integer part and MSB for fractional part, by adding 0s at the end, if required.

Step 2 : Write equivalent octal number for each group of 3-bits. Step 1.

0 1 0 1 0 1 1 0 1

Step 2.

2

5

0 1 1 1 0 0

5

Adding 0 to make a group of 3-bits

3

Step 2 : Write equivalent hexadecimal number for each group of 4-bits.

Binary (Base 2)

Step 1.

Octal (Base 8)

4

0 0 1 1 0 1 1 0 1 1 1 0

Step 2.

Adding 0s to make a group of 3-bits

3

6

E

A

(1101101110.1001101) 2 = (36E.9A) 16

1.3.2 Octal to Binary Conversion

1.3.4 Hexadecimal to Binary Conversion

· Conversion from octal to binary is a reversal of the

· Conversion from hexadecimal to binary is a reversal

process explained in the previous section. Each digit of the octal number is individually converted to its binary equivalent to get octal to binary conversion of the number. Ex. 1.3.2

9

Adding 0 to make a group of 4-bits

Adding 0s to make a group of 4-bits

(10101101.0111) 2 = (255.34) 8

1 0 0 1 1 0 1 0

of the process explained in the previous section. Each digit of the hexadecimal number is individually converted to its binary equivalent to get hexadecimal to binary conversion of the number.

Convert (125.62)8 to binary.

Sol. :

Ex. 1.3.4 Sol. :

Convert (8A9. B4)16 to binary.

Step 1 : Write equivalent 3-bit binary number for each octal digit.

Step 1 : Write equivalent 4-bit binary number of each hexadecimal digit.

Step 2 : Remove any leading or trailing zeros. 1

2

5

Step 1.

0 0 1 0 1 0 1 0 1

Step 2.

1 0 1 0 1 0 1 Leading zeros

6

Step 2 : Remove any leading or trailing zeros.

Octal (Base 8)

2

1 1 0 0 1 0

8

1 1 0 0 1 Trailing zero

9

B

4

Step 1.

1 0 0 0 1 0 1 0 1 0 0 1

1 0 1 1 0 1 0 0

Step 2.

1 0 0 0 1 0 1 0 1 0 0 1

1 0 1 1 0 1 Trailing zeros

(125.62) 8 = (1010101.11001) 2

(8A9. B4) 16 = (1000 1010 1001.101101) 2

1.3.3 Binary to Hexadecimal Conversion

1.3.5 Octal to Hexadecimal Conversion

· The base for hexadecimal numbers is 16 and the

· The

easiest way to convert octal number to hexadecimal number is given below.

base for binary numbers is 2. · The base for hexadecimal number is the fourth

power of the base for binary numbers. Therefore, by grouping 4 digits of binary numbers and then converting each group digit to its hexadecimal equivalent we can convert binary number to its hexadecimal equivalent. ®

A

TM

1.

Convert octal number to its binary equivalent.

2.

Convert binary number to its hexadecimal equivalent.

TECHNICAL PUBLICATIONS - An up thrust for knowledge

Digital Techniques

Ex. 1.3.5 Sol. :

1-5

Number Systems and Codes

Convert (615.25)8 to its hexadecimal equivalent.

Step 1 : Write equivalent 3-bit binary number for each octal digit. Step 2 : Make group of 4-bits starting from LSB for integer part and MSB for fractional part by adding 0s at the end, if required. Step 3 : Write equivalent octal number for each group to 4-bits. 6

1

5

2

Step 1.

1 1 0 0 0 1 1 0 1

Step 2.

0 0 0 1 1 0 0 0 1 1 0 1

Step 3.

1

8

Octal (Base 8)

5

0 1 0 1 0 1

Binary (Base 2)

0 1 0 1 0 1 0 0

Binary (Base 2)

D

5

Adding 0s to make a group of 4-bits

Hex (Base 16)

4

Adding 0s to make a group of 4-bits

1.3.6 Hexadecimal to Octal Conversion · The easiest way to convert hexadecimal number to octal number is given below.

1.

Convert hexadecimal number to its binary equivalent.

2.

Convert binary number to its octal equivalent.

Ex. 1.3.6 Sol. :

Convert (BC66. AF)16 to its octal equivalent.

Step 1 : Write equivalent 4-bit binary number for each hexadecimal digit. Step 2 : Make group of 3-bits starting from LSB for integer part and MSB for fractional part by adding 0s at the end, if required. Step 3 : Write equivalent octal number for each group of 3-bits. B

C

6

6

A

Step 1.

1 0 1 1 1 1 0 0 0 1 1 0 0 1 1 0

Step 2.

0 0 1 0 1 1 1 1 0 0 0 1 1 0 0 1 1 0

Step 3.

1

3

6

1

4

6

Hex (Base 16)

F

1 0 1 0 1 1 1 1

Binary (Base 2)

1 0 1 0 1 1 1 1 0

Binary (Base 2)

5

Adding 0s to make a group of 3-bits

3

Octal (Base 8)

6

Adding 0 to make a group of 3-bits

1.3.7 Converting any Radix to Decimal · In general, numbers can be represented as

N = An where

1

rn

1

An

2r

n

2

...

A 1r 1

A 0r0

A

1r

1

A

2r

2

... C

N = Number in decimal A = Digit r = Radix or base of a number system n = The number of digits in the integer portion of number m = The number of digits in the fractional portion of number

®

TM

TECHNICAL PUBLICATIONS - An up thrust for knowledge

mr

m

Get in touch

Social

© Copyright 2013 - 2024 MYDOKUMENT.COM - All rights reserved.