1 of 3 123101
INTRODUCTION
The DS1847 and DS1848 are digitally controlled resistors. The look-up tables in these parts are used to store
Resistor positions that discretely compensate for the user’s application temperature dependence across the
range -40oC to +102oC in 2oC increments. Two such tables are provided per chip, one for Resistor 0 (Table 1
in data sheet) and one for Resistor 1 (Table 2 in data sheet). They are selectable via a table select byte
located at address E0. Each look-up table contains 72 bytes (00 to 47h): location 00 corresponds to the -40oC
setting, location 47h corresponds to the +102oC setting. Once a table is selected fill in the 72 discrete
Resistor position values, which range from 00 to FF. All 72 locations must be filled with resistor position
values: if your temperature range is below +102oC or above -40oC, fill in copies of the last position value to
cover the unused temperature range. In this Application Note we will review how these positions are derived
for a desired output. The end-to-end resistance values will vary by up to 20% from part to part due to process
variation; additionally, this resistance has a temperature coefficient. The sections below show how errors due
to Resistance variation across process and across temperature can be nulled out. Also, a calibration method
utilizing true resistance values rather than position values is detailed.
FACTORY CHARACTERIZATION
Each part is factory characterized by Dallas for its resistance value across temperature and a characteristic
set of parameters is derived to describe this part (Equation 1). The impetus for this characterization is the
need to generate an equivalence between actual resistance value and position value for every part. Without
such an equivalence the user’s error budget , in terms of his deliverable, might need to include an additional
entry for resistance error at all temperatures where system calibration was not done. To illustrate this,
consider the transfer functions in Figure 1. G1 represents the conversion of Position into Resistance as
embodied in Equation 2. G2 represents the conversion of Resistance into the user’s deliverable, OUT. G2 is
what the user characterizes on his bench in order to understand his system’s behavior across temperature. G1
varies from part to part and across temperature and should not be included in the bench characterization: it is
provided for every part as explained below. Note that G1 is linear at a constant temperature and it contains
an offset term; both slope and offset vary with temperature. G1 describes the conversion in Equation 2; the
converse describes Equation 1, that is Resistance to Position.
Figure 1
Application Note 167
Considerations for the DS1847/1848
Look-Up Tables
www.maxim-ic.com
Position OUT
Resistance
G1 G2
AN167
2 of 3
Equation 1
()()
[
]
() ( ) ( )
[]
aa -
-·+-·+·
-·+-·+·-
=2
2
25251
25251
),,( CzCyx
CwCvuR
CRpos
a is an offset and is given in the data sheet. Select the value corresponding to 50K or 10K full scale.
R = the resistance desired at the output terminal of the DS1847 or DS1848
C = temperature in degrees Celsius
u, v, w, x, y & z are values to be derived from register contents shown in Table A. Each resistor (R0 or R1)
has such bytes loaded in the corresponding look-up table (1 or 2). The values u through z are obtained by
multiplying the corresponding LSB value by the decimal equivalent of the registers contents in Table A.
Double Bytes are MSB first (28 for Example), LSB last (29 for Example).
Important Note: Once locations 28h through 33h have been read and stored in the tester they are ready to
accept Resistor position values generated by the tester as explained in the next paragraph. Make sure you do
not write to these locations before you read the bytes they contain unless you are skipping the procedure
explained in this and the next paragraph.
Conversely,
Equation 2
()()
[
]
[]
{
}
()()
[
]
22 25251),,(25251)( -·+-·+·++·-·+-·+·= CwCvuCRposCzCyxR aa
From a quick glance one can solve for R at position 0 at 25oC as uxR +·=
a
. Likewise, R at position 255
(FF) at 25oC is uxR ++·= )255(
a
. This is a quick check on resistance values at room temp representing
both ends of the scale.
Table A
Address (HEX) Variable LSB
28 – 29 u 2-8
2A – 2B v 10-6
2C – 2D w 10-9
2E – 2F x 2-8
30 – 31 y 10-7
32 – 33 z 10-10
USER TESTING METHODOLOGY
Once the user has bench characterized his prototype application circuits he is ready to write a procedure for
production test. With a good degree of confidence about the temperature behavior of his application (G2 in
Figure 1) he determines the number of temperature points he would like Production to test at. He also will
advise them on how to generate the remainder of the look-up table positions using an algorithm specific to
his application in the fashion described below.
An example on how to include Equation (1) and (2) is as follows. Given a performance Pout (Optical Output
Power of a laser) the user’s system is ramped up to deliver this level of power by successive commands to
the DS1847, which has been placed in “Manual Mode” (01h in Register E1). For Resistor 0 these commands
consist of sending values ranging between 00 and FF to Register F0 until Pout is achieved; practically
speaking, this is when the power emitted exceeds the target by a DP resulting from a ½ LSB Resistance or
AN167
3 of 3
less. The test is done at any given number of temperatures T1…Tn (for some users only T1 is desired so as
to minimize test time). This results in a number of positions (pos1…posn) for the Resistor, as stored in the
tester that issued those commands. The tester uses Equation (2) to calculate R1…Rn. Now the tester
calculates all 72 Resistor values, for every 2oC increments, per the user’s algorithm from a function R = f
(Pout, temp, R1…Rn) that the user has provided for the range -40oC to +102oC; Pout is constant. Now using
Equation (1) the corresponding 72 positions are derived. These values are then used to fill the look-up table.
It is important, in order for the user’s fitting algorithm or equation to be accurate, that his function R be
derived using true values R1...Rn rather than position values as in R = f (Pout, temp, R1…Rn).
Note: Remember to load Register E1 with the value 03h after the look-up tables are filled. This places the
part in automatic (look-up driven) mode. You can skip this last note if you are planning on powering down
and then powering up: power cycling places the device in look-up table driven mode by default.