Texas Instruments manual Jumpers Used on the TLV1562EVM, 3-Position Jumpers, 2-Position Jumpers

Page 14
3.3.1Jumpers Used on the TLV1562EVM

Operational Overview

3.3.1Jumpers Used on the TLV1562EVM

Table 2. 3-Position Jumpers

JUMPER

 

 

 

 

 

 

 

GENERAL DESCRIPTION

 

 

 

PIN 1-2

 

 

 

PIN 2-3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

W1

 

Connects BP/CH3 (ADC) to R45 or GND;

Input not in use, grounded to reduce noise

Use as single input channel3 or

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

differential input positive channel B

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

W2

 

Connects BM/CH4 (ADC) to R44 or GND;

Input not in use, grounded to reduce noise

Use as single input channel4 or

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

differential input negative channel B

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

W3

 

Connects

 

 

to XF or /RD1

Logic generator is connected to the ADC

DSP is connected to the ADC

RD

W4

 

 

 

 

+

 

 

is connected with DSP_

 

 

or

Logic generator is connected to the ADC

DSP is connected to the ADC

WR

WR1

WR

 

 

U12-J9/3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

W5

 

The three Jumpers define the prescaling of the

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

W6

 

CLKOUT signal to the MCB_CLK Pin, if W8 is

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

W7

 

set to Counter-Mode

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

W8

 

MCB_CLK is connected to BUFCLK (U14) or

