Professional Documents
Culture Documents
Introduction
Many of the Intersil DSP products have selectable data 2’s Complement: A binary code in which positive and neg-
formats for their input/output interfaces. Table 1 defines the ative codes of the same magnitude sum to all zero’s plus a
codes as used in these interfaces. Because many carry. The 2’s complement can be generated from the Offset
applications involve conversion of the analog signals, the Binary code by inverting the MSB. A negative number is
analog scale is given as a reference. This table should clarify generated by inverting each bit of the positive number, then
adding one.
the interface of the DSP parts to the data conversion device.
Example: 011 (+3) → 100 + 1 = 101 (-3)
Table 1 also helps users understand the basis for each of
these formats. The following definitions are offered as the 1’s Complement: Bipolar binary code in which positive and
basis for each code format: negative codes of the same magnitude sum to all one’s. A
negative number is generated by investing each bit of the
Offset Binary: A binary code in which the code repre-
positive number.
sents analog values between Full Scale and -Full Scale. All
zero corresponds to -Full Scale. This code can be balanced Example: 011 (+3) → 100 (-3)
by appending a 1 below the LSB.
Sign Magnitude: A binary code in which the MSB repre-
sents positive (1) and negative (0) polarities. The code in the
table uses a offset binary code to represent the magnitude
portion of the number.
-0 1111....1111 0000....0000
3-1 1-888-INTERSIL or 321-724-7143 | Intersil and Design is a trademark of Intersil Corporation. | Copyright © Intersil Corporation 2000
Application Note 9657
As an example, let’s plot a cosine wave in each of the data Figures 1 through 4 illustrate these signals when converted
formats. Assume that full scale is ±1V. Table 2 details the back to analog using an offset binary converter.
values of the sampled sinusoid in each of the data formats.
3-2
Application Note 9657
32 32
24 24
DIGITAL MAGNITUDE
DIGITAL MAGNITUDE
1.0 16 16
OFFSET BINARY 1.0 2’S COMPLEMENT
ANALOG MAGNITUDE
ANALOG MAGNITUDE
8 8
0 0 0 0
COS (nπT/16)
COS(nπT/16)
-8 -8
FIGURE 1. OFFSET BINARY CODE PLOTTING COS(nT) † FIGURE 2. 2’S COMPLEMENT BINARY CODE PLOTTING
COS(nT) †
32 1.0 32
COS(nπT/16)
24
16
DIGITAL MAGNITUDE
ANALOG MAGNITUDE
DIGITAL MAGNITUDE
1.0 16
1’S COMPLEMENT
ANALOG MAGNITUDE
8 0 0
SIGN MAGNITUDE
0 0
-16
COS(nπT)
-8
FIGURE 3. 1’S COMPLEMENT BINARY CODE PLOTTING FIGURE 4. SIGN MAGNITUDE/OFFSET BINARY CODE
COS(NT) † PLOTTING COS(nT) †
† Note that the solid line denotes the regular cosine wave and the dashed line denotes the plot of the digital format code, connected to decimal.
All Intersil semiconductor products are manufactured, assembled and tested under ISO9000 quality systems certification.
Intersil semiconductor products are sold by description only. Intersil Corporation reserves the right to make changes in circuit design and/or specifications at any time with-
out notice. Accordingly, the reader is cautioned to verify that data sheets are current before placing orders. Information furnished by Intersil is believed to be accurate and
reliable. However, no responsibility is assumed by Intersil or its subsidiaries for its use; nor for any infringements of patents or other rights of third parties which may result
from its use. No license is granted by implication or otherwise under any patent or patent rights of Intersil or its subsidiaries.
For information regarding Intersil Corporation and its products, see web site www.intersil.com
3-3