| Electronic Components Datasheet Search |
|
TN1180 Datasheet(PDF) 2 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
TN1180 Datasheet(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 |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |