DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

AN753 データシートの表示(PDF) - Microchip Technology

部品番号
コンポーネント説明
メーカー
AN753 Datasheet PDF : 4 Pages
1 2 3 4
AN753
BINARY TWO’S COMPLEMENT CODE
In some applications it may be necessary for an ADC
to convert negative and positive values. The logic mod-
ification that allows this flexibility in the digital output
code is to produce the bipolar results called offset
binary two’s complement. Binary two’s complement
arithmetic is widely used in microcontrollers, calcula-
tors and computers.
Binary two’s complement is not as straight forward as
the scheme for straight binary. The codes are not con-
tinuous from one end to the other due to the discontinu-
ity that occurs at the analog bipolar zero.
The two’s complement of a negative binary number is
generated by logically complementing all the digits of
the positive binary number, hence converting it to the
negative binary number counterpart as shown in
Table 2. With this coding scheme, the MSB can be con-
sidered a sign indicator. When the MSB is a logic ‘0’, a
positive value is indicated and when the MSB is a logic
‘1’, a negative value is indicated.
This system is has an odd number of codes and only
one zero state. It is also mathematically consistent
making it synergistic with signed arithmetic functions.
Median Voltage (V)
Digital Code
0.875 FS (7/8 FS)
0.75 FS (6/8 FS)
0.625 FS (5/8 FS)
0.5 FS (4/8 FS)
0.375 FS (3/8 FS)
0.25 FS (2/8 FS)
0.125 FS (1/8 FS)
0
-0.125 FS (-1/8 FS)
-0.25 FS (-2/8 FS)
-0.375 FS (-3/8 FS)
-0.5 FS (-4/8FS)
-0.625 FS (-5/8 FS)
-0.75 FS (-6/8 FS)
-0.875 FS (-7/8 FS)
-1 FS
0111
0110
0101
0100
0011
0010
0001
0000
1111
1110
1101
1100
1011
1010
1001
1000
TABLE 2: The binary two’s complement
representation of zero volts is also equal to a digital
(0000). The analog positive full-scale minus one LSB
digital representation is equal to (0111) and the analog
negative full-scale representation is (1000).
The A/D converters from Microchip that produce a
binary two’s complement output code are from the
TC340X, TC53X, TC7109, TC85 and all I2C/SMBus
thermal sensors families.
These devices are operated in a full-differential input
mode. In this mode, the full-scale range of the device is
equal to:
FS range = (IN+MAX (IN-MIN)) + (IN-MAX(IN+MIN))
And the input voltage presented to the converter is
equal to:
AIN = ((IN+)(IN-))
These converters will produce digital code that repre-
sents both negative and positive analog inputs.
DS00753A-page 2
2001 Microchip Technology Inc.

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]