| 数据搜索系统,热门电子元器件搜索 |
|
TN1180 数据表(PDF) 2 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
TN1180 数据表(HTML) 2 Page - STMicroelectronics |
|
2 / 9 page ![]() Why we use two's complement TN1180 1 Why we use two's complement Measuring analog values and storing the data in a digital domain creates an interesting dilemma. How do we represent negative analog values in a digital system? How do we handle the number zero? A computing system uses two's complement to simplify the processing logic required to handle negative numbers and subtractions. A circuit designed for addition can handle negative operands by using two’s complement. This minimizes the need for additional circuitry capable of subtraction or additional switching circuitry based on the sign. Most modern computers, MCU’s, and DSP’s use two’s complement notation. If a register is defined as two’s complement, typically the most significant bit (msb) of the most significant byte (MSB) indicates the sign as shown in the figure below. If the msb of the register is 1, the number is negative and we use two’s complement. If the bit is 0, the integer is positive and no translation is necessary. Figure 2: Sign bit indicates whether a value is positive or negative 2/9 DocID026298 Rev 1 0 = POS 1 = NEG pressure magnitude Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 bit 3 bit 2 bit 1 bit 0 PressOut_H (0x2A) PressOut_L (0x29) PressOut_XL (0x28) Bit 23 Bit 22 Bit 21 Bit 20 Bit 19 Bit 18 Bit 17 Bit 16 S I G N |
|
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |