LTC1402 Linear Technology, LTC1402 Datasheet - Page 18

no-image

LTC1402

Manufacturer Part Number
LTC1402
Description
Serial 12-Bit/ 2.2Msps Sampling ADC with Shutdown
Manufacturer
Linear Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
LTC1402CGN
Manufacturer:
LT
Quantity:
10 000
Part Number:
LTC1402CGN#TRPBF
Manufacturer:
LINEAR/凌特
Quantity:
20 000
Part Number:
LTC1402IGN
Manufacturer:
NEC
Quantity:
6 945
Part Number:
LTC1402IGN#PBF
Manufacturer:
LINEAR/凌特
Quantity:
20 000
Part Number:
LTC1402IGN#TRPBF
Manufacturer:
LINEAR/凌特
Quantity:
20 000
LTC1402
;
breceive:
;
bufull:
;
bsend return_enable
;
**********************************************************************
*
*
*
**********************************************************************
ON
OFF
YES
NO
BIT_8
BIT_10
BIT_12
BIT_16
GO
**********************************************************************
* This is an example of how to initialize the Buffered Serial Port (BSP).
* The BSP is initialized to require an external CLK and FSX for
* operation. The data format is 16-bits, burst mode, with autobuffering
* enabled.
*
*
*****************************************************************************************************
*Timing at BSP pins in DSKPLUS TMS320c542 board with inverters at BCLKR and BFSR.
*BFSR Pin JP1-20 ~\___/~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\___/~~~~~~~~~~*
*BCLKR Pin JP1-14 _/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/~\_/
*BDR Pin JP1-26 -_—_—<REF-B11-B10-B09-B08-B07-B06-B05-B04-B03-B02-B01-B00>—_—_—<REF-B11-
*CLKIN Pin JP5-09 ~~~~~\_______/~~~~~~~\_______/~~~~~~~\_______/~~~~~~~\_______/~~~~~~~\_______/~~~~
*
*A 2 place right shift is needed to right justify the input data.
*The REF bit is also be masked in this example
*****************************************************************************************************
*
Loopback
Format
IntSync
IntCLK
BurstMode
CLKDIV
PCM_Mode
FS_polarity
CLK_polarity
Frame_ignore
XMTautobuf
RCVautobuf
XMThalt
RCVhalt
XMTbufAddr
XMTbufSize
18
APPLICATIONS
————————Buffered Receive Interrupt Routine —————————
——————————— end ISR ——————————————
ifr = #10h
TC = bitf(@BSPCE,#4000h)
if (NTC) goto bufull
bspce = #(2023h + 08000h)
return_enable
———————mask and shift input data after 2k buffer is full——-
b = *ar3+ << -2
b = #00FFFh & b
b = #00800h ^ b
*ar2+ = data(#0bh)
TC = (@ar2 == #02000h) ; output buffer is 2k starting at 1800h
if (TC) goto start
goto bufull
—————————dummy bsend return————————————
;initialize buffered serial port
BSP initialization code for the ‘C54x DSKplus
for use with 1402 in standard mode
BSPC and SPC are the same in the ‘C542
.set 1
.set !ON
.set 1
.set !YES
.set 2
.set 1
.set 3
.set 0
.set 0x80
.set NO
.set NO
.set BIT_16
.set NO
.set
.set YES
.set 3
.set
.set YES
.set NO
.set NO
.set
.set 0x000
.set
.set
.set NO
NO
NO
0x800
YES
!YES
U
; load acc b with BSP buffer and shift right 2
; mask out the REF bit and the 3 other tristate bits
; invert BIPOLAR MSB. Comment this line in UNIPOLAR mode
; store B to out buffer and advance AR2 pointer
; restart if out buffer is at 1fffh
;this is a dummy return to define bsend
;in vector table below
INFORMATION
;(digital looback mode?)
;(Data format? 16,12,10,8)
;(internal Frame syncs generated?)
;(internal clks generated?)
;(if BurstMode=NO, then Continuous)
;(3=default value, 1/4 CLOCKOUT)
;(Turn on PCM mode?)
;(change polarity)YES=^^^\_/^^^, NO=___/^\___
;(change polarity)for BCLKR YES=_/^, NO=~\_
;(transmit autobuffering)
;(receive autobuffering)
;(transmit buff halt if XMT buff is full)
;(receive buff halt if RCV buff is full)
;(address of transmit buffer)
;(length of transmit buffer)
U
;(inverted !YES -ignores frame)
; clear interrupt flags
; check which half (bspce(bit14)) of buffer
; if this still the first half get next half
; turn on halt for second half (bspce(bit15))
W
U
DLB bit
FO bit
TXM bit
MCM bit
FSM bit
*
*
*
*
*
*
*
*
*
*

Related parts for LTC1402