22
LTC1286/LTC1298
TYPICAL APPLICATIONS N
U
Interfacing to the Parallel Port of the INTEL 8051
Family
The Intel 8051 has been chosen to demonstrate the
interface between the LTC1298 and parallel port micro-
processors. Normally the CS, CLK and D
IN
signals would
be generated on 3 port lines and the D
OUT
signal read on
a 4th port line. This works very well. However, we will
demonstrate here an interface with the D
IN
and D
OUT
of the
LTC1298 tied together as described in the SERIAL INTER-
FACE section. This saves one wire.
The 8051 first sends the start bit and MUX address to the
LTC1298 over the data line connected to P1.2. Then P1.2
is reconfigured as an input (by writing to it a one) and the
8051 reads back the 12-bit A/D result over the same data
line.
LABEL MNEMONIC OPERAND COMMENTS
MOV A, #FFH D
IN
word for LTC1298
SETB P1.4 Make sure CS is high
CLR P1.4 CS goes low
MOV R4, #04 Load counter
LOOP 1 RLC A Rotate D
IN
bit into Carry
CLR P1.3 SCLK goes low
MOV P1.2, C Output D
IN
bit to LTC1298
SETB P1.3 SCLK goes high
DJNZ R4, LOOP 1 Next bit
MOV P1, #04 Bit 2 becomes an input
CLR P1.3 SCLK goes low
MOV R4, #09 Load counter
LOOP 2 MOV C, P1.2 Read data bit into Carry
RLC A Rotate data bit into Acc.
SETB P1.3 SCLK goes high
CLR P1.3 SCLK goes low
DJNZ R4, LOOP 2 Next bit
MOV R2, A Store MSBs in R2
CLR A Clear Acc.
MOV R4, #04 Load counter
LOOP 3 MOV C, P1.2 Read data bit into Carry
RLC A Rotate data bit into Acc.
SETB P1.3 SCLK goes high
CLR P1.3 SCLK goes low
DJNZ R4, LOOP 3 Next bit
MOV R4, #04 Load counter
LOOP 4 RRC A Rotate right into Acc.
DJNZ R4, LOOP 4 Next Rotate
MOV R3, A Store LSBs in R3
SETB P1.4 CS goes high
D
OUT
FROM 1298 STORED IN 8501 RAM
MSB
R2 B11 B10 B9 B8 B7 B6 B5 B4
LSB
R3 B3 B2 B1 B0 0 0 0 0
CS
CLK
D
OUT
D
IN
LTC1298
ANALOG
INPUTS
P1.4
P1.3
P1.2
8051
MUX ADDRESS
A/D RESULT
LTC1286/98 TA01
CLK
MSBF BIT LATCHED
INTO LTC1298
8051 P1.2 OUTPUTS DATA
TO LTC1298
LTC1298 SENDS A/D RESULT
BACK TO 8051 P1.2
LTC1298 TAKES CONTROL OF DATA
LINE ON 4TH FALLING CLK
8051 P1.2 RECONFIGURED
AS IN INPUT AFTER THE 4TH RISING CLK
AND BEFORE THE 4TH FALLING CLK
MSBF B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
SGL/
DIFF
START
DATA
(
D
IN
/D
OUT
)
LTC1286/98 TA02
CS
ODD/
SIGN
23
LTC1286/LTC1298
A “Quick Look” Circuit for the LTC1286
Users can get a quick look at the function and timing of the
LT1286 by using the following simple circuit (Figure 13).
V
REF
is tied to V
CC
. V
IN
is applied to the +IN input and the
–IN input is tied to the ground. CS is driven at 1/16 the
clock rate by the 74C161 and D
OUT
outputs the data. The
output data from the D
OUT
pin can be viewed on an
oscilloscope that is set up to trigger on the falling edge of
CS (Figure 14). Note the LSB data is partially clocked out
before CS goes high.
TYPICAL APPLICATIONS N
U
Micropower Battery Voltage Monitor
A common problem in battery systems is battery voltage
monitoring. This circuit monitors the 10 cell stack of NiCad
or NiMH batteries found in laptop computers. It draws only
67µA from the 5V supply at f
SMPL
= 0.1kHz and 25µA to
55µA from the battery. The 12-bits of resolution of the
LTC1286 are positioned over the desired range of 8V to
16V. This is easily accomplished by using the ADC’s
differential inputs. Tying the –input to the reference gives
an ADC input span of V
REF
to 2V
REF
(2.5V to 5V). The
resistor divider then scales the input voltage for 8V to 16V.
Figure 13. “Quick Look” Circuit for the LTC1286
CLR
CLK
A
B
C
D
P
GND
V
CC
RC
QA
QB
QC
QD
T
LOAD
74C161
V
IN
TO OSCILLOSCOPE
CLOCK IN 250kHz
LTC1286/98 F13
V
CC
CLK
D
OUT
LTC1286
+IN
–IN
GND
4.7µF
5V
5V
V
REF
CS
Figure 14. Scope Trace the LTC1286 “Quick Look” Circuit
Showing A/D Output 101010101010 (AAA
HEX
)
Figure 15. Micropower Battery Voltage Monitor
39k
5V
LT1004-2.5
200k
91k
3
BATTERY MONITOR
INPUT 8V TO 16V
1µF
0.1µF
CS
CLK
D
OUT
LTC1286
LTC1286/98 F15
–IN
V
CC
V
REF
GND
+IN
MSB
(B11)
VERTICAL: 5V/DIV
HORIZONTAL: 10µs/DIV
LSB
(B0)
NULL
BIT
LTC1286/98 F14
Information furnished by Linear Technology Corporation is believed to be accurate and reliable.
However, no responsibility is assumed for its use. Linear Technology Corporation makes no represen-
tation that the interconnection of its circuits as described herein will not infringe on existing patent rights.
24
LTC1286/LTC1298
Linear Technology Corporation
1630 McCarthy Blvd., Milpitas, CA 95035-7487
(408) 432-1900
FAX
: (408) 434-0507
TELEX
: 499-3977
LINEAR TECHNOLOGY CORPORATION 1994
sn128698 128698fs LT/GP 0394 10K • PRINTED IN USA
Dimensions in inches (millimeters) unless otherwise noted.
PACKAGE DESCRIPTION
U
N8 Package
8-Lead Plastic DIP
0.045 ± 0.015
(1.143 ± 0.381)
0.100 ± 0.010
(2.540 ± 0.254)
0.065
(1.651)
TYP
0.045 – 0.065
(1.143 – 1.651)
0.130 ± 0.005
(3.302 ± 0.127)
0.020
(0.508)
MIN
0.018 ± 0.003
(0.457 ± 0.076)
0.125
(3.175)
MIN
12
3
4
876
5
0.250 ± 0.010
(6.350 ± 0.254)
0.400
(10.160)
MAX
0.009 – 0.015
(0.229 – 0.381)
0.300 – 0.320
(7.620 – 8.128)
0.325
+0.025
0.015
+0.635
0.381
8.255
()
1
2
3
4
0.150 – 0.157*
(3.810 – 3.988)
8
7
6
5
0.189 – 0.197*
(4.801 – 5.004)
0.228 – 0.244
(5.791 – 6.197)
SO8 0294
0.016 – 0.050
0.406 – 1.270
0.010 – 0.020
(0.254 – 0.508)
× 45°
0°– 8° TYP
0.008 – 0.010
(0.203 – 0.254)
0.053 – 0.069
(1.346 – 1.752)
0.014 – 0.019
(0.355 – 0.483)
0.004 – 0.010
(0.101 – 0.254)
0.050
(1.270)
BSC
*THESE DIMENSIONS DO NOT INCLUDE MOLD FLASH OR PROTRUSIONS.
MOLD FLASH OR PROTRUSIONS SHALL NOT EXCEED 0.006 INCH (0.15mm).
S8 Package
8-Lead Plastic SOIC

LTC1286IS8#PBF

Mfr. #:
Manufacturer:
Analog Devices Inc.
Description:
Analog to Digital Converters - ADC uP Smpl 12-B A/D Convs In S0-8 Packages
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union