LTC1404 LINER [Linear Technology], LTC1404 Datasheet - Page 21

no-image

LTC1404

Manufacturer Part Number
LTC1404
Description
Complete SO-8, 12-Bit, 600ksps ADC with Shutdown
Manufacturer
LINER [Linear Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
LTC1404CS8
Manufacturer:
LT
Quantity:
20 000
Part Number:
LTC1404IS8#PBF
Manufacturer:
Linear Technology
Quantity:
135
Part Number:
LTC1404IS8#TRPBF
Manufacturer:
LINEAR/凌特
Quantity:
20 000
TYPICAL APPLICATIONS
/*Section 1: Initialization*/
.module/ram/abs = 0 adspltc;
/*Section 2: Configure SPORT0*/
start:
/*to configure SPORT0 control reg*/
THE ADSP-2181. FRAME SYNC PULSE IS GENERATED FROM RFS.
jump start;
nop; nop; nop;
rti; rti; rti; rti;
rti; rti; rti; rti;
rti; rti; rti; rti;
rti; rti; rti; rti;
ax0 = rx0;
dm (0x2000) = ax0; /*begin of SPORT0 receive interrupt*/
rti;
rti; rti; rti; rti;
rti; rti; rti; rti;
rti; rti; rti; rti;
rti; rti; rti; rti;
rti; rti; rti; rti;
rti; rti; rti; rti;
ax0 = 0x2F0D;
dm (0x3FF6) =ax0;
THIS PROGRAM DEMONSTRATES THE LTC1404 INTERFACE TO
DATA SHIFT CLOCK IS EXTERNALLY GENERATED.
/*jump over interrupt vectors*/
/*code vectors here upon IRQ2 int*/
/*code vectors here upon IRQL1 int*/
/*code vectors here upon IRQL0 int*/
/*code vectors here upon SPORT0 TX int*/
/*Section 5*/
/* */
/* */
/*end of SPORT0 receive interrupt*/
/*code vectors here upon /IRQE int*/
/*code vectors here upon BDMA interrupt*/
/*code vectors here upon SPORT1 TX (IRQ1) int*/
/*code vectors here upon SPORT1 RX (IRQ0) int*/
/*code vectors here upon TIMER int*/
/*code vectors here upon POWER DOWN int*/
/*SPORT0 address = 0X3FF6*/
/*RFS is used for frame sync generation*/
/*RFS is internal, TFS is not used*/
/*bit 0-3 = Slen*/
/*F = 15 = 1111*/
/*E = 14 = 1110*/
/*D = 13 = 1101*/
/*bit 4,5 data type right justified zero filled MSB*/
/*bit 6 INVRFS = 0*/
/*bit 7 INVTFS = 0*/
/*bit 8 IRFS=1 receive internal frame sync*/
/*bit 9,10,11 are for TFS (don’t care)*/
/*bit 12 RFSW=0 receive is Normal mode*/
/*bit 13 RTFS=1 receive is framed mode*/
/*bit 14 ISCLK=0 SCLK is external */
/*bit 15 multichannel mode = 0*/
/*normal mode, bit 12=0*/
/*if alternate mode bit 12=1, ax0=0x3F0E*/
/*define the program module*/
U
ADSP2181 Code for Circuit
/*Section 3: configure CLKDIV and RFSDIV, setup interrupts*/
/*Using an external clock source=9.6MHz*/
/*Does not need to configure CLKDIV*/
/*to Configure RFSDIV*/
/*to setup interrupt*/
/*Section 4: Configure System Control Register and Start Communication*/
/*to configure system control reg*/
/*frame sync pulse regenerated automatically*/
do waitloop until ce;
waitloop: nop;
.endmod;
ax0 = 15;
dm(0x3FF4) =ax0;
ifc= 0x0066;
icntl= 0;
imask= 0x0020;
ax0 = dm(0x3FFF);
ay0 = 0xFFF0;
ar = ax0 AND ay0;
ay0 = 0x1000;
ar = ar OR ay0;
dm(0x3FFF) = ar;
cntr = 5000;
nop;
nop;
nop;
nop;
nop;
nop;
rts;
/*set the RFSDIV reg = 15*/
/*=> the frame sync pulse for every 16 SCLK*/
/*if frame sync pulse in every 15 SCLK, ax0=14*/
/*clear any extraneous SPORT interrupts*/
/*IRQXB = level sensitivity*/
/*disable nesting interrupt*/
/*bit 0 = timer int = 0*/
/*bit 1 = SPORT1 or IRQ0B int = 0*/
/*bit 2 = SPORT1 or IRQ1B int = 0*/
/*bit 3 = BDMA int = 0*/
/*bit 4 = IRQEB int = 0*/
/*bit 5 = SPORT0 receive int = 1*/
/*bit 6 = SPORT0 transmit int = 0*/
/*bit 7 = IRQ2B int = 0*/
/*enable SPORT0 receive interrupt*/
/*read the system control reg*/
/*set wait state to zero*/
/*bit 12 = 1, enable SPORT0*/
LTC1404
21

Related parts for LTC1404