Texas Instruments TLV1562 Bedienungsanleitung
- Schauen Sie die Anleitung online durch oderladen Sie diese herunter
- 99 Seiten
- 0.3 mb
Zur Seite of
Ähnliche Gebrauchsanleitungen
-
TV Converter Box
Texas Instruments TLC3578EVM FAMILY TLC3578EVM
32 Seiten 0.17 mb -
TV Converter Box
Texas Instruments 65MEVM
14 Seiten 0.27 mb -
TV Converter Box
Texas Instruments TLV320AIC3007EVM-K
52 Seiten 2.8 mb -
TV Converter Box
Texas Instruments ADS8364
14 Seiten 0.27 mb -
TV Converter Box
Texas Instruments DAC3482
19 Seiten 14.64 mb -
TV Converter Box
Texas Instruments TLV1562
99 Seiten 0.3 mb -
TV Converter Box
Texas Instruments DAC3484
19 Seiten 14.64 mb -
TV Converter Box
Texas Instruments TMS320DM36x
18 Seiten 0.16 mb
Richtige Gebrauchsanleitung
Die Vorschriften verpflichten den Verkäufer zur Übertragung der Gebrauchsanleitung Texas Instruments TLV1562 an den Erwerber, zusammen mit der Ware. Eine fehlende Anleitung oder falsche Informationen, die dem Verbraucher übertragen werden, bilden eine Grundlage für eine Reklamation aufgrund Unstimmigkeit des Geräts mit dem Vertrag. Rechtsmäßig lässt man das Anfügen einer Gebrauchsanleitung in anderer Form als Papierform zu, was letztens sehr oft genutzt wird, indem man eine grafische oder elektronische Anleitung von Texas Instruments TLV1562, sowie Anleitungsvideos für Nutzer beifügt. Die Bedingung ist, dass ihre Form leserlich und verständlich ist.
Was ist eine Gebrauchsanleitung?
Das Wort kommt vom lateinischen „instructio”, d.h. ordnen. Demnach kann man in der Anleitung Texas Instruments TLV1562 die Beschreibung der Etappen der Vorgehensweisen finden. Das Ziel der Anleitung ist die Belehrung, Vereinfachung des Starts, der Nutzung des Geräts oder auch der Ausführung bestimmter Tätigkeiten. Die Anleitung ist eine Sammlung von Informationen über ein Gegenstand/eine Dienstleistung, ein Hinweis.
Leider widmen nicht viele Nutzer ihre Zeit der Gebrauchsanleitung Texas Instruments TLV1562. Eine gute Gebrauchsanleitung erlaubt nicht nur eine Reihe zusätzlicher Funktionen des gekauften Geräts kennenzulernen, sondern hilft dabei viele Fehler zu vermeiden.
Was sollte also eine ideale Gebrauchsanleitung beinhalten?
Die Gebrauchsanleitung Texas Instruments TLV1562 sollte vor allem folgendes enthalten:
- Informationen über technische Daten des Geräts Texas Instruments TLV1562
- Den Namen des Produzenten und das Produktionsjahr des Geräts Texas Instruments TLV1562
- Grundsätze der Bedienung, Regulierung und Wartung des Geräts Texas Instruments TLV1562
- Sicherheitszeichen und Zertifikate, die die Übereinstimmung mit entsprechenden Normen bestätigen
Warum lesen wir keine Gebrauchsanleitungen?
Der Grund dafür ist die fehlende Zeit und die Sicherheit, was die bestimmten Funktionen der gekauften Geräte angeht. Leider ist das Anschließen und Starten von Texas Instruments TLV1562 zu wenig. Eine Anleitung beinhaltet eine Reihe von Hinweisen bezüglich bestimmter Funktionen, Sicherheitsgrundsätze, Wartungsarten (sogar das, welche Mittel man benutzen sollte), eventueller Fehler von Texas Instruments TLV1562 und Lösungsarten für Probleme, die während der Nutzung auftreten könnten. Immerhin kann man in der Gebrauchsanleitung die Kontaktnummer zum Service Texas Instruments finden, wenn die vorgeschlagenen Lösungen nicht wirksam sind. Aktuell erfreuen sich Anleitungen in Form von interessanten Animationen oder Videoanleitungen an Popularität, die den Nutzer besser ansprechen als eine Broschüre. Diese Art von Anleitung gibt garantiert, dass der Nutzer sich das ganze Video anschaut, ohne die spezifizierten und komplizierten technischen Beschreibungen von Texas Instruments TLV1562 zu überspringen, wie es bei der Papierform passiert.
Warum sollte man Gebrauchsanleitungen lesen?
In der Gebrauchsanleitung finden wir vor allem die Antwort über den Bau sowie die Möglichkeiten des Geräts Texas Instruments TLV1562, über die Nutzung bestimmter Accessoires und eine Reihe von Informationen, die erlauben, jegliche Funktionen und Bequemlichkeiten zu nutzen.
Nach dem gelungenen Kauf des Geräts, sollte man einige Zeit für das Kennenlernen jedes Teils der Anleitung von Texas Instruments TLV1562 widmen. Aktuell sind sie genau vorbereitet oder übersetzt, damit sie nicht nur verständlich für die Nutzer sind, aber auch ihre grundliegende Hilfs-Informations-Funktion erfüllen.
Inhaltsverzeichnis der Gebrauchsanleitungen
-
Seite 1
July 1999 Advanced Analog Products SLAA040 Application Report[...]
-
Seite 2
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. All product[...]
-
Seite 3
iii Interfacing the TL V1562 Parallel AD-Converter to the TMS320C54x DSP Contents 1 Introduction 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 The Board 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .[...]
-
Seite 4
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 . . . . . . . . . 8.6 Source Code 41 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .[...]
-
Seite 5
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 . . . . . . . . . . . . . . . 3 TLC56[...]
-
Seite 6
vi SLAA040[...]
-
Seite 7
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 hardware interface board, or evaluation module ([...]
-
Seite 8
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. It also helps show how this ADC can be implemented. 2.3 ADC TL V1562 O[...]
-
Seite 9
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. This requires a very flexible handling of the read signal and therefore has to be p[...]
-
Seite 10
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. This feature also fits well into home security applicatio[...]
-
Seite 11
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. TLC5618A to ’ C542 DSP Interface 2.4.2 THS5651 – Parallel Output CommsDAC This 10-bit data converter has a parallel interface and is able to update its output w[...]
-
Seite 12
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.e., the upper and [...]
-
Seite 13
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. Signal Connections DSP Signal Connector/Pin on the DSKplus cir- cuit board Connector/Pin on the TL V1562EVM ADC Signal General GND Conne[...]
-
Seite 14
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, 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[...]
-
Seite 15
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. T able 4 shows the connections between the DSP a[...]
-
Seite 16
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. The six signals are: • BCLKX - The serial transmit clock. This signal clocks the transmitt[...]
-
Seite 17
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. 6.1 DSP Internal Serial Port Operation Three signals are necessary to connect the transmit pins of the transmitting device with the receive pins of the receiving device for [...]
-
Seite 18
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. The following paragraphs explain more about the data sheet descriptions for interfacing the ’ C54x to the AD[...]
-
Seite 19
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.5 MHz APD=0 ADCSYCLK = 10 MHz APD=1 ADCSYCLK = 10 MHz APD=1 ADCSYCLK = 10 MHz 0. Ini[...]
-
Seite 20
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. The RD signal is still required to get the [...]
-
Seite 21
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 modes for sampling/converting/sending tasks, the dual mode samples two channels at the same time and sends out the results in series to the data port[...]
-
Seite 22
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. CAUTION: In this mode, the sampl[...]
-
Seite 23
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. CAUTIO[...]
-
Seite 24
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. It also includes a C program to start data acquisition from a C level. T o limit the number of programs, the report supplies five files for running the ADC in five modes; a sixth program shows [...]
-
Seite 25
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 Kernel Buffer (10 Words) HPI RAM Block or Porgram RAM Program External On-Chip ROM ROM (Bootloader) ROM Interrupts Unused Software Interrupt T able Unu[...]
-
Seite 26
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. 8.3.1 Optimizing CPU Resources for Maximum Data Rates The ’ C54x processor on the D[...]
-
Seite 27
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 . 8.3.4 Data Page Point[...]
-
Seite 28
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. Using the fast return from IRQ instruction, and branching from the IRQ vector to a separate routine memory location, produces an IRQ overhead of[...]
-
Seite 29
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. Furthermore, a switch is needed to enable any of the software modules. Setting the [...]
-
Seite 30
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). Advantage: • Relatively fast program response after high-to-low transition of INT • The software compensates for variati[...]
-
Seite 31
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. First, if more than a few words of code have to be executed between two samples, the [...]
-
Seite 32
Software Overview 26 SLAA040 T able 12. Switch Settings SWITCH DESCRIBTION SAVE_INTO_MEMORY Store the samples into DSP memory (location defined in constants.asm ) SEND_OUT_SERIAL Send the samples always to the serial DAC TLC5618A SEND_OUT_PARALLEL Update always the parallel DAC with the last sample (DAC1) THS5651 Note: the 3 switches are independen[...]
-
Seite 33
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 .set 00001h ; enable 10-bit resolution R8BIT_RESOLUT .[...]
-
Seite 34
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.cmd organization of the DSP memory (data and program memory) auto.bat batch file to start t[...]
-
Seite 35
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 Port Initialize SPI Active T ransmitter , Use Frame Sync, Generate External Clock SA VE_INTO_MEMOR Y = 1 SA VE_INTO_MEMOR Y = 0 Initialize DSP Memory [...]
-
Seite 36
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. Program Files: MONOCST1.ASM Includes the complete software algorithm to control the[...]
-
Seite 37
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 , Use Frame Sync, Generate External Clock SA VE_INTO_MEMOR Y = 1 SA VE_INTO_MEMOR Y = 0 Initialize DSP Memory For Sample Store AR7 Points to The First[...]
-
Seite 38
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 conversion is done (INT set low), the DSP • selects the converter , • brings down the RD signal, • waits until the data are valid, • reads th[...]
-
Seite 39
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.2 MSPS with Internal Clock 8.5.3 Dual Interrupt Driven Mode The following descriptions explain the software for the data acquisition in Dual Interrupt Driven M[...]
-
Seite 40
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. Therefore, CST AR T gets pulled high directl[...]
-
Seite 41
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 , Use Frame Sync, Generate External Clock SA VE_INTO_MEMOR Y = 1 SA VE_INTO_MEMOR Y = 0 Initialize DSP Memory For Sample Store AR7 Points to The First[...]
-
Seite 42
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.ASM Calibration procedure[...]
-
Seite 43
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 , Use Frame Sync, Generate External Clock SA VE_INTO_MEMORY = 1 SA VE_INTO_MEMORY = 0 Initialize DSP Memory For Sample Store AR7 Points to The First S[...]
-
Seite 44
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.ASM Calibration procedure of[...]
-
Seite 45
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 , Use Frame Sync, Generate External Clock SA VE_INTO_MEMOR Y = 1 SA VE_INTO_MEMOR Y = 0 Initialize DSP Memory For Storing Samples AR7 Points to The Fi[...]
-
Seite 46
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. The required interface connections are shown in Figure 2. Program Files: C1562.ASM In[...]
-
Seite 47
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. 8.6.1.1 Constants.asm **********************************[...]
-
Seite 48
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 .set 00102h ; Automatic internal pow[...]
-
Seite 49
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.ASM * * FUNCTION : N/A * * PROTOTYPE : N/A * * CALLS : N/A * * PRECONDITION : N/A * * POSTCONDITION : N/A * [...]
-
Seite 50
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 interrupt nop nop trint goto trint ;58; TDM receive interrupt nop nop txint return_enable ;5C; TDM transmit interrupt nop nop nop int3 return_enable ;60;[...]
-
Seite 51
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.lnk COMMAND FILE */ [...]
-
Seite 52
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.ASM * * FUNCTION : MAIN * * PROTOTYPE : void MAIN () * * CALLS : SERIAL_DAC_INI() initia[...]
-
Seite 53
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 ” .variabl ” , 1 ; the value zero to send a ” Zero Dummy ” ADSAMPLE .usect ” .variabl ” , 1[...]
-
Seite 54
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 table location: * this is required for the DSKplus kit but has to be changed on other platforms DP = #1 ; point to page 1 (IRQ vector table) AR7 = #002[...]
-
Seite 55
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 .if INT0_DRIVEN * enable Interrupt INT0 @IMR |= #01 ; allow INT0 .endif * enable global interrupt (this is required even if no IRQ routine is used * by this program because the GoDSP debugger ne[...]
-
Seite 56
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 .endif **************************** * ADC_INI[...]
-
Seite 57
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 .endif * read sample STEP7: @ADSAMPLE = port(ADC) ; read the new sample into the DSP XF = 1 ; set R[...]
-
Seite 58
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 ; this has been included because the serial DAC TLC5618A is not able to understand ; endless data-streem (the CS should not become high before end of send[...]
-
Seite 59
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.ASM * * FUNCTION : CALIBRAT_INTERNAL_MID_SCALE * * CALIBRAT_SYSTEM_MID_SCALE * * CALLS : N[...]
-
Seite 60
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 for no calibration use @CR0_SEND &= #(MONO_CONTINUOUS^0FFFFh) ; clear bit for no calibration use @CR0_SEND &= #(DUAL_CONTINUOUS^0FFFFh) ; clear[...]
-
Seite 61
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 about the content IFR = #1 ; reset any old interrupt on pin INT0 ********************************* * set back ADC register CR0/CR1 ***********************[...]
-
Seite 62
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: @CR_CALIBRA &= #(MONO_INT^0FFFFh) ; clear bit for no calibration use @CR_CALIBRA &= #(DUAL_INT^0FFFFh) ; clear bit for no calibration use @CR_CA[...]
-
Seite 63
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 finished @TEMP = port(ADC) ; read the sample but don ’ t care about the content IFR = #1 ; reset any old interrupt on pin INT0 *********************[...]
-
Seite 64
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.ASM * * FUNCTION : MAIN * * PROTOTYPE : void MAIN () * * CALLS : N/A * * PRECONDIT[...]
-
Seite 65
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 .usect ” .variabl ” , 1 ; sent value to regis[...]
-
Seite 66
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 pointer * initialize waitstates: DP = #00000h ; point to page zero @SWWSR = #01000h ; one I/O wait states * copy interrupt routine, which are not critical f[...]
-
Seite 67
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 .endif .if [...]
-
Seite 68
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 .endif .if (AUTO_PWDN_ENABLE) @CR1_SEND [...]
-
Seite 69
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 ; wait for tW(CSH)=50ns ******************************************* * ADC_mono_IRQ_Start: * read samples and store them into memory ***********************[...]
-
Seite 70
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 .else goto STEP5 ; go back to receive next sample .endif ********************************** * STORE: * saving the samples into memory ***********************[...]
-
Seite 71
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 .endif STORE_END: RETURN ; jump back into data aquisition routine ************************************************************** * IRQ_INT0: * Interrupt routine of the external interrupt input pin [...]
-
Seite 72
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.ASM * * FUNCTI[...]
-
Seite 73
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 ” .variabl ” , 1 ; problem with initialization of this mode when repeated (reset) ZERO .usect ?[...]
-
Seite 74
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 = #01000h ; one I/O wait states * copy interrupt routine, which are uncritical by the EVM to the IRQ table location: * this is required for the DSKplus kit bu[...]
-
Seite 75
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 .endif .if INT0_DRIVEN * enable Interrupt INT0 DP = #0 @IMR |= #01 ; allo[...]
-
Seite 76
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 .endif .if (DIFF_INPUT_MODE) @CR0_SEND ^= #SINGLE_END ; [...]
-
Seite 77
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 CR0 value to the ADC STEP1: port(DEACTIVE) = @ZERO ; deselect ADC (CS high) NOP ; ******************************************* * ADC_dual_IRQ_Start: * re[...]
-
Seite 78
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) .if (AUTO_PWDN_ENABLE) * wait 800ns before finishing the sampling (requirment in Auto power down mode) repeat([...]
-
Seite 79
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: .endif * test for table end, set pointer back if true .if SAVE_INTO_MEMORY TC = (AR0 == AR7) ; i[...]
-
Seite 80
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.ASM * * FUNCTION : M[...]
-
Seite 81
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 .set 00002h ; activate A0 when TLV1562 is choosen RD_CALIBRATION .set 00001h ; a[...]
-
Seite 82
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 .if SEND_OUT_SERIAL ***********************************[...]
-
Seite 83
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 .endif .if (DIFF_INPUT_MODE) @CR0_SEND ^= #SINGLE_END ; clear single ended [...]
-
Seite 84
Software Overview 78 SLAA040 DP = #AD_DP ; ******************************************* * ADC_mono_con_Start: * read samples and store them into memory ******************************************* ADC_mono_con_Start: repeat(#12) NOP ; wait for t(SAMPLES) (450ns) STEP6: @ADSAMPLE = port(ADC) ; read the new sample into the DSP * IMPORTANT: fine – tun[...]
-
Seite 85
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 .endif S[...]
-
Seite 86
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.ASM * * FUNCTION : M[...]
-
Seite 87
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 .usect ” .variabl ” , 1 ; last readed sample of channel 2 * Address Decoder constants: ADC[...]
-
Seite 88
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 .if SEND_OUT_SERIAL *********[...]
-
Seite 89
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 .endif .if ([...]
-
Seite 90
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 ******************************************* ADC_dual_con_Start: repeat(#12) NOP ; wait for t(SAMPLES) (450ns) STEP6: @CH1_ADSAMPLE = port(ADC) ; read the new sa[...]
-
Seite 91
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: .endif * test for table end, set pointer back if true .if SAVE_INTO_MEMORY TC = [...]
-
Seite 92
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.c) /* File: C1562.C */ / * This file will select the parameters to allow a C – call of the ADC sampling */ extern void TLV1562(int, int, int) ; main() { / * TLV1562(Channe[...]
-
Seite 93
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 ; .setsect ” .variabl ” , 0x01800,1 ; sections of code .s[...]
-
Seite 94
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 date location of the storage table A = @ADCOUNT ; AR0 points to table end B = @ADMEM A += B AR0 = A ; AR0 is loaded with last save location AR5 = #(IFR)[...]
-
Seite 95
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 CSTART STEP5: * wait until INT – goes low in polling the INT0 pin: M1: TC = bit( *AR5,15 – 0) ; test, is the INT0 Bit in IFR=1? if (NTC) goto M1 ; wait[...]
-
Seite 96
Software Overview 90 SLAA040 BXINT0: return_enable ; interrupt is not in use .end V ectors.asm ************************************************************************** * TITLE : TLV1562 ADC Interface routine * * FILE : VECTORS.ASM * * FUNCTION : N/A * * PROTOTYPE : N/A * * CALLS : N/A * * PRECONDITION : N/A * * POSTCONDITION : N/A * * SPECIAL CON[...]
-
Seite 97
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 interrupt nop nop nop brint return_enable ;50; BSP receive interrupt nop nop nop bxint goto BXINT0 ;54; BSP transmit interrupt nop nop trint goto trint ;58; T[...]
-
Seite 98
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.exe c1562.asm pause asm500 asm1562.asm – l – mg – q – s pause asm500 c1562.cnv ?[...]
-
Seite 99
Summary 93 Interfacing the TL V1562 Parallel ADC to the TMS320C54x DSP .text : {} > PROG PAGE = 0 .vectors : {} > VECT PAGE = 0 .data : {} > RAMB0 PAGE = 1 .variabl : {} > RAMB0 PAGE = 1 .stack : {} > STAC PAGE = 1 } 9 Summary This application report provides several software application examples and recommendations for simplifying t[...]