10
LTC1291
1291fa
Table 1. Microprocessor with Hardware Serial Interfaces
Compatible with the LTC1291**
PART NUMBER TYPE OF INTERFACE
Motorola
MC6805S2, S3 SPI
MC68HC11 SPI
MC68HC05 SPI
RCA
CDP68HC05 SPI
Hitachi
HD6305 SCI Synchronous
HD6301 SCI Synchronous
HD63701 SCI Synchronous
HD6303 SCI Synchronous
HD64180 SCI Synchronous
National Semiconductor
COP400 Family MICROWIRE
COP800 Family MCROWIRE/PLUS
NS8050U MICROWIRE/PLUS
HPC16000 Family MICROWIRE/PLUS
Texas Instruments
TMS7002 Serial Port
TMS7042 Serial Port
TMS70C02 Serial Port
TMS70C42 Serial Port
TMS32011* Serial Port
TMS32020* Serial Port
TMS370C050 SPI
* Requires external hardware
** Contact LTC marketing for interface information for processors not on
this list
MICROWIRE and MICROWIRE/PLUS are trademarks of National
Semiconductor Corporation.
Unipolar Transfer Curve
0V
1LSB
V
REF
–2LSB
V
REF
–1LSB
V
REF
V
IN
0 0 0 0 0 0 0 0 0 0 0 1
0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 0
1291 AI05b
Output Code
The LTC1291 performs a unipolar conversion. The follow-
ing shows the output code and transfer curve:
OUTPUT CODE
1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 0
0 0 0 0 0 0 0 0 0 0 0 1
0 0 0 0 0 0 0 0 0 0 0 0
INPUT VOLTAGE
V
REF
– 1LSB
V
REF
– 2LSB
1LSB
0V
INPUT VOLTAGE
(V
REF
= 5V)
4.9988V
4.9976V
0.0012V
0V
1291 AI05a
Unipolar Output Code
Microprocessor Interfaces
The LTC1291 can interface directly (without external hard-
ware) to most popular microprocessors’s (MPU) synchro-
nous serial formats (see Table 1). If an MPU without a
dedicated serial port is used, then three of the MPU’s
parallel port lines can be programmed to form the serial
link to the LTC1291. Included here are one serial interface
example and one example showing a parallel port pro-
grammed to form the serial interface.
Motorola SPI (MC68HC11)
The MC68HC11 has been chosen as an example of an MPU
with a dedicated serial port. This MPU transfers data MSB
-first and in 8-bit increments. The D
IN
word sent to the data
register starts the SPI process. With three 8-bit transfers,
the A/D result is read into the MPU. The second 8-bit
transfer clocks B11 through B8 of the A/D conversion
result into the processor. The third 8-bit transfer clocks the
remaining bits, B7 through B0, into the MPU. The data is
right justified in the two memory locations. ANDing the
second byte with 0D
HEX
clears the four most significant
bits. This operation was not included in the code. It can be
inserted in the data gathering loop or outside the loop
when the data is processed.
U
S
A
O
PP
L
IC
AT
I
WU
U
I FOR ATIO
11
LTC1291
1291fa
Timing Diagram for Interface to the MC68HC11
LABEL MNEMONIC OPERAND COMMENTS
LTC1291 AI07
D
OUT
FROM LTC1291 STORED IN MC68HC11 RAM
B2 B1
B0
B3
B4
B6
B7 B5
0
0
LSB
MSB
#62
#63
0
0 B11
B10
B9 B8
CLK
D
OUT
CS
ANALOG
INPUTS
D0
SCK
MC68HC11
D
IN
MISO
LTC1291
CH0
CH1
BYTE 1
BYTE 2
MOSI
Hardware and Software Interface to Motorola MC68HC11
MC68HC11 CODE
In this example the D
IN
word configures the input MUX for
a single-ended input to be applied to CH0. The conversion
result is output MSB-first.
CS
CLK
D
OUT
MPU
RECEIVED
WORD
LTC1291 AI06
SGL/
DIFF
START
MSBF PS
B3B7 B6 B5 B4 B2 B0B1B11 B10 B9 B8
D
IN
MPU
TRANSMIT
WORD
BYTE 3 (DUMMY)
BYTE 2
000
SGL/
DIFF
1
BYTE 1
X
ODD/
EVEN
MSBF
PS
X
X
X
X
000
X
X
X
XX
X
X
X
BYTE 3
BYTE 2
BYTE 1
B11
?
?
?
0
B10
B8
B9
B7
B6
B4
B5 B3
B2
B0
B1
DON'T CARE
ODD/
EVEN
???
?????
LABEL MNEMONIC OPERAND COMMENTS
LDAA #$50 CONFIGURATION DATA FOR SPCR
STAA $1028 LOAD DATA INTO SPCR ($1028)
LDAA #$1B CONFIG. DATA FOR PORT D DDR
STAA $1009 LOAD DATA INTO PORT D DDR
LDAA #$03 LOAD DIN WORD INTO ACC A
STAA $50 LOAD DIN DATA INTO $50
LDAA #$60 LOAD DIN WORD INTO ACC A
STAA $51 LOAD DIN DATA INTO $51
LDAA #$00 LOAD DUMMY DIN WORD INTO
ACC A
STAA $52 LOAD DUMMY DIN DATA INTO $52
LDX #$1000 LOAD INDEX REGISTER X WITH
$1000
LOOP BCLR $08,X,#$01 D0 GOES LOW (CS GOES LOW)
LDAA $50 LOAD DIN INTO ACC A FROM $50
STAA $102A LOAD DIN INTO SPI, START SCK
U
S
A
O
PP
L
IC
AT
I
WU
U
I FOR ATIO
12
LTC1291
1291fa
STAA $102A LOAD DUMMY DIN INTO SPI,
START SCK
WAIT3 LDAA $1029 CHECK SPI STATUS REG
BPL WAIT3 CHECK IF TRANSFER IS DONE
BSET $08,X#$01 D0 GOES HIGH (CS GOES HIGH)
LDAA $102A LOAD LTC1291 LSBs IN ACC
STAA $63 STORE LSBs IN $63
JMP LOOP START NEXT CONVERSION
Interfacing to the Parallel Port of the Intel 8051 Family
The Intel 8051 has been chosen to show the interface
between the LTC1291 and parallel port microprocessors.
Usually the signals CS, D
IN
and CLK are generated on three
port lines and the D
OUT
signal is read on a fourth port line.
LDAA $1029 CHECK SPI STATUS REG
WAIT1 BPL WAIT1 CHECK IF TRANSFER IS DONE
LDAA $51 LOAD DIN INTO ACC A FROM $51
STAA $102A LOAD DIN INTO SPI, START SCK
WAIT2 LDAA $1029 CHECK SPI STATUS REG
BPL WAIT2 CHECK IF TRANSFER IS DONE
LDAA $102A LOAD LTC1291 MSBs INTO ACC A
STAA $62 STORE MSBs IN $62
LDAA $52 LOAD DUMMY DIN INTO ACC A
FROM $52
LABEL MNEMONIC OPERAND COMMENTS
LABEL MNEMONIC OPERAND COMMENTS
Timing Diagram for Interface to Intel 8051
Hardware and Software Interface to Intel 8051
LTC1291 AI09
D
OUT
FROM LTC1291 STORED IN 8051 RAM
00
0
0
B0
B2
B3 B1
B10
B11
LSB
MSB
R2
R1
B9
B8 B7
B6
B5 B4
CLK
D
OUT
CS
ANALOG
INPUTS
P1.4
P1.3
8051
D
IN
P1.2
MUX ADDRESS
A/D RESULT
LTC1291
CH0
CH1
This works very well. One can save a line by tying the D
IN
and D
OUT
lines together. The 8051 first sends the start bit
and MUX Address to the LTC1291 over the line connected
to P1.2. Then P1.2 is reconfigured as an input and the 8051
reads back the 12-bit A/D result over the same data line.
CS
CLK
DATA
(D
IN
/D
OUT
)
LTC1291 AI08
13
24
5
PS BIT LATCHED
INTO LTC1291
8051 P1.2 OUTPUT DATA
TO LTC1291
8051 P1.2 RECONFIGURED
AS INPUT AFTER THE 5TH RISING
CLK BEFORE THE 5TH FALLING CLK
LTC1291 SENDS A/D RESULT
BACK TO 8051 P1.2
LTC1291 TAKES CONTROL OF DATA
LINE ON 5TH FALLING CLK
START
B11
SGL/
DIFF
ODD/
SIGN
MSBF
PS
B10
B9
B8
B7
B6
B5
B4
B3 B2
B1
B0
U
S
A
O
PP
L
IC
AT
I
WU
U
I FOR ATIO

LTC1291CCN8#PBF

Mfr. #:
Manufacturer:
Analog Devices Inc.
Description:
Analog to Digital Converters - ADC 12-Bit Serial I/O 2/Ch Input ADC
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet