22
LTC1417
sn1417 1417fas
t
2
t
3
12345678910111213141516
CONVST
EXTCLKIN
t
10
t
dEXTCLKIN
t
5
HOLD
SAMPLE
t
6
t
4
t
9
t
8
BUSY
SCLK
RD
12345678910111213141516 1 2 34
1211109876543210
FILL
ZEROS
D13
Hi-Z
DATA N
Hi-Z
(SAMPLE N)
D
OUT
t
CONV
t
7
1417 F20
D11D12
CAPTURE ON
RISING CLOCK
D13
t
12
t
11
SCLK
V
IL
V
OH
V
OL
D
OUT
CAPTURE ON
FALLING CLOCK
t
LSCLK
t
HSCLK
LTC1417
BUSY
CONVSTCONVST
RD
EXTCLKIN
SCLK
D
OUT
613
12
7
14
9
µP OR DSP
CLKOUT
INT
C0
SCK
MISO
APPLICATIONS INFORMATION
WUU
U
Figure 20. External Conversion Clock Selected. Data Transferred After Conversion
Using an External SCLK. BUSY Indicates End of Conversion
Using an External Conversion Clock and an External
Data Clock. In Figure 20, data is also output after each
conversion is completed and before the next conversion is
started. An external clock is used for the conversion clock
and either another or the same external clock is used for
the SCLK. This mode is identical to Figure 19 except that
an external clock is used for the conversion. This mode
allows the user to synchronize the A/D conversion to an
external clock either to have precise control of the internal
bit test timing or to provide a precise conversion time. As in
Figure 19, this mode works when the SCLK frequency is
very low (less than 30kHz). However, the external conver-
sion clock must be between 30kHz and 9MHz to maintain
accuracy. If more than 16 SCLKs are provided, more zeros
will be filled in after the data word indefinitely. To select the
external conversion clock, apply an external conversion
clock to EXTCLKIN. The external SCLK is applied to SCLK.
RD can be used to gate the external SCLK such that data will
be clocked out only after RD goes low.
23
LTC1417
sn1417 1417fas
TYPICAL APPLICATIONS
U
Figure 21 shows the connections necessary for interfacing
the LTC1417 and LTC1391 8-channel signal acquisition
system to an SPI port. With the sample software routine
shown in Listing A, the SPI uses MOSI to send serial data
to the LTC1391 8-channel multiplexer, selecting one of
eight MUX channels.
While data is sent to the LTC1391, SPI uses MISO to
retrieve conversion data from the LTC1417. After the data
transfer is complete, the conversion start signal is sent to
the LTC1417. The end of conversion is signaled by a logic
high on the BUSY output. When this occurs, data is
exchanged between the LTC1417/LTC1391 and the
controller.
The timing diagram in Figure 22 shows the relation be-
tween MUX channel selection data and the conversion
data that are simultaneously exchanged. There is a two
conversion delay between the MUX data selects a given
channel and when that channel’s data is retrieved.
Figure 21. 0V to 4.096V, 8-Channel Data Acquisition System Configured
for Control and Data Retrieval by a 68HC11 µC. Code is Shown in Listing A
1417 F21
1µF
10µF
5V
10µF
1
2
3
4
5
6
7
8
16
15
14
13
12
11
10
9
LTC1417
5V5V
NC
NC
PORT C, BIT 7
PORT C, BIT 0
SS
MISO
MC68HC11
CLK
MOSI
A
IN
+
A
IN
V
REF
REFCOMP
AGND
EXTCLKIN
SCLK
CLKOUT
V
DD
V
SS
BUSY
CONVST
RD
SHDN
DGND
D
OUT
LTC1391
S0
S1
S2
S3
S4
S5
S6
S7
16
15
14
13
12
11
10
9
V
+
D
V
D
OUT
D
IN
CS
CLK
DGND
IN1
IN2
IN3
IN4
IN5
IN6
IN7
IN8
1
2
3
4
5
6
7
8
0.1µF
24
LTC1417
sn1417 1417fas
TYPICAL APPLICATIONS
U
***********************************************************************
* *
* This example program retrieves data from a previous LTC1417 *
* conversion and loads the next LTC1391 MUX channel. It stores the *
* 14-bit, right justified data in two consecutive memory locations. *
* It finishes by initiating the next conversion. *
* *
***********************************************************************
*
************************************
* 68HC11 register definitions *
************************************
*
PIOC EQU $1002 Parallel I/O control register
* “STAF,STAI,CWOM,HNDS, OIN, PLS, EGA,INVB”
PORTC EQU $1003 Port C data register
* “Bit7,Bit6,Bit5,Bit4,Bit3,Bit2,Bit1,Bit0”
DDRC EQU $1007 Port D data direction register
* “Bit7,Bit6,Bit5,Bit4,Bit3,Bit2,Bit1,Bit0”
* 1 = output, 0 = input
PORTD EQU $1008 Port D data register
* “ - , - , SS* ,CSK ;MOSI,MISO,TxD ,RxD “
DDRD EQU $1009 Port D data direction register
SPCR EQU $1028 SPI control register
* “SPIE,SPE ,DWOM,MSTR;SPOL,CPHA,SPR1,SPR0”
SPSR EQU $1029 SPI status register
* “SPIF,WCOL, - ,MODF; - , - , - , - “
SPDR EQU $102A SPI data register; Read-Buffer; Write-Shifter
*
* RAM variables to hold the LTC1417’s 14 conversion result
*
DIN1 EQU $00 This memory location holds the LTC1417’s bits 13 - 08
DIN2 EQU $01 This memory location holds the LTC1417’s bits 07 - 00
MUX EQU $02 This memory location holds the MUX address data
*
*******************************************
* Start GETDATA Routine *
*******************************************
*
ORG $C000 Program start location
INIT1 LDAA #$03 0,0,0,0,0,0,1,1
* “STAF=0,STAI=0,CWOM=0,HNDS=0, OIN=0, PLS=0, EGA=1,INVB=1”
STAA PIOC Ensures that the PIOC register’s status is the same
* as after a reset, necessary of simple Port D manipulation
LDAA #$01 0,0,0,0,0,0,0,1
* “Bit7=input,- ,- ,- ,- ,- ,- ,Bit0=output”
* Bit7 used for BUSY signal input, Bit0 used for CONVST
* signal output
STAA DDRC The direction of PortD’s bits are now set
LDAA PORTC Get contents of Port C
ORAA #%00000001 Set Bit0 high
STAA PORTC Initialize CONVST to a logic high
LDAA #$2F -,-,1,0;1,1,1,1
* -, -, SS*-Hi, SCK-Lo, MOSI-Hi, MISO-Hi, X, X
STAA PORTD Keeps SS* a logic high when DDRD, bit 5 is set
LDAA #$38 -,-,1,1;1,0,0,0
STAA DDRD SS* , SCK, MOSI are configured as Outputs
* MISO, TxD, RxD are configured as Inputs
* DDRD’s bit 5 is a 1 so that port D’s SS* pin is a general output
LDAA #$50
STAA SPCR The SPI is configured as Master, CPHA = 0, CPOL = 0
* and the clock rate is E/2
Listing A

LTC1417IGN#TRPBF

Mfr. #:
Manufacturer:
Analog Devices Inc.
Description:
Analog to Digital Converters - ADC L Pwr 14-B, 400ksps Smpl ADC Conv w/ Ser
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union