当前位置:网站首页>Learning notes of digital circuit (II)
Learning notes of digital circuit (II)
2022-06-28 03:58:00 【Jiangnan small workshop】
Decimal system
- Abacus is a decimal counter , Any number can be used 0,1,2,3,4,5,6,7,8,9 this 10 One or more of the numbers , Arranged according to a certain rule to show , Its counting rule “ Dot into one ”.
- 10=1×101+0×100, With 10 A counting system based on Radix .
- Such as 4587.29 It can be expressed as :4587.29=4×103+5×102+8×101+7×100+2×10-1+9×10-2, among 103、102、101、100 Thousand bits respectively 、 Hundred bit 、 The right of ten digits and each digit , The weight of the number to the right of the decimal point is a negative power .
- Generally speaking , Any decimal number can be expressed as : ( N ) D = ∑ i = − ∞ ∞ K i × 1 0 i (N)_D=\sum_{i=-\infty }^{\infty }K_i×10^i (N)D=i=−∞∑∞Ki×10i
- D(Decimal) For decimal .
- Expand
- hold 10 use R Instead of , You can get the expression of any decimal number : ( N ) D = ∑ i = − ∞ ∞ K i × R i (N)_D=\sum_{i=-\infty }^{\infty }K_i×R^i (N)D=i=−∞∑∞Ki×Ri
- K i K_i Ki yes i i i Coefficient of power , According to the cardinality R R R Different , Its value is 0 To R-1 A different number . For example, for decimal numbers , R R R by 10, therefore K i K_i Ki The values for 0~9 common 10 Number .
- Digital circuits are not convenient for storing or processing decimal numbers . The basic idea of forming a digital circuit is to correspond the state of the circuit to the number . Binary only 0 And 1 Two numbers , It is represented by two states of digital circuit . Decimal 10 A digital number requires that the circuit have 10 A completely different state , This makes the circuit very complicated .
Binary system
- Binary , Only 0 And 1 Two numbers , Counting rule “ On the two into one ”, namely 1+1=10=1×21+0×20.
- Binary is based on 2 A counting system based on Radix . Any binary number can be expressed as : ( N ) B = ∑ i = − ∞ ∞ K i × 2 i (N)_B=\sum_{i=-\infty }^{\infty }K_i×2^i (N)B=i=−∞∑∞Ki×2i
- K i K_i Ki Cardinal number “2” Of the i i i Coefficient of power , It can be “0” perhaps “1”.
- Put the binary number (1010110)B Convert to decimal :
- (1010110)B=1×26+0×25+1×24+0×23+1×22+1×21+0×20=(86)D
- advantage :
- The digital circuit is simple and reliable , Few components are used .
- The basic operation rules are simple , Easy to operate .
- shortcoming : There are too many digits , Not easy to write or read , Inconvenient to use .
- When entering the computer , The computer first converts decimal numbers into binary numbers that the digital system can accept ; At the end of the operation , Then convert binary numbers to decimal numbers , Output decimal results .
Four operations of binary system
- Addition operation
- “ On the two into one ”, The operation rules are as follows :0+0=0,0+1=1,1+0=1,1+1=10.
- When you meet “1+1” And then move to the adjacent high position 1.

- Subtraction
- “ Borrow one for two ”, The operation rules are as follows :0-0=0,1-0=1,1-1=0,10-1=1.
- When you meet “0-1” when , It is necessary to borrow from a high position 1 When 2 use .

- Multiplication
- “ Multiply the numbers , Then add ”, The operation rules are as follows :0×0=0,1×0=0,0×1=0,1×1=1.

- “ Multiply the numbers , Then add ”, The operation rules are as follows :0×0=0,1×0=0,0×1=0,1×1=1.
- Division operations
- “ Divide the numbers , And then subtract ”, The operation rules are as follows :0÷1=0, 1÷1=1.

- “ Divide the numbers , And then subtract ”, The operation rules are as follows :0÷1=0, 1÷1=1.
Binary waveform representation
- Binary data is usually represented by digital waveform , In binary 0~15

