Texas Instruments TLV1562 User Manual

Browse online or download User Manual for Unknown Texas Instruments TLV1562. Texas Instruments TLV1562 User's Manual

  • Download
  • Add to my manuals
  • Print
  • Page
    / 99
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews

Summary of Contents

Page 1 - Application

July 1999 Advanced Analog ProductsSLAA040ApplicationReport

Page 2

The Board4 SLAA040This feature fits well into monitoring application. For example, the ADC may haveto trigger on one event out of some channels inside

Page 3 - Contents

The Board5 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPSerial DACTLC5618ASCLKCSDINDSPTMS320C542BCLKXBCLKRBFSXBFSRBDXBDRTLV1562 EVM Pin C

Page 4

Operational Overview6 SLAA0403 Operational OverviewThis chapter discusses the software and hardware interface for the TLV1562.Plus the overall operati

Page 5 - List of Tables

Operational Overview7 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP3.3 Connections Between the DSP and the EVMThe following connections p

Page 6

Operational Overview8 SLAA0403.3.1 Jumpers Used on the TLV1562EVMTable 2. 3-Position JumpersJUMPER GENERAL DESCRIPTION PIN 1-2 PIN 2-3W1 Connects BP/C

Page 7 - 2 The Board

The Serial DAC/DSP System9 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP4 The Serial DAC/DSP SystemThe software configures the buffered D

Page 8 - 2.3 ADC TLV1562 Overview

The DSP Serial Port10 SLAA0405 The DSP Serial PortThe buffered serial port provides direct communication with serial I/O devices andconsists of six ba

Page 9 - 2.3.2 Recyclic Architecture

Other DSP/TLV1562 Signals11 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP6 Other DSP/TLV1562 SignalsThese paragraphs describe other DSP a

Page 10 - 2.4.1 TLC5618A – Serial DAC

Conversation Between the TLV1562 and the DSP12 SLAA0407 Conversation Between the TLV1562 and the DSPThe complexity of the TLV1562 ADC may be confusing

Page 11 - The Board

Conversation Between the TLV1562 and the DSP13 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPTable 7. DSP Algorithm for Mono Interrupt Dri

Page 12 - 3 Operational Overview

IMPORTANT NOTICETexas Instruments and its subsidiaries (TI) reserve the right to make changes to their products or to discontinueany product or servic

Page 13

Conversation Between the TLV1562 and the DSP14 SLAA0407.3 Mono Interrupt Driven Mode Using CSTARTUse the CSTART signal when two or more ADCs must samp

Page 14 - Table 3. 2-Position Jumpers

Conversation Between the TLV1562 and the DSP15 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP7.4 Dual Interrupt Driven ModeUsing technique

Page 15 - 4 The Serial DAC/DSP System

Conversation Between the TLV1562 and the DSP16 SLAA0407.5 Mono Continuous ModeThis mode simplifies data acquisition, since there is no need to generat

Page 16 - 5 The DSP Serial Port

Conversation Between the TLV1562 and the DSP17 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP7.6 Dual Continuous ModeThe dual continuous m

Page 17 - 6 Other DSP/TLV1562 Signals

Software Overview18 SLAA0408 Software OverviewThe software in this report shows how to use all modes of the TLV1562 and usefulvariations for each mode

Page 18 - 7.1 Writing to the ADC

Software Overview19 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPOriginal Interrupts DSKplusStarter Kit(OVLY = 1)Communication KernelStar

Page 19

Software Overview20 SLAA0408.3 Programming Strategies for the ’C54x, ExplanationsBefore listing the program code, this chapter introduces some basic i

Page 20 - (APD=1)

Software Overview21 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPThe timer output pin TOUT can be used to generate an output function wit

Page 21

Software Overview22 SLAA0408.3.7 Interrupt LatencyThe time required to execute an interrupt depends on the handling of the IRQ atthe four-word vector

Page 22 - 7.5 Mono Continuous Mode

Software Overview23 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP8.3.9 Enabling Software Modules (.if/.elseif/.endif)To test different so

