Number Systems数系
Digital circuits are inherently binary in nature, but several types of representations of numerical data are in use. 数字电路本质上是二进制的,但存在多种数值数据的表示方式。
The representation of an unsigned integer can be done in binary, octal, decimal or hexadecimal. For display purposes, each decimal digit is often represented by a four-bit binary number in a system called binary coded decimal (BCD). Conversions between these representations can be handled in a routine manner. 无符号整数可以以二进制、 octal、十进制或十六进制的形式表示。在显示时,通常采用一种称为二进制编码十进制(BCD)的系统,将每个十进制数字用四个二进制位表示。这些表示之间的转换可以以常规方式处理。
The representation of signed numbers presents more problems and those problems are addressed in various ways. Some of the codes used are "sign magnitude", "offset binary", "2's complement", "excess-3", "4221", and "Gray". A table can show the display of four-bit integers. 有符号数的表示方法带来了更多问题,这些问题通过各种方式得到解决。一些常用的编码方式包括“符号幅度”、“偏移二进制”、“补码”、“超前3”、“4221”和“格雷码”。一个表格可以展示四位整数的表示形式。
![]() |
Index Electronics concepts Digital Circuits 索引 电子学概念 数字电路 | ||
|
Go Back
返回 |
Alphanumeric Coding字母数字编码
For the inherently binary world of the computer, it is necessary to put all symbols, letters, numbers, etc. into binary form. The most commonly used alphanumeric code is the ASCII code, with others like the EBCDIC code being applied in some communication applications. 对于计算机这种本质上二进制的世界来说,所有符号、字母、数字等都必须转换为二进制形式。最常用的字母数字编码是ASCII编码,其他如EBCDIC编码则在某些通信应用中被使用。
|
Index Electronics concepts Digital Circuits 索引 电子学概念 数字电路 | |||
|
Go Back
返回 |
Parity Checks宇称检查
Errors in digital code will result in the changing of a 0 to a 1 or vice versa. One helpful method for determining if a single error of that type has ocurred is to check the evenness or oddness of the sum of the set bits. To facilitate this check an extra bit called the parity bit is added to each word in a data transmission. In the even-parity method the parity bit is chosen so that the total number of 1's including the parity bit is even. The receiver checks the parity to detect any single-bit errors. The same thing can be accomplished with an odd-parity method, so it is necessary to know which is being used in order to communicate with a host computer. It will also be necessary to know how many data bits and how many stop bits are being used. 数字电码中的误差会导致0变1或反之。一种有助于确定是否发生了此类单个错误的方法是检查一组比特的和的奇偶性。为了便于这种检查,每个数据传输中的字都会添加一个额外的比特,称为奇偶校验比特。在偶校验方法中,奇偶校验比特被选择使得包括奇偶校验比特在内的1的总数为偶数。接收端通过检查奇偶性来检测任何单比特错误。使用奇校验方法也可以实现相同的效果,因此要与主机计算机通信,必须知道正在使用哪种方法。此外,还需要知道使用了多少数据比特和停止比特。
|
Index Electronics concepts Digital Circuits 索引 电子学概念 数字电路 | ||
|
Go Back
返回 |