Instruction/ maintenance manual of the product TLV1562 Texas Instruments
Go to page of 99
July 1999 Advanced Analog Products SLAA040 Application Report.
IMPORT ANT NOTICE T exas Instruments and its subsidiaries (TI) reserve the right to make changes to their products or to discontinue any product or service without notice, and advise customers to obtain the latest version of relevant information to verify , before placing orders, that information being relied on is current and complete.
iii Interfacing the TL V1562 Parallel AD-Converter to the TMS320C54x DSP Contents 1 Introduction 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Contents iv SLAA040 8.5.5 Dual Continuous Mode 38 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8.5.6 C-Callable With Mono Interrupt Driven Mode Using CST ART to Start Conversion 40 .
Figures v Interfacing the TL V1562 Parallel AD-Converter to the TMS320C54x DSP List of Figures 1 TL V1562 – DSP Interface of the EVM, Using RD or the CST ART Signal to Start Conversion 2 . . . . . . . . . . . . . . . 2 TL V1562 – DSP Interface of the EVM, Using RD or the CST ART Signal to Start Conversion 3 .
vi SLAA040.
1 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP Falk Alicke and Perry Miller ABSTRACT In this application report we discuss the hardware and software interface of the TL V1562, 10-bit parallel-output analog-to-digital converter (ADC) to the TMS320C54x digital signal processor (DSP).
The Board 2 SLAA040 2.2 TL V1562EVM The TL V1562EVM gives customers an easy start with employing many of the features of this converter . A serial DAC (TLC5618A), a parallel DAC (THS5651), and the ADC (TL V1562) make this EVM flexible enough to test the features of the TL V1562.
The Board 3 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP 2.3.1.2 Simplification of Software Requirements Through Modified Interface Of all the TL V1562 modes of operation, only the mono interrupt driven mode uses the RD signal to start the conversion.
The Board 4 SLAA040 This feature fits well into monitoring application. For example, the ADC may have to trigger on one event out of some channels inside an extremely small time window and then sample the correct channel with a higher resolution, but lower throughput to analyze this process.
The Board 5 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP Serial DAC TLC5618A SCLK CS DIN DSP TMS320C542 BCLKX BCLKR BFSX BFSR BDX BDR TL V1562 EVM Pin Connector Figure 3.
Operational Overview 6 SLAA040 3 Operational Overview This chapter discusses the software and hardware interface for the TL V1562. Plus the overall operational sequence of the A/D interface is described. 3.1 Reference V oltage Inputs The voltage difference between the VREFP and VREFM terminals determines the analog input range, i.
Operational Overview 7 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP 3.3 Connections Between the DSP and the EVM The following connections provide the interface between the DSP and the EVM: T able 1.
Operational Overview 8 SLAA040 3.3.1 Jumpers Used on the TL V1562EVM T able 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, g.
The Serial DAC/DSP System 9 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP 4 The Serial DAC/DSP System The software configures the buffered DSP serial port to the 16-bit master mode so that the DSP generates the frame sync signal at BFSX and the data clock at BCLKX serial port terminals.
The DSP Serial Port 10 SLAA040 5 The DSP Serial Port The buffered serial port provides direct communication with serial I/O devices and consists of six basic signals and five registers. The DSP internal serial port operation section discusses the registers.
Other DSP/TL V1562 Signals 11 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP 6 Other DSP/TL V1562 Signals These paragraphs describe other DSP and TL V1562 signals.
Conversation Between the TL V1562 and the DSP 12 SLAA040 7 Conversation Between the TL V1562 and the DSP The complexity of the TL V1562 ADC may be confusing because of the number of possible modes to drive the protocol between DSP and ADC.
Conversation Between the TL V1562 and the DSP 13 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP T able 7. D SP Algorithm for Mono Interrupt Driven Mode Using RD W ait cycles for the DSP internally (40 MHz DSPCLK): STEPS TIMING, NOTES APD=0 ADCSYCLK = 7.
Conversation Between the TL V1562 and the DSP 14 SLAA040 7.3 Mono Interrupt Driven Mode Using CST ART Use the CST ART signal when two or more ADCs must sample/convert signals at the same time. Instead of the RD signal, the timing for sampling and converting is started with the edges of the CST ART signal.
Conversation Between the TL V1562 and the DSP 15 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP 7.4 Dual Interrupt Driven Mode Using techniques similar to those described in the first two.
Conversation Between the TL V1562 and the DSP 16 SLAA040 7.5 Mono Continuous Mode This mode simplifies data acquisition, since there is no need to generate a signal to sample or convert data. Instead, initializing this mode once, the ADC sends out the data continuously and will be read by the DSP with the RD signal.
Conversation Between the TL V1562 and the DSP 17 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP 7.6 Dual Continuous Mode The dual continuous mode provides a data stream of two input signals. The characteristic of the data protocol is similar to the mono continuous mode but with the use of two RD cycles for one sample/hold cycle.
Software Overview 18 SLAA040 8 Software Overview The software in this report shows how to use all modes of the TL V1562 and useful variations for each mode.
Software Overview 19 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP Original Interrupts DSKplus Starter Kit (OVL Y = 1) Communication Kernel Starter Kit RAM BSP RAM Block or Program RAM K.
Software Overview 20 SLAA040 8.3 Programming Strategies for the ’ C54x, Explanations Before listing the program code, this chapter introduces some basic instructions (strategies) to provide the ’ C54x user with some ideas for dealing with the DSP architecture.
Software Overview 21 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP The timer output pin TOUT can be used to generate an output function with a prescale from half the CLK frequency down to 1FFFF . The problem: the high-time is always one clock cycle and only the low time of the TOUT signal changes with the timer .
Software Overview 22 SLAA040 8.3.7 Interrupt Latency The time required to execute an interrupt depends on the handling of the IRQ at the four-word vector address or jumping further with a GOTO instruction.
Software Overview 23 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP 8.3.9 Enabling Software Modules (.if/.elseif/.endif) T o test different software solutions while keeping the number of files small requires integrating all the modules in the same file.
Software Overview 24 SLAA040 8.4.1.1 Software Polling The status of the input pin is tested in a loop until the valid transition occurs. After this transition, the program branches to the next instruction (reads data sample).
Software Overview 25 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP 8.4.1.3 Interrupt Driven Solution Usually , the most elegant solution is to use an interrupt procedure to control external signals. The problem for this application is the high speed.
Software Overview 26 SLAA040 T able 12. Switch Settings SWITCH DESCRIBTION SAVE_INTO_MEMORY Store the samples into DSP memory (location defined in constants.
Software Overview 27 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP T ask 1.2: Use channel B in differential input mode and an external clock source. Following changes have to be done with the set-up of T ask 1.1: T able 14. Instruction in the Program Header (Step 1) R10BIT_RESOLUT .
Software Overview 28 SLAA040 Program Files: MONOIDM1.ASM includes the complete software algorithm to control the monomode CONSTANT.ASM common file of all modes (constants definition) VECTORS.ASM common file of all modes (IRQ vector table) Other Files: linker.
Software Overview 29 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP T able End Reached? (AR& = AR0 ?) Start Initialize DSP W ait States, AR Pointer , IRQ T able, Data Memory , Serial .
Software Overview 30 SLAA040 8.5.2 Mono Interrupt Driven Mode Using CST AR T to Start Conversion The following descriptions explain the software for the data acquisition in monomode using the CST AR T signal. The required interface connections are shown in Figure 1.
Software Overview 31 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP Start Initialize DSP Wait States, AR Pointer , IRQ T able, Data Memory , Serial Port Initialize SPI Active Transmitter .
Software Overview 32 SLAA040 8.5.2.1 Throughput Optimization † According to the data sheet, the mono interrupt driven mode with CST ART starting the conversion can be described as follows: After the.
Software Overview 33 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP 825 ns = 1.2 MPS Throughput CST ART RD CS INT Figure 8. Time Optimization (monocst1) Maximum Performance at 1.
Software Overview 34 SLAA040 IMPORT ANT NOTE: The code has been optimized to maximize the data throughput. It was found that CST ART 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.
Software Overview 35 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP Start Initialize DSP Wait States, AR Pointer , IRQ T able, Data Memory , Serial Port Initialize SPI Active Transmitter .
Software Overview 36 SLAA040 8.5.4 Mono Continuous Mode The following descriptions explain the software for the data acquisition in Mono Continuous Mode. The required interface connections are shown in Figure 2 Program Files: MONOCON1.ASM Includes the complete software algorithm to control the Mono Continuous Mode CALIBRAT.
Software Overview 37 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP Start Initialize DSP Wait States, AR Pointer , IRQ T able, Data Memory , Serial Port Initialize SPI Active Transmitter .
Software Overview 38 SLAA040 8.5.5 Dual Continuous Mode The following descriptions explain the software for data acquisition in dual continuous mode. The required interface connections are shown in Figure 2. Program Files: DUALCON1.ASM Includes the complete software algorithm to control the Dual Continuous Mode CALIBRAT.
Software Overview 39 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP Start Initialize DSP Wait States, AR Pointer , IRQ T able, Data Memory , Serial Port Initialize SPI Active Transmitter .
Software Overview 40 SLAA040 8.5.6 C-Callable with Mono Interrupt Driven Mode Using CST AR T to Start Conversion The following descriptions explain the software for the data acquisition with a user friendly C program interface in monomode using the CST ART signal.
Software Overview 41 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP 8.6 Source Code The following paragraphs contain the source code. 8.6.1 Common Software for all Modes (except C-Callable) The files shown below contained the actual ’ C54x program listings and program examples.
Software Overview 42 SLAA040 NO_CALIB_OP .set 000C0h ; Operate without calibrated inputs (no offset) * INDEX MODE 1: NO_SW_PWDN .set 00100h ; Software power down mode disabled SW_PWDN .set 00101h ; instruction for software power down NO_AUTO_PWDN .set 00100h ; Automatic internal power – down Disabled AUTO_PWDN .
Software Overview 43 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP 8.6.1.2 Interrupt V ectors ************************************************************************** * TITLE : TLV1562 ADC Interface routine * * FILE : VECTORS.
Software Overview 44 SLAA040 nop nop nop tint return_enable ;4C; internal timer interrupt nop nop nop brint return_enable ;50; BSP receive interrupt nop nop nop bxint goto BXINT0 ;54; BSP transmit int.
Software Overview 45 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP 8.6.1.3 linker ,cmd The linker file for each mode is specified with called file names, but in general looks like the following, made for the Mono Continuous Mode: /******************************************************************/ / * File: Linker.
Software Overview 46 SLAA040 8.6.2 Mono Mode Interrupt Driven Software Using RD to Start Conversion Mainprogram (Monomode.asm) ************************************************************************** * TITLE : TLV1562 ADC Interface routine * * FILE : MONOIDM1.
Software Overview 47 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP CR0_SEND .usect ” .variabl ” , 1 ; sent value to register CR0 of the ADC CR1_SEND .usect ” .variabl ” , 1 ; sent value to register CR1 of the ADC ZERO .usect ” .
Software Overview 48 SLAA040 * initialize waitstates: DP = #00000h ; point to page zero @SWWSR = #01000h ; one I/O wait states * copy interrupt routine, which are not critical for the EVM to the IRQ t.
Software Overview 49 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP * reset pending IRQs IFR = #1 ; reset any old interrupt on pin INT0 .endif .
Software Overview 50 SLAA040 .if (AUTO_PWDN_ENABLE) @CR1_SEND ^= #NO_AUTO_PWDN ; clear NO_AUTO_PWDN bit if one @CR1_SEND |= #AUTO_PWDN ; set AUTO_PWDN mode .endif .if (DIFF_INPUT_MODE) @CR0_SEND ^= #SINGLE_END ; clear single ended input bit if one @CR0_SEND |= #DIFFERENTIAL ; set differential input mode .
Software Overview 51 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP .elseif NO_INT0_SIG * instead of using the INT signal, the processor waits * for 6ADCSYSCLK+49ns and reads then the sample repeat(#32) nop ; wait for 34 processor cycles .
Software Overview 52 SLAA040 DP = #00000h ; point to page zero TC = bitf(@SPC,#01000h) ; test, is the XRDY Bit in SPC=1? if (TC) goto SEND_SERIAL_END ; don ’ t send something until XDR is empty ; th.
Software Overview 53 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP 8.6.3 Calibration of the ADC CALIBRA T .ASM ************************************************************************** * TITLE : TLV1562 ADC Interface routine * * FILE : CALIBRAT.
Software Overview 54 SLAA040 * clear mode related bits in CR0 and set MONO_INT: @CR0_SEND &= #(MONO_INT^0FFFFh) ; clear bit for no calibration use @CR0_SEND &= #(DUAL_INT^0FFFFh) ; clear bit f.
Software Overview 55 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP nop ; wait for 34 cycles until conversion has been finished @TEMP = port(ADC) ; read the sample but don ’ t care abou.
Software Overview 56 SLAA040 * use calibrated mode in the following for conversion @CR0_SEND |= #CALIB_OP ; set calibration for further use * clear mode related bits in CR_CALIBRA and set MONO_INT: @C.
Software Overview 57 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP nop ; wait for some sampling time XF = 1 ; reset CSTART repeat(#34) nop ; wait for 34 cycles until conversion has been .
Software Overview 58 SLAA040 8.6.4 Mono Mode Interrupt Driven Software Using CST AR T to Start Conversion Mainprogram (Monomode.asm) ************************************************************************** * TITLE : TLV1562 ADC Interface routine * * FILE : MONOCST1.
Software Overview 59 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP ADCOUNT .usect ” .variabl ” , 1 ; counter for one channel ADMEM .usect ” .variabl ” , 1 ; points to act. memory save location CR0_SEND .usect ” .variabl ” , 1 ; sent value to register CR0 of the ADC CR1_SEND .
Software Overview 60 SLAA040 _MAIN: START: INITIALIZATION: * disable IRQ, sign extension mode, ini Stack INTM = 1 ; disable IRQ SXM = 0 ; no sign extension mode ; SP = #0280h ; initialize Stack pointe.
Software Overview 61 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP SERIAL_DAC_INI: BSPI_INI: DP = #0 @BSPC = #00038h ; reset SPI @BSPCE = #00101h ; set clock speed, no Autobuffer Mode @BSPC = #0C078h ; start serial port .endif .if (INT0_DRIVEN|POLLING_DRV) * reset pending IRQs IFR = #1 ; reset any old interrupt on pin INT0 .
Software Overview 62 SLAA040 .elseif (R4BIT_RESOLUT) @CR1_SEND ^= #RES_10_BIT ; clear bit for 10 – Bit Resolution @CR1_SEND |= #RES_4_BIT ; set 8 – Bit conversion mode .endif .if (EXTERNAL_CLOCK) @CR0_SEND ^= #CLK_INTERNAL ; clear CLK_INTERNAL bit if one @CR0_SEND |= #CLK_EXTERNAL ; set CLK_EXTERNAL mode .
Software Overview 63 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP * write CR0 port(ADC) = @CR0_SEND ; send CR0 value to the ADC port(DEACTIVE) = @ZERO ; deselect ADC (CS high) NOP ; wai.
Software Overview 64 SLAA040 STEP4: XF = 1 ; wait for TW(CSTARTL) and set CSTART call STORE ; store the last sample into the table .if INT0_DRIVEN return ; return from routine back to IRQ_INT0 .
Software Overview 65 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP AR7 = #(data_loc_A) ; point to first date location of the storage table .
Software Overview 66 SLAA040 Constants definition – see 8.6.1.1 Constants.asm Interrupt Routine handler – see 8.6.1.2 Interrupt V ectors 8.6.5 Dual Interrupt Driven Mode Mainprogram (DUALIRQ1.asm) ************************************************************************** * TITLE : TLV1562 ADC Interface routine * * FILE : DUALIRQ1.
Software Overview 67 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP CR0_SEND .usect ” .variabl ” , 1 ; the last value, sent to register CR0 CR1_SEND .usect ” .variabl ” , 1 ; the last value, sent to register CR1 CR_PROBLEM .usect ” .
Software Overview 68 SLAA040 INTM = 1 ; disable IRQ SXM = 0 ; no sign extension mode ; SP = #0280h ; initialize Stack pointer * initialize waitstates: DP = #00000h ; point to page zero @SWWSR = #01000.
Software Overview 69 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP @BSPCE = #00101h ; set clock speed, no Autobuffer Mode @BSPC = #0C078h ; start serial port .endif .if (INT0_DRIVEN|POLLING_DRV) * reset pending IRQs IFR = #1 ; reset any old interrupt on pin INT0 .
Software Overview 70 SLAA040 .if (EXTERNAL_CLOCK) @CR0_SEND ^= #CLK_INTERNAL ; clear CLK_INTERNAL bit if one @CR0_SEND |= #CLK_EXTERNAL ; set CLK_EXTERNAL mode .endif .if (AUTO_PWDN_ENABLE) @CR1_SEND ^= #NO_AUTO_PWDN ; clear NO_AUTO_PWDN bit if one @CR1_SEND |= #AUTO_PWDN ; set AUTO_PWDN mode .
Software Overview 71 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP port(DEACTIVE) = @ZERO ; deselect ADC (CS high) NOP ; wait for tW(CSH)=50ns * write CR0 port(ADC) = @CR0_SEND ; send CR.
Software Overview 72 SLAA040 * read sample STEP2: XF = 0 ; clear CSTART STEP10: @CH1_ADSAMPLE = port(ADC) ; read the new sample into the DSP STEP14: @CH2_ADSAMPLE = port(ADC) ; read the new sample into the DSP STEP3: ; wait for TW(CSTARTL) .
Software Overview 73 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP @ADSAMPLE |= #(TLC5618_LATCH_A|TLC5618_FAST_MODE|TLC5618_POWER_UP) ; set the mode of the DAC data(BDXR) = @ADSAMPLE ; send out the sample to the serial DAC SEND_SERIAL_END: .
Software Overview 74 SLAA040 Constants definition – see 8.6.1.1 Constants.asm Interrupt Routine handler – see 8.6.1.2 Interrupt V ectors 8.6.6 Mono Continuous Mode Mainprogram (MONOCON1.asm) ************************************************************************** * TITLE : TLV1562 ADC Interface routine * * FILE : MONOCON1.
Software Overview 75 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP isr_save .usect ” .variabl ” , 1 ; memory location to save AR7 during ; interrupts ADSAMPLE .usect ” .variabl ” , 1 ; last read sample from the ADC * Address Decoder constants: ADC .
Software Overview 76 SLAA040 data(data_loc_A) = @TEMP ; fill memory table 1 repeat(#num_data_B – 1) data(data_loc_B) = @TEMP ; fill memory table 2 repeat(#num_data_C – 1) data(data_loc_C) = @TEMP ; fill memory table 3 repeat(#num_data_D – 1) data(data_loc_D) = @TEMP ; fill memory table 4 .
Software Overview 77 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP @CR1_SEND |= #RES_4_BIT ; set 8 – Bit conversion mode .endif .if (EXTERNAL_CLOCK) @CR0_SEND ^= #CLK_INTERNAL ; clear CLK_INTERNAL bit if one @CR0_SEND |= #CLK_EXTERNAL ; set CLK_EXTERNAL mode .
Software Overview 78 SLAA040 DP = #AD_DP ; ******************************************* * ADC_mono_con_Start: * read samples and store them into memory ******************************************* ADC_m.
Software Overview 79 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP .endif .if SAVE_INTO_MEMORY * test for table end, set pointer back if true TC = (AR0 ==AR7) ; is AR0 = AR7? (table end reached?) if (NTC) goto STORE_END ; * set pointer back to table start AR7 = #(data_loc_A) ; point to first date location of the storage table .
Software Overview 80 SLAA040 Constants definition – see 8.6.1.1 Constants.asm Interrupt Routine handler – see 8.6.1.2 Interrupt V ectors 8.6.7 Dual Continuous Mode Mainprogram (DUALCON1.asm) ************************************************************************** * TITLE : TLV1562 ADC Interface routine * * FILE : DUALCON1.
Software Overview 81 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP isr_save .usect ” .variabl ” , 1 ; memory location to save AR7 during ; interrupts CH1_ADSAMPLE .usect ” .variabl ” , 1 ; last readed sample of channel 1 CH2_ADSAMPLE .
Software Overview 82 SLAA040 repeat(#num_data_A – 1) data(data_loc_A) = @TEMP ; fill memory table 1 repeat(#num_data_B – 1) data(data_loc_B) = @TEMP ; fill memory table 2 repeat(#num_data_C – 1) data(data_loc_C) = @TEMP ; fill memory table 3 repeat(#num_data_D – 1) data(data_loc_D) = @TEMP ; fill memory table 4 .
Software Overview 83 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP @CR1_SEND ^= #RES_10_BIT ; clear bit for 10 – Bit Resolution @CR1_SEND |= #RES_4_BIT ; set 8 – Bit conversion mode .endif .if (EXTERNAL_CLOCK) @CR0_SEND ^= #CLK_INTERNAL ; clear CLK_INTERNAL bit if one @CR0_SEND |= #CLK_EXTERNAL ; set CLK_EXTERNAL mode .
Software Overview 84 SLAA040 @SWWSR = #07000h ; one I/O wait states DP = #AD_DP ; ******************************************* * ADC_dual_con_Start: * read samples and store them into memory **********.
Software Overview 85 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP @ADSAMPLE = A ; @ADSAMPLE |= #(TLC5618_LATCH_A|TLC5618_FAST_MODE|TLC5618_POWER_UP) ; set the mode of the DAC data(BDXR) = @ADSAMPLE ; send out the sample to the serial DAC SEND_SERIAL_END: .
Software Overview 86 SLAA040 Constants definition – see 8.6.1.1 Constants.asm Interrupt Routine handler – see 8.6.1.2 Interrupt V ectors 8.6.8 C-Callable Mainprogram (C1562.
Software Overview 87 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP ; .setsect ” .vectors ” , 0x00180,0 ; sections of code ; .setsect ” .text ” , 0x00200,0 ; these assembler directives specify ; .setsect ” .data ” , 0x01800,1 ; the absolute addresses of different ; .
Software Overview 88 SLAA040 * initialize storage table for the ADC samples DP = #AD_DP ; A += # – 1 ; decrement A @CH_NO = A ; read number of sampling channel A = @ADMEM AR7 = A ; point to first da.
Software Overview 89 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP ADC_mono_IRQ_Start: ISTEP2: XF = 0 ; clear CSTART ISTEP3: NOP NOP NOP ; wait for TW(CSTARTL) ISTEP4: XF = 1 ; set CSTAR.
Software Overview 90 SLAA040 BXINT0: return_enable ; interrupt is not in use .end V ectors.asm ************************************************************************** * TITLE : TLV1562 ADC Interface routine * * FILE : VECTORS.
Software Overview 91 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP nop nop nop int2 return_enable ;48; external interrupt int2 nop nop nop tint return_enable ;4C; internal timer interrup.
Software Overview 92 SLAA040 Constants definition – see 8.6.1.1 Constants.asm and for Interrupt Routine handler – see 8.6.1.2 Interrupt V ectors Auto.bat @ECHO ON del *.map del *.obj del *.out del *.lst del *.cnv cl500.exe – k – n c1562.c pause mnem2alg.
Summary 93 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP .text : {} > PROG PAGE = 0 .vectors : {} > VECT PAGE = 0 .data : {} > RAMB0 PAGE = 1 .
An important point after buying a device Texas Instruments TLV1562 (or even before the purchase) is to read its user manual. We should do this for several simple reasons:
If you have not bought Texas Instruments TLV1562 yet, this is a good time to familiarize yourself with the basic data on the product. First of all view first pages of the manual, you can find above. You should find there the most important technical data Texas Instruments TLV1562 - thus you can check whether the hardware meets your expectations. When delving into next pages of the user manual, Texas Instruments TLV1562 you will learn all the available features of the product, as well as information on its operation. The information that you get Texas Instruments TLV1562 will certainly help you make a decision on the purchase.
If you already are a holder of Texas Instruments TLV1562, but have not read the manual yet, you should do it for the reasons described above. You will learn then if you properly used the available features, and whether you have not made any mistakes, which can shorten the lifetime Texas Instruments TLV1562.
However, one of the most important roles played by the user manual is to help in solving problems with Texas Instruments TLV1562. Almost always you will find there Troubleshooting, which are the most frequently occurring failures and malfunctions of the device Texas Instruments TLV1562 along with tips on how to solve them. Even if you fail to solve the problem, the manual will show you a further procedure – contact to the customer service center or the nearest service center