- The leftmost column indicates the bit weight of binary numbers (20、21、22), Its lowest (Least Significant Bit, LSB), highest (Most Significant Bit, MSB), The last line marks the equivalent 0~15 The decimal number of .
Transmission of binary data
- Binary data is transferred from one place to another , It can be serial or parallel .
- Serial mode :
- A group of data is transmitted bit by bit under the control of a clock pulse .
- The equipment required is simple , Only one conductor and a common grounding terminal are required .
- Between two computers , Or the computer is connected to the network through the telephone line .

- Under the control of clock pulse , The data is represented by the highest bit MSB To the lowest LSB In turn . One clock cycle is required for each bit transmitted , And it is completed at the falling edge of the clock pulse .
- Parallel transmission :
- Fast transmission speed , Transfer a set of binary data at the same time .
- The equipment required is complex , Multiple transmission lines and other components are required .
- Parallel transmission is a common technique in digital systems .

- Pictured , need 8 Transmission line . transmission 8 The time required for bit data is the period of a clock pulse , Only serial transmission time 1/8.
Hexadecimal number
- Hexadecimal numbers have 16 Number :0,1,2,3,4,5,6,7,8,9,A(10),B(11),C(12),D(13),E(14),F(15).
- Every 16 to one .
- (3A6.D)16=3×162+10×161+6×160+13×16-1.
- Hexadecimal common letters H Express , so (3A6.D)16=(3A6.D)H.
Number conversion
Binary to decimal
- Multiply the bits of binary number by bit weight and then sum .
- (101.1)2=1×22+0×21+1×20+1×2-1=4+0+1+0.5=(5.5)10
Decimal to binary
- Adopt Division 2 Surplus method , Divide decimal numbers by 2, And write down the remainder in turn , Divide until the quotient is 0, Finally, put all the remainder in reverse order , You can get binary numbers .


- Adopt Division 2 Surplus method , Divide decimal numbers by 2, And write down the remainder in turn , Divide until the quotient is 0, Finally, put all the remainder in reverse order , You can get binary numbers .
Binary to hexadecimal
- From the decimal point to the left 、 Right click 4 Bit grouping , Insufficient 4 Bit , The integer part can be added to the left of the highest bit 0 A filling , The decimal part is not enough 4 Bit , Add... To the right of the lowest position 0 A filling , Each group is replaced by its corresponding hexadecimal number , Write out the hexadecimal numbers in turn .


- From the decimal point to the left 、 Right click 4 Bit grouping , Insufficient 4 Bit , The integer part can be added to the left of the highest bit 0 A filling , The decimal part is not enough 4 Bit , Add... To the right of the lowest position 0 A filling , Each group is replaced by its corresponding hexadecimal number , Write out the hexadecimal numbers in turn .
Hexadecimal number to binary number
- From left to right, use... For each number in the hexadecimal number to be converted 4 Bit binary number means .

- From left to right, use... For each number in the hexadecimal number to be converted 4 Bit binary number means .
边栏推荐
- 云应用、服务的“5层”架构
- STM32 peripheral SDIO and SD card configuration
- Anaconda command usage
- 力扣每日一题-第29天-523.在区间范围统计奇数数目
- Pychart shares third-party modules among different projects
- 17 `bs object Node name h3 Parent ` parents get parent node ancestor node
- TypeError: &# 039; module&# 03…
- [graduation season] graduate summary
- 如何修改SE38编辑器主题
- 如何系统学习一门编程语言? | 黑马程序员
猜你喜欢
随机推荐
One article tells you what kubernetes is
从遇见大咖到成为大咖,昇腾AI开发者创享日给开发者带来无限可能
Talking about cloud primitiveness, we have to talk about containers
leetcode - 329. 矩阵中的最长递增路径
Automatic backup of MySQL database
11_刻意练习精讲
English语法_形容词/副词3级 - 比较级
Principle and Simulation of switching power supply buck circuit
applicationContext. Getbeansoftype obtains the execution methods of all implementation classes under an interface or obtains the operation application scenarios such as implementation class objects. L
第14章 AC-DC电源前级电路 笔记一
力扣每日一题-第29天-575.分糖果
数据库系列之MySQL中的执行计划
"Five layer" architecture of cloud applications and services
错排兼排列组合公式
Self use tool unity video player that monkeys can use
Learning - useful resources
Cannot edit in read-only editor if it appears in vscode
数据库系列之MySQL配置F5负载均衡
音频 scipy 中 spectrogram 的运作机制
Anaconda命令用法









