July 1999 Advanced Analog ProductsSLAA040ApplicationReport
The Board4 SLAA040This feature fits well into monitoring application. For example, the ADC may haveto trigger on one event out of some channels inside
The Board5 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPSerial DACTLC5618ASCLKCSDINDSPTMS320C542BCLKXBCLKRBFSXBFSRBDXBDRTLV1562 EVM Pin C
Operational Overview6 SLAA0403 Operational OverviewThis chapter discusses the software and hardware interface for the TLV1562.Plus the overall operati
Operational Overview7 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP3.3 Connections Between the DSP and the EVMThe following connections p
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
The Serial DAC/DSP System9 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP4 The Serial DAC/DSP SystemThe software configures the buffered D
The DSP Serial Port10 SLAA0405 The DSP Serial PortThe buffered serial port provides direct communication with serial I/O devices andconsists of six ba
Other DSP/TLV1562 Signals11 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP6 Other DSP/TLV1562 SignalsThese paragraphs describe other DSP a
Conversation Between the TLV1562 and the DSP12 SLAA0407 Conversation Between the TLV1562 and the DSPThe complexity of the TLV1562 ADC may be confusing
Conversation Between the TLV1562 and the DSP13 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPTable 7. DSP Algorithm for Mono Interrupt Dri
IMPORTANT NOTICETexas Instruments and its subsidiaries (TI) reserve the right to make changes to their products or to discontinueany product or servic
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
Conversation Between the TLV1562 and the DSP15 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP7.4 Dual Interrupt Driven ModeUsing technique
Conversation Between the TLV1562 and the DSP16 SLAA0407.5 Mono Continuous ModeThis mode simplifies data acquisition, since there is no need to generat
Conversation Between the TLV1562 and the DSP17 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP7.6 Dual Continuous ModeThe dual continuous m
Software Overview18 SLAA0408 Software OverviewThe software in this report shows how to use all modes of the TLV1562 and usefulvariations for each mode
Software Overview19 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPOriginal Interrupts DSKplusStarter Kit(OVLY = 1)Communication KernelStar
Software Overview20 SLAA0408.3 Programming Strategies for the ’C54x, ExplanationsBefore listing the program code, this chapter introduces some basic i
Software Overview21 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPThe timer output pin TOUT can be used to generate an output function wit
Software Overview22 SLAA0408.3.7 Interrupt LatencyThe time required to execute an interrupt depends on the handling of the IRQ atthe four-word vector
Software Overview23 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP8.3.9 Enabling Software Modules (.if/.elseif/.endif)To test different so
iii Interfacing the TLV1562 Parallel AD-Converter to the TMS320C54x DSPContents1 Introduction 1. . . . . . . . . . . . . . . . . . . . . . . . . . . .
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
Software Overview25 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP8.4.1.3 Interrupt Driven SolutionUsually, the most elegant solution is t
Software Overview26 SLAA040Table 12. Switch SettingsSWITCH DESCRIBTIONSAVE_INTO_MEMORY Store the samples into DSP memory (location defined in constant
Software Overview27 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPTask 1.2:Use channel B in differential input mode and an external clock
Software Overview28 SLAA040Program Files:MONOIDM1.ASM includes the complete software algorithm to control the monomodeCONSTANT.ASM common file of al
Software Overview29 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPTable End Reached?(AR& = AR0 ?)StartInitialize DSPWait States, AR Po
Software Overview30 SLAA0408.5.2 Mono Interrupt Driven Mode Using CSTART to Start ConversionThe following descriptions explain the software for the da
Software Overview31 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPStartInitialize DSPWait States, AR Pointer, IRQ Table, Data Memory, Seri
Software Overview32 SLAA0408.5.2.1 Throughput Optimization†According to the data sheet, the mono interrupt driven mode with CSTARTstarting the convers
Software Overview33 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP825 ns = 1.2 MPS ThroughputCSTARTRDCSINTFigure 8. Time Optimization (mon
ContentsivSLAA0408.5.5 Dual Continuous Mode 38. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Software Overview34 SLAA040IMPORTANT NOTE: The code has been optimized to maximizethe data throughput. It was found that CSTART can be pulled lowearli
Software Overview35 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPStartInitialize DSPWait States, AR Pointer, IRQ Table, Data Memory, Seri
Software Overview36 SLAA0408.5.4 Mono Continuous ModeThe following descriptions explain the software for the data acquisition in MonoContinuous Mode.
Software Overview37 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPStartInitialize DSPWait States, AR Pointer, IRQ Table, Data Memory, Seri
Software Overview38 SLAA0408.5.5 Dual Continuous ModeThe following descriptions explain the software for data acquisition in dualcontinuous mode. The
Software Overview39 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPStartInitialize DSPWait States, AR Pointer, IRQ Table, Data Memory, Seri
Software Overview40 SLAA0408.5.6 C-Callable with Mono Interrupt Driven Mode Using CSTART to Start ConversionThe following descriptions explain the sof
Software Overview41 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP8.6 Source CodeThe following paragraphs contain the source code.8.6.1 Co
Software Overview42 SLAA040NO_CALIB_OP .set 000C0h ; Operate without calibrated inputs (no offset)* INDEX MODE 1:NO_SW_PWDN .set 00100h ;
Software Overview43 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP8.6.1.2 Interrupt Vectors***********************************************
Figuresv Interfacing the TLV1562 Parallel AD-Converter to the TMS320C54x DSPList of Figures1 TLV1562 – DSP Interface of the EVM, Using RD or the CSTA
Software Overview44 SLAA040 nop nop noptint return_enable ;4C; internal timer interrupt nop nop
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
Software Overview46 SLAA0408.6.2 Mono Mode Interrupt Driven Software Using RD to Start ConversionMainprogram (Monomode.asm)***************************
Software Overview47 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPCR0_SEND .usect ”.variabl”, 1 ; sent value to register CR0 of
Software Overview48 SLAA040* initialize waitstates: DP = #00000h ; point to page zero @SWWSR = #01000h ; one I/O
Software Overview49 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP* reset pending IRQs IFR = #1 ; reset any
Software Overview50 SLAA040 .if (AUTO_PWDN_ENABLE) @CR1_SEND ^= #NO_AUTO_PWDN ; clear NO_AUTO_PWDN bit if one @CR1_SEND |= #AUTO_PWDN
Software Overview51 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP .elseif NO_INT0_SIG* instead of using the INT signal, the processor wa
Software Overview52 SLAA040 DP = #00000h ; point to page zero TC = bitf(@SPC,#01000h) ; test, is the XRDY Bit in SPC=1?
Software Overview53 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP8.6.3 Calibration of the ADCCALIBRAT.ASM********************************
viSLAA040
Software Overview54 SLAA040* clear mode related bits in CR0 and set MONO_INT: @CR0_SEND &= #(MONO_INT^0FFFFh) ; clear bit for no calibrat
Software Overview55 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP nop ; wait for 34 cycles until conversion has
Software Overview56 SLAA040* use calibrated mode in the following for conversion @CR0_SEND |= #CALIB_OP ; set calibration for furt
Software Overview57 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP nop ; wait for some sampling time
Software Overview58 SLAA0408.6.4 Mono Mode Interrupt Driven Software Using CSTART to Start ConversionMainprogram (Monomode.asm)***********************
Software Overview59 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPADCOUNT .usect ”.variabl”, 1 ; counter for one channelADMEM
Software Overview60 SLAA040_MAIN:START:INITIALIZATION:* disable IRQ, sign extension mode, ini Stack INTM = 1 ; disable IRQ SX
Software Overview61 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPSERIAL_DAC_INI:BSPI_INI: DP = #0 @BSPC = #00038h
Software Overview62 SLAA040 .elseif (R4BIT_RESOLUT) @CR1_SEND ^= #RES_10_BIT ; clear bit for 10–Bit Resolution @CR1_SEND |= #RES_4_BIT
Software Overview63 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP* write CR0 port(ADC) = @CR0_SEND ; send CR0 value to the ADC
1Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPFalk Alicke and Perry MillerABSTRACTIn this application report we discuss the hardware and
Software Overview64 SLAA040STEP4: XF = 1 ; wait for TW(CSTARTL) and set CSTART call STORE ; store the last s
Software Overview65 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP AR7 = #(data_loc_A) ; point to first date location of the
Software Overview66 SLAA040Constants definition – see 8.6.1.1 Constants.asmInterrupt Routine handler – see 8.6.1.2 Interrupt Vectors8.6.5 Dual Interru
Software Overview67 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPCR0_SEND .usect ”.variabl”, 1 ; the last value, sent to register CR
Software Overview68 SLAA040 INTM = 1 ; disable IRQ SXM = 0 ; no sign extension mode; SP = #0280h
Software Overview69 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP @BSPCE = #00101h ; set clock speed, no Autobuffer Mode
Software Overview70 SLAA040 .if (EXTERNAL_CLOCK) @CR0_SEND ^= #CLK_INTERNAL ; clear CLK_INTERNAL bit if one @CR0_SEND |= #CLK_EXTERNAL ; set
Software Overview71 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP port(DEACTIVE) = @ZERO ; deselect ADC (CS high) NOP
Software Overview72 SLAA040* read sampleSTEP2: XF = 0 ; clear CSTARTSTEP10: @CH1_ADSAMPLE = port(ADC) ; read the new sample in
Software Overview73 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP @ADSAMPLE |= #(TLC5618_LATCH_A|TLC5618_FAST_MODE|TLC5618_POWER_UP) ;
The Board2 SLAA0402.2 TLV1562EVMThe TLV1562EVM gives customers an easy start with employing many of thefeatures of this converter. A serial DAC (TLC56
Software Overview74 SLAA040Constants definition – see 8.6.1.1 Constants.asmInterrupt Routine handler – see 8.6.1.2 Interrupt Vectors8.6.6 Mono Continu
Software Overview75 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPisr_save .usect ”.variabl”, 1 ; memory location to save AR7 d
Software Overview76 SLAA040 data(data_loc_A) = @TEMP ; fill memory table 1 repeat(#num_data_B–1) data(data_loc_B) = @TEMP
Software Overview77 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP @CR1_SEND |= #RES_4_BIT ; set 8–Bit conversion mode .endi
Software Overview78 SLAA040 DP = #AD_DP ;******************************************** ADC_mono_con_Start:* read samples a
Software Overview79 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP .endif .if SAVE_INTO_MEMORY* test for table end, set pointer back if
Software Overview80 SLAA040Constants definition – see 8.6.1.1 Constants.asmInterrupt Routine handler – see 8.6.1.2 Interrupt Vectors8.6.7 Dual Continu
Software Overview81 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPisr_save .usect ”.variabl”, 1 ; memory location to save AR7 d
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
Software Overview83 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP @CR1_SEND ^= #RES_10_BIT ; clear bit for 10–Bit Resolution
The Board3 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP2.3.1.2 Simplification of Software Requirements Through Modified InterfaceOf all
Software Overview84 SLAA040 @SWWSR = #07000h ; one I/O wait states DP = #AD_DP ;*****************************
Software Overview85 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP @ADSAMPLE = A ; @ADSAMPLE |= #(TLC5618_LAT
Software Overview86 SLAA040Constants definition – see 8.6.1.1 Constants.asmInterrupt Routine handler – see 8.6.1.2 Interrupt Vectors8.6.8 C-CallableMa
Software Overview87 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP; .setsect ”.vectors”, 0x00180,0 ; sections of code; .setsect ”
Software Overview88 SLAA040* initialize storage table for the ADC samples DP = #AD_DP ; A += #–1 ; decr
Software Overview89 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSPADC_mono_IRQ_Start:ISTEP2: XF = 0 ; clear CSTARTIS
Software Overview90 SLAA040BXINT0: return_enable ; interrupt is not in use .endVectors.asm*********************************************
Software Overview91 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP nop nop nopint2 return_enable ;48; external interrupt int2
Software Overview92 SLAA040Constants definition – see 8.6.1.1 Constants.asm and for Interrupt Routine handler – see 8.6.1.2Interrupt VectorsAuto.bat@E
Summary93 Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP .text : {} > PROG PAGE = 0 .vectors : {} > VECT PAGE = 0 .data :
Comments to this Manuals