Page 23 - 7.6 Dual Continuous Mode

iii Interfacing the TLV1562 Parallel AD-Converter to the TMS320C54x DSPContents1 Introduction 1. . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 24 - 8 Software Overview

Software Overview24 SLAA0408.4.1.1 Software PollingThe status of the input pin is tested in a loop until the valid transition occurs. Afterthis transi

Page 25 - Figure 5. Memory Map

Software Overview25 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP8.4.1.3 Interrupt Driven SolutionUsually, the most elegant solution is t

Page 26 - 8.3.3 Timer Output

Software Overview26 SLAA040Table 12. Switch SettingsSWITCH DESCRIBTIONSAVE_INTO_MEMORY Store the samples into DSP memory (location defined in constant

Page 27 - 8.3.4 Data Page Pointer

Software Overview27 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPTask 1.2:Use channel B in differential input mode and an external clock

Page 28 - 8.3.7 Interrupt Latency

Software Overview28 SLAA040Program Files:MONOIDM1.ASM includes the complete software algorithm to control the monomodeCONSTANT.ASM common file of al

Page 29 - 8.4 Software Code Explanation

Software Overview29 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPTable End Reached?(AR& = AR0 ?)StartInitialize DSPWait States, AR Po

Page 30 - 24 SLAA040

Software Overview30 SLAA0408.5.2 Mono Interrupt Driven Mode Using CSTART to Start ConversionThe following descriptions explain the software for the da

Page 31 - SWITCH DESCRIPTION

Software Overview31 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPStartInitialize DSPWait States, AR Pointer, IRQ Table, Data Memory, Seri

Page 32 - 26 SLAA040

Software Overview32 SLAA0408.5.2.1 Throughput Optimization†According to the data sheet, the mono interrupt driven mode with CSTARTstarting the convers

Page 33

Software Overview33 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP825 ns = 1.2 MPS ThroughputCSTARTRDCSINTFigure 8. Time Optimization (mon

Page 34

ContentsivSLAA0408.5.5 Dual Continuous Mode 38. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 35

Software Overview34 SLAA040IMPORTANT NOTE: The code has been optimized to maximizethe data throughput. It was found that CSTART can be pulled lowearli

Page 36 - 30 SLAA040

Software Overview35 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPStartInitialize DSPWait States, AR Pointer, IRQ Table, Data Memory, Seri

Page 37

Software Overview36 SLAA0408.5.4 Mono Continuous ModeThe following descriptions explain the software for the data acquisition in MonoContinuous Mode.

Page 38 - 32 SLAA040

Software Overview37 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPStartInitialize DSPWait States, AR Pointer, IRQ Table, Data Memory, Seri

Page 39

Software Overview38 SLAA0408.5.5 Dual Continuous ModeThe following descriptions explain the software for data acquisition in dualcontinuous mode. The

Page 40 - 34 SLAA040

Software Overview39 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPStartInitialize DSPWait States, AR Pointer, IRQ Table, Data Memory, Seri

Page 41

Software Overview40 SLAA0408.5.6 C-Callable with Mono Interrupt Driven Mode Using CSTART to Start ConversionThe following descriptions explain the sof

Page 42 - 8.5.4 Mono Continuous Mode

Software Overview41 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP8.6 Source CodeThe following paragraphs contain the source code.8.6.1 Co

Page 43

Software Overview42 SLAA040NO_CALIB_OP .set 000C0h ; Operate without calibrated inputs (no offset)* INDEX MODE 1:NO_SW_PWDN .set 00100h ;

Page 44 - 8.5.5 Dual Continuous Mode

Software Overview43 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP8.6.1.2 Interrupt Vectors***********************************************

Page 45

Figuresv Interfacing the TLV1562 Parallel AD-Converter to the TMS320C54x DSPList of Figures1 TLV1562 – DSP Interface of the EVM, Using RD or the CSTA

Page 46 - 40 SLAA040

Software Overview44 SLAA040 nop nop noptint return_enable ;4C; internal timer interrupt nop nop

Page 47 - 8.6 Source Code

Software Overview45 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP8.6.1.3 linker,cmdThe linker file for each mode is specified with called

Page 48 - * INDEX MODE 1:

Software Overview46 SLAA0408.6.2 Mono Mode Interrupt Driven Software Using RD to Start ConversionMainprogram (Monomode.asm)***************************

Page 49

Software Overview47 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPCR0_SEND .usect ”.variabl”, 1 ; sent value to register CR0 of

Page 50

Software Overview48 SLAA040* initialize waitstates: DP = #00000h ; point to page zero @SWWSR = #01000h ; one I/O

Page 51

Software Overview49 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP* reset pending IRQs IFR = #1 ; reset any

Page 52 - Mainprogram (Monomode.asm)

Software Overview50 SLAA040 .if (AUTO_PWDN_ENABLE) @CR1_SEND ^= #NO_AUTO_PWDN ; clear NO_AUTO_PWDN bit if one @CR1_SEND |= #AUTO_PWDN

Page 53

Software Overview51 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP .elseif NO_INT0_SIG* instead of using the INT signal, the processor wa

Page 54

Software Overview52 SLAA040 DP = #00000h ; point to page zero TC = bitf(@SPC,#01000h) ; test, is the XRDY Bit in SPC=1?

Page 55

Software Overview53 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP8.6.3 Calibration of the ADCCALIBRAT.ASM********************************

Page 56

viSLAA040

Page 57

Software Overview54 SLAA040* clear mode related bits in CR0 and set MONO_INT: @CR0_SEND &= #(MONO_INT^0FFFFh) ; clear bit for no calibrat

Page 58

Software Overview55 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP nop ; wait for 34 cycles until conversion has

Page 59 - 8.6.3 Calibration of the ADC

Software Overview56 SLAA040* use calibrated mode in the following for conversion @CR0_SEND |= #CALIB_OP ; set calibration for furt

Page 60

Software Overview57 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP nop ; wait for some sampling time

Page 61 - * error and input offset

Software Overview58 SLAA0408.6.4 Mono Mode Interrupt Driven Software Using CSTART to Start ConversionMainprogram (Monomode.asm)***********************

Page 62

Software Overview59 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPADCOUNT .usect ”.variabl”, 1 ; counter for one channelADMEM

Page 63

Software Overview60 SLAA040_MAIN:START:INITIALIZATION:* disable IRQ, sign extension mode, ini Stack INTM = 1 ; disable IRQ SX

Page 64

Software Overview61 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPSERIAL_DAC_INI:BSPI_INI: DP = #0 @BSPC = #00038h

Page 65

Software Overview62 SLAA040 .elseif (R4BIT_RESOLUT) @CR1_SEND ^= #RES_10_BIT ; clear bit for 10–Bit Resolution @CR1_SEND |= #RES_4_BIT

Page 66

Software Overview63 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP* write CR0 port(ADC) = @CR0_SEND ; send CR0 value to the ADC

Page 67

1Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPFalk Alicke and Perry MillerABSTRACTIn this application report we discuss the hardware and

Page 68

Software Overview64 SLAA040STEP4: XF = 1 ; wait for TW(CSTARTL) and set CSTART call STORE ; store the last s

Page 69

Software Overview65 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP AR7 = #(data_loc_A) ; point to first date location of the

Page 70

Software Overview66 SLAA040Constants definition – see 8.6.1.1 Constants.asmInterrupt Routine handler – see 8.6.1.2 Interrupt Vectors8.6.5 Dual Interru

Page 71

Software Overview67 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPCR0_SEND .usect ”.variabl”, 1 ; the last value, sent to register CR

Page 72 - Mainprogram (DUALIRQ1.asm)

Software Overview68 SLAA040 INTM = 1 ; disable IRQ SXM = 0 ; no sign extension mode; SP = #0280h

Page 73

Software Overview69 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP @BSPCE = #00101h ; set clock speed, no Autobuffer Mode

Page 74

Software Overview70 SLAA040 .if (EXTERNAL_CLOCK) @CR0_SEND ^= #CLK_INTERNAL ; clear CLK_INTERNAL bit if one @CR0_SEND |= #CLK_EXTERNAL ; set

Page 75

Software Overview71 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP port(DEACTIVE) = @ZERO ; deselect ADC (CS high) NOP

Page 76

Software Overview72 SLAA040* read sampleSTEP2: XF = 0 ; clear CSTARTSTEP10: @CH1_ADSAMPLE = port(ADC) ; read the new sample in

Page 77

Software Overview73 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP @ADSAMPLE |= #(TLC5618_LATCH_A|TLC5618_FAST_MODE|TLC5618_POWER_UP) ;

Page 78

The Board2 SLAA0402.2 TLV1562EVMThe TLV1562EVM gives customers an easy start with employing many of thefeatures of this converter. A serial DAC (TLC56

Page 79

Software Overview74 SLAA040Constants definition – see 8.6.1.1 Constants.asmInterrupt Routine handler – see 8.6.1.2 Interrupt Vectors8.6.6 Mono Continu

Page 80 - 8.6.6 Mono Continuous Mode

Software Overview75 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPisr_save .usect ”.variabl”, 1 ; memory location to save AR7 d

Page 81

Software Overview76 SLAA040 data(data_loc_A) = @TEMP ; fill memory table 1 repeat(#num_data_B–1) data(data_loc_B) = @TEMP

Page 82

Software Overview77 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP @CR1_SEND |= #RES_4_BIT ; set 8–Bit conversion mode .endi

Page 83

Software Overview78 SLAA040 DP = #AD_DP ;******************************************** ADC_mono_con_Start:* read samples a

Page 84

Software Overview79 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP .endif .if SAVE_INTO_MEMORY* test for table end, set pointer back if

Page 85

Software Overview80 SLAA040Constants definition – see 8.6.1.1 Constants.asmInterrupt Routine handler – see 8.6.1.2 Interrupt Vectors8.6.7 Dual Continu

Page 86 - 8.6.7 Dual Continuous Mode

Software Overview81 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPisr_save .usect ”.variabl”, 1 ; memory location to save AR7 d

Page 87

Software Overview82 SLAA040 repeat(#num_data_A–1) data(data_loc_A) = @TEMP ; fill memory table 1 repeat(#num_data_B–1) data(data_lo

Page 88

Software Overview83 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP @CR1_SEND ^= #RES_10_BIT ; clear bit for 10–Bit Resolution

Page 89

The Board3 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP2.3.1.2 Simplification of Software Requirements Through Modified InterfaceOf all

Page 90

Software Overview84 SLAA040 @SWWSR = #07000h ; one I/O wait states DP = #AD_DP ;*****************************

Page 91

Software Overview85 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP @ADSAMPLE = A ; @ADSAMPLE |= #(TLC5618_LAT

Page 92 - 8.6.8 C-Callable

Software Overview86 SLAA040Constants definition – see 8.6.1.1 Constants.asmInterrupt Routine handler – see 8.6.1.2 Interrupt Vectors8.6.8 C-CallableMa

Page 93

Software Overview87 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP; .setsect ”.vectors”, 0x00180,0 ; sections of code; .setsect ”

Page 94

Software Overview88 SLAA040* initialize storage table for the ADC samples DP = #AD_DP ; A += #–1 ; decr

Page 95

Software Overview89 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPADC_mono_IRQ_Start:ISTEP2: XF = 0 ; clear CSTARTIS

Page 96 - Vectors.asm

Software Overview90 SLAA040BXINT0: return_enable ; interrupt is not in use .endVectors.asm*********************************************

Page 97

Software Overview91 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP nop nop nopint2 return_enable ;48; external interrupt int2

Page 98 - Linker.cmd

Software Overview92 SLAA040Constants definition – see 8.6.1.1 Constants.asm and for Interrupt Routine handler – see 8.6.1.2Interrupt VectorsAuto.bat@E

Page 99 - 10 References

Summary93 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP .text : {} > PROG PAGE = 0 .vectors : {} > VECT PAGE = 0 .data :

Comments to this Manuals

No comments