















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A comprehensive overview of number systems, including decimal, binary, and bcd (binary coded decimal). It covers key concepts such as radix, weight, and value, and explains how to convert between different number systems. The document also delves into binary arithmetic operations, including addition, subtraction, multiplication, and division, and explores various binary codes like gray code and ascii. It concludes with a discussion of signed numbers and their representation using signed magnitude, 1's complement, and 2's complement methods.
Typology: Slides
1 / 23
This page cannot be seen from the preview
Don't miss anything!
















I. Caùc heä thoáng soá ñeám:
10 2 10 1 10 0
. 10 - 1 10 - 2 10 - 3 4x 2 0x 1 7x 0 . 6x
2 2 2 1 2 0
. 2 - 1 2 - 2 2 - 3 1x 2 0x 1 1x 0 . 0x
8 : 2 = 4 dö 0 (LSB) 4 : 2 = 2 dö 0 2 : 2 = 1 dö 0 1 : 2 = 0 dö 1 0.625 x 2 = 1 .25 phaàn nguyeân 1 (MSB) 0.25 x 2 = 0 .5 phaàn nguyeân 0 0.5 x 2 = 1 .0 phaàn nguyeân 1
b. Töø thaäp phaân sang thaäp luïc phaân:
1480 : 16 = 92 dö 8 (LSD) 92 : 16 = 5 dö 12 5 : 16 = 0 dö 5 0.4296875 x 16 = 6 .875 phaàn nguyeân 6 (MSD) 0.875 x 16 = 14 .0 phaàn nguyeân 14
II. Soá nhò phaân (Binary): 1.Caùc tính chaát cuûa soá nhò phaân
a. Pheùp coäng: 0 + 0 = 0 0 + 1 = 1 1 + 0 = 1 1 + 1 = 0 nhôù 1
b. Pheùp tröø: 0 - 0 = 0 0 - 1 = 1 möôïn 1 1 - 0 = 1 1 - 1 = 0
quaù 3 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0 1 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 Maõ 1 trong 10 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0
b. Maõ Gray: laø maõ nhò phaân maø 2 giaù trò lieân tieáp nhau coù toå hôïp bit bieåu dieãn chæ khaùc nhau 1 bit Giaù trò Binary Gray 0 1 2 3 4
Ñoåi töø Binary sang Gray
Ñoåi töø Gray sang Binary
Gray: Gray:
(Coät) b 6 b 5 b 4 (Haøng) 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 b 3 b 2 b 1 b 0 Hex 0 1 2 3 4 5 6 7 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0 1 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 0 1 2 3 4 5 6 7 8 9 A B C D E F NUL SOH STX ETX EOT ENQ ACK BEL BS HT LF VT FF CR SO SI DLE DC DC DC DC NAK SYN ETB CAN EM SUB ESC FS GS RS US SP ! ” # $ % & ’ ( ) * + , -. / 0 1 2 3 4 5 6 7 8 9 : ; < = >? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ DEL d. Maõ kyù töï ASCII:
III. Soá nhò phaân coù daáu :
n- 1
n- 1
c. Soá buø_2 (2’s Complement):
n
Buø_2 (1 0 0 1) = 2 4
n- 1
n- 1