Counter-Mode (MCB_CLK signal is

Counter-Mode disabled (MCB_CLK is

 

 

 

 

(U11)

divided by the counter, set-up with

synchronize with the CLKOUT signal)

 

 

RD1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Jumper W(5-7)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

W9

 

CLK input of the Counter (U2) is connected with

The counter is toggled by the DSP

The counter’s clock is prescaled by two

 

 

CLKOUT or CLKOUT/2

system clock (signal BUFF_CLK)

(toggled by half the DSP system clock

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(CLKOUT2))

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

W10

 

ADC CLKIN is connected to CLK/2 or CLK/4

The ADC clock runs at a quarter of the

The ADC clock runs at half the DSP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DSP clock frequency (10 MHz)

clock frequency (20 MHz)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

W11

 

Connects AP/CH1 (ADC) to R48 or GND;

Input not in use, grounded to reduce

Use as single input channel 1 or

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

noise

differential input positive channel A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

W12

 

Connects AM/CH2 (ADC) to R47 or GND;

Input not in use, grounded to reduce

Use as single input channel 2 or

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

noise

differential input negative channel A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

W13

 

Connects REFLO (TLV5651) to Vcc or GND

Disable internal reference

Enable internal reference

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

W14

 

Connects SCLK (TLC5618AA) to BCLKX or J8

Normal DSP mode

An external clock source drives the

 

 

(BNC)

 

 

 

 

 

 

SCLK pin instead of the DSP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

W15

 

Connects CLK (TLV5651) to CLKOUT (DSP) or

Normal DSP mode

An external clock source drives the CLK

 

 

J7 (BNC)

 

 

 

 

 

 

pin instead of the DSP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

W23

 

Connects

 

 

 

 

 

to A0, A1, or

 

 

 

A0 and A1 used to generate ADC

 

 

 

signal connects to

 

 

pin

CSTART

XF

XF

CSTART

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

signal

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CSTART

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

W24

 

Connects DSP_

 

 

to

 

or

 

 

 

 

ORed with

 

 

signal connected to ADC

 

pin

 

 

 

pin driven by

 

 

ORed with

 

 

RD

XF

IOSTRB,

XF

RD

RD

IOSTRB

R/W

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

R/W from the DSP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Table 3. 2-Position Jumpers

JUMPER

 

GENERAL DESCRIPTION

PINS SHORTED

PINS OPEN

 

 

 

 

 

 

 

 

 

 

 

 

W16

Connects Mode input (TLV 5651) to GND

MODE 0 is chosen (binary data input)

MODE 1 is chosen (2s complement

 

 

 

 

 

 

 

 

 

 

 

data input)

 

 

 

 

 

 

 

 

 

 

 

 

W17

Connects REFIO (TLV5651) to VREF1 or leaves

Use as external reference voltage input

Use as internal reference voltage

 

the REFIO pin decoupled to GND via a 0.1 F

 

output with this pin terminated into

 

capacitor

 

GND in series with 0.1 pF

 

 

 

 

 

 

 

 

 

 

W18

Connects DIR (U19) to GND or leaves the DIR

ADC can only write but not read to the data

Normal operation mode

 

pin connected to

WR

 

 

 

bus

 

 

 

 

 

 

 

 

 

 

W19

Connects

 

 

(U19) to GND or leaves the

 

pin

Output driver is isolated and disabled (no

Normal operation mode

OE

OE

 

connected to

CS

 

signal can bus trough the data bus)

 

 

 

 

 

W20

Connects BDX to BDR or leaves BDR open

DSP BDR pin gets a shortcuted feedback

BDR remains open

 

 

 

 

 

 

 

 

 

 

from the BDX (transmit) pin; normal mode

 

 

 

 

 

W21

Connects BSFX to BSFR or leaves BCLKR open

DSP BSFR pin gets a shortcuted feedback

BSFR remains open

 

 

 

 

 

 

 

 

 

 

from the BSFX (transmit) pin; normal mode

 

 

 

 

 

W22

Connects BCLKX backwards with BCLKR or

DSP BCLKR pin gets a shortcuted feedback

BCLKR remains open

 

leaves it open

from the BCLKX (transmit) pin; normal mode

 

 

 

 

 

W28

Connect Sleep input (TLV5651/5 GND

Normal mode of operation

Sleep mode seleted

 

 

 

 

 

 

 

 

 

 

 

 

8SLAA040

Image 14
Contents Application Report JulySLAA040 TParalInteMS3rflelADConvertertotheacing20C54xDSPtheTLV1562IMPORTANT NOTICE Contents 8.5.5 Figures List of FiguresList of Tables viSLAA040 2 The Board Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP1 Introduction 2.1 TMS320C54x Starter Kit2.3.1 Suggestions for the ’C54x to TLV1562 Interface 2.2 TLV1562EVM2.3 ADC TLV1562 Overview 2.3.1.1 The Universal InterfaceFigure 2. TLV1562 to ’C54x DSP Interface of the EVM Using RD or the CSTART Signal to Start Conversion2.3.2 Recyclic Architecture 2.4.1 TLC5618A - Serial DAC 2.3.3 Note on the Interface, Using an External ADC Clock Drive2.4 Onboard Components Figure 4. THS5651 to C542 DSP Interface 2.4.2 THS5651 - Parallel Output CommsDACFigure 3. TLC5618A to ’C542 DSP Interface 3.2 Input Data Bits 3 Operational Overview3.1 Reference Voltage Inputs Table 1. Signal Connections 3.3 Connections Between the DSP and the EVMTable 3. 2-Position Jumpers 3.3.1 Jumpers Used on the TLV1562EVMTable 2. 3-Position Jumpers 8SLAA0404 The Serial DAC/DSP System Table 4. DSP/DAC InterconnectionTable 5. DSP Serial Port Signals and Registers 5 The DSP Serial Port6 Other DSP/TLV1562 Signals 6.1 DSP Internal Serial Port Operation7.1 Writing to the ADC 7.2 Mono Interrupt Driven Mode Using RD7 Conversation Between the TLV1562 and the DSP Table 6. DSP Algorithm for Writing to the ADCtENDATAOUT = 41 ns Table 7. DSP Algorithm for Mono Interrupt Driven Mode Using RDtDCSL-sample+1ADCSYSCLK 14 SLAA040 7.3 Mono Interrupt Driven Mode Using CSTARTTable 8. DSP Algorithm for Mono Interrupt Driven Mode Using CSTART 7.4 Dual Interrupt Driven Mode Table 9. DSP Algorithm for Dual Interrupt Driven Mode16 SLAA040 7.5 Mono Continuous ModeTable 10. DSP Algorithm for Mono Continuous Mode 7.6 Dual Continuous Mode Table 11. DSP Algorithm for Dual Continuous Mode8.2 DSP Memory Map 8 Software Overview8.1 Software Development tools Figure 5. Memory Map 8.3.1 Optimizing CPU Resources for Maximum Data Rates 8.3.3 Timer Output8.3 Programming Strategies for the ’C54x, Explanations 8.3.2 Address and Data Bus for I/O Tasks8.3.6 Interfacing the Serial DAC 5618A to the DSP 8.3.5 Generating the Chip Select Signal and the CSTART Signal8.3.4 Data Page Pointer GOTO MARK 8.3.7 Interrupt Latency8.3.8 Branch Optimization goto/dgoto, call/dcall MARK DP = #1 ARP = #58.4.1 Software Principals of the Interface 8.3.9 Enabling Software Modules .if/.elseif/.endif8.4 Software Code Explanation Advantage 8.4.1.2 Timed Solution8.4.1.1 Software Polling DisadvantageAdvantages 8.4.1.3 Interrupt Driven Solution8.4.1.5 Setting the Right Switches DisadvantagesTable 13. Instruction in the Program Header Step Table 12. Switch SettingsTask Table 14. Instruction in the Program Header Step 8.5 Flow Charts and Comments for All Software Modes8.5.1 The Mono Interrupt Driven Mode Using RD to Start Conversion 8.4.1.6 Common Software for all ModesCode verification Program FilesOther Files common file of all modes constants definitionFigure 6. Software Flow of the Mono Interrupt Driven Solution Includes the complete software algorithm to control the monomode 8.5.2 Mono Interrupt Driven Mode Using CSTART to Start ConversionCalibration procedure of the DAC Common file of all modes constants definitionPoll INTO Pin Until h/0 Transition Occurs Initialize SPISAVE Pull Down CSTART8.5.2.1 Throughput Optimization† This only works for one TLV1562 not multiple because CS is not usedMaximum Performance at 1.2 MSPS with Internal Clock 8.5.3 Dual Interrupt Driven ModeFigure 8. Time Optimization monocst1 IMPORTANT NOTE The code has been optimized to maximize the data throughput. It was found that CSTART can be pulled low earlier than the data read instruction is performed by the DSP. This saves the 100-ns wait time in STEP 3 because the data read requires at least 100 ns. Therefore, CSTART gets pulled high directly after data read, and the interface becomes faster and gains throughput. This variation will be found in the code. The data acquisition is done in a small number of steps that explains everything inside the code Software Overview 8.5.4 Mono Continuous Mode Figure 10. Flow Chart Mono Continuous Mode 8.5.5 Dual Continuous Mode Figure 11. Flow Chart Dual Continuous Mode Code verification 8.6.1.1 Constants.asm 8.6 Source Code8.6.1 Common Software for all Modes except C-Callable set 000C0h Operate without calibrated inputs no offset 42 SLAA0408.6.1.2 Interrupt Vectors 4C internal timer interrupt 44 SLAA040File Linker.lnk COMMAND FILE 8.6.1.3 linker,cmd8.6.1.4 Auto.bat title ”COMMAND FILE FOR TLV1562.ASM”jump address to init. new channel Mainprogram Monomode.asmpointer address when using any of the following variables counter for one channelsent value to register CR0 of the ADC 48 SLAA040 if SENDOUTSERIALendif if INT0DRIVENPOLLINGDRV endif = bit*AR5,15-0 if AUTOPWDNENABLEendif if DIFFINPUTMODE elseif INT0DRIVENelseif NOINT0SIG 52 SLAA040 8.6.3 Calibration of the ADC CALIBRAT.ASM54 SLAA040 if SMECALIBRATION 56 SLAA040 endif 58 SLAA040 Software Overview 60 SLAA040 if INT0DRIVENPOLLINGDRV 62 SLAA040 = bit*AR5,15-0 endif if SAVEINTOMEMORY 64 SLAA040Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP Interrupt Routine handler - see 8.6.1.2 Interrupt Vectors 8.6.5 Dual Interrupt Driven ModeConstants definition - see 8.6.1.1 Constants.asm Mainprogram DUALIRQ1.asmSoftware Overview Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPSoftware Overview if SENDOUTSERIALInterfacing the TLV1562 Parallel ADC to the TMS320C54x DSP 70 SLAA040 endif 72 SLAA040 if SAVEINTOMEMORY 74 SLAA040 8.6.6 Mono Continuous ModeMainprogram MONOCON1.asm Software Overview 76 SLAA040 endif if EXTERNALCLOCK 78 SLAA040 endif 80 SLAA040 8.6.7 Dual Continuous ModeMainprogram DUALCON1.asm Software Overview 82 SLAA040 endif if DIFFINPUTMODE 84 SLAA040 Software Overview TLV1562Channel, Save Memory Start address, NUMBEROFSAMPLES 8.6.8 C-CallableMainprogram C1562.c 80h samples of channel 1 will be stored beginning on 2000hSoftware Overview 88 SLAA040 AR7+ = data@ADSAMPLE Vectors.asm 90 SLAA040int2 returnenable 48 external interrupt int2 nop 92 SLAA040 Auto.batLinker.cmd 9 Summary 10 References