Manuals
/
Texas Instruments
/
TV and Video
/
TV Converter Box
Texas Instruments
TLV1562 manual viSLAA040
Models:
TLV1562
1
6
99
99
Download
99 pages
55.38 Kb
3
4
5
6
7
8
9
10
<
>
File Linker.lnk COMMAND FILE
Timer Output
Signal Connections
Timed Solution
if AUTOPWDNENABLE
Switch Settings
Page 6
Image 6
vi
SLAA040
Page 5
Page 7
Page 6
Image 6
Page 5
Page 7
Contents
Application Report
July
SLAA040
TParalInteMS3rflelADConvertertotheacing20C54xDSPtheTLV1562
IMPORTANT NOTICE
Contents
8.5.5
Figures
List of Figures
List of Tables
Interfacing the TLV1562 Parallel AD-Converter to the TMS320C54x DSP
viSLAA040
2 The Board
Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP
1 Introduction
2.1 TMS320C54x Starter Kit
2.3.1 Suggestions for the ’C54x to TLV1562 Interface
2.2 TLV1562EVM
2.3 ADC TLV1562 Overview
2.3.1.1 The Universal Interface
Using RD or the CSTART Signal to Start Conversion
2.3.2 Recyclic Architecture
Figure 2. TLV1562 to ’C54x DSP Interface of the EVM
2.3.3 Note on the Interface, Using an External ADC Clock Drive
2.4 Onboard Components
2.4.1 TLC5618A - Serial DAC
2.4.2 THS5651 - Parallel Output CommsDAC
Figure 3. TLC5618A to ’C542 DSP Interface
Figure 4. THS5651 to C542 DSP Interface
3 Operational Overview
3.1 Reference Voltage Inputs
3.2 Input Data Bits
Table 1. Signal Connections
3.3 Connections Between the DSP and the EVM
Table 3. 2-Position Jumpers
3.3.1 Jumpers Used on the TLV1562EVM
Table 2. 3-Position Jumpers
Operational Overview
4 The Serial DAC/DSP System
Table 4. DSP/DAC Interconnection
Table 5. DSP Serial Port Signals and Registers
5 The DSP Serial Port
6 Other DSP/TLV1562 Signals
6.1 DSP Internal Serial Port Operation
7.1 Writing to the ADC
7.2 Mono Interrupt Driven Mode Using RD
7 Conversation Between the TLV1562 and the DSP
Table 6. DSP Algorithm for Writing to the ADC
Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP
Table 7. DSP Algorithm for Mono Interrupt Driven Mode Using RD
Conversation Between the TLV1562 and the DSP
tDCSL-sample+1ADCSYSCLK
Conversation Between the TLV1562 and the DSP
7.3 Mono Interrupt Driven Mode Using CSTART
Table 8. DSP Algorithm for Mono Interrupt Driven Mode Using CSTART
14 SLAA040
Conversation Between the TLV1562 and the DSP
7.4 Dual Interrupt Driven Mode
Table 9. DSP Algorithm for Dual Interrupt Driven Mode
Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP
Conversation Between the TLV1562 and the DSP
7.5 Mono Continuous Mode
Table 10. DSP Algorithm for Mono Continuous Mode
16 SLAA040
Conversation Between the TLV1562 and the DSP
7.6 Dual Continuous Mode
Table 11. DSP Algorithm for Dual Continuous Mode
Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP
8 Software Overview
8.1 Software Development tools
8.2 DSP Memory Map
Figure 5. Memory Map
Software Overview
Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP
8.3.1 Optimizing CPU Resources for Maximum Data Rates
8.3.3 Timer Output
8.3 Programming Strategies for the ’C54x, Explanations
8.3.2 Address and Data Bus for I/O Tasks
8.3.5 Generating the Chip Select Signal and the CSTART Signal
8.3.4 Data Page Pointer
8.3.6 Interfacing the Serial DAC 5618A to the DSP
GOTO MARK
8.3.7 Interrupt Latency
8.3.8 Branch Optimization goto/dgoto, call/dcall
MARK DP = #1 ARP = #5
8.3.9 Enabling Software Modules .if/.elseif/.endif
8.4 Software Code Explanation
8.4.1 Software Principals of the Interface
Advantage
8.4.1.2 Timed Solution
8.4.1.1 Software Polling
Disadvantage
Advantages
8.4.1.3 Interrupt Driven Solution
8.4.1.5 Setting the Right Switches
Disadvantages
Table 12. Switch Settings
Task
Table 13. Instruction in the Program Header Step
Table 14. Instruction in the Program Header Step
8.5 Flow Charts and Comments for All Software Modes
8.5.1 The Mono Interrupt Driven Mode Using RD to Start Conversion
8.4.1.6 Common Software for all Modes
Code verification
Program Files
Other Files
common file of all modes constants definition
Figure 6. Software Flow of the Mono Interrupt Driven Solution
Software Overview
Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP
Program Files
8.5.2 Mono Interrupt Driven Mode Using CSTART to Start Conversion
Calibration procedure of the DAC
Other Files
Initialize SPI
Software Overview
Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP
SAVE
8.5.2.1 Throughput Optimization†
This only works for one TLV1562 not multiple because CS is not used
Maximum Performance at 1.2 MSPS with Internal Clock
8.5.3 Dual Interrupt Driven Mode
Figure 8. Time Optimization monocst1
Program Files
IMPORTANT NOTE The code has been optimized to maximize the data throughput. It was found that CSTART can be pulled low earlier than the data read instruction is performed by the DSP. This saves the 100-ns wait time in STEP 3 because the data read requires at least 100 ns. Therefore, CSTART gets pulled high directly after data read, and the interface becomes faster and gains throughput. This variation will be found in the code. The data acquisition is done in a small number of steps that explains everything inside the code
Code verification
Software Overview
Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP
Other Files
8.5.4 Mono Continuous Mode
Program Files
Code verification
Figure 10. Flow Chart Mono Continuous Mode
Software Overview
Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP
Other Files
8.5.5 Dual Continuous Mode
Program Files
Code verification
Figure 11. Flow Chart Dual Continuous Mode
Software Overview
Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP
Program Files
Other Files
Code verification
8.6.1.1 Constants.asm
8.6 Source Code
8.6.1 Common Software for all Modes except C-Callable
Software Overview
Software Overview
set 000C0h Operate without calibrated inputs no offset
42 SLAA040
8.6.1.2 Interrupt Vectors
Software Overview
Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP
4C internal timer interrupt
Software Overview
44 SLAA040
File Linker.lnk COMMAND FILE
8.6.1.3 linker,cmd
8.6.1.4 Auto.bat
title ”COMMAND FILE FOR TLV1562.ASM”
Software Overview
Mainprogram Monomode.asm
pointer address when using any of the following variables
jump address to init. new channel
Software Overview
sent value to register CR0 of the ADC
Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP
endif if INT0DRIVENPOLLINGDRV
Software Overview
if SENDOUTSERIAL
48 SLAA040
Software Overview
endif
Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP
endif if DIFFINPUTMODE
if AUTOPWDNENABLE
Software Overview
endif
Software Overview
elseif NOINT0SIG
Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP
endif
52 SLAA040
Software Overview
8.6.3 Calibration of the ADC
CALIBRAT.ASM
Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP
Software Overview
54 SLAA040
if SMECALIBRATION
Software Overview
endif
Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP
Software Overview
56 SLAA040
endif
Software Overview
endif
Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP
Mainprogram Monomode.asm
Software Overview
58 SLAA040
Software Overview
Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP
Software Overview
if SENDOUTSERIAL
60 SLAA040
if INT0DRIVENPOLLINGDRV
Software Overview
endif
endif
Software Overview
elseif R4BITRESOLUT
62 SLAA040
= bit*AR5,15-0
Software Overview
if POLLINGDRV
elseif INT0DRIVEN
endif
Software Overview
if INT0DRIVEN
if SENDOUTPARALLEL
Software Overview
endif
Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP
Interrupt Routine handler - see 8.6.1.2 Interrupt Vectors
8.6.5 Dual Interrupt Driven Mode
Constants definition - see 8.6.1.1 Constants.asm
Mainprogram DUALIRQ1.asm
Software Overview
Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP
Software Overview
if SENDOUTSERIAL
Software Overview
endif
Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP
if EXTERNALCLOCK
if AUTOPWDNENABLE
Software Overview
endif
endif
if AUTOPWDNENABLE
Software Overview
if POLLINGDRV
endif
if AUTOPWDNENABLE
Software Overview
if INT0DRIVEN
if SAVEINTOMEMORY
Software Overview
endif
endif
Constants definition - see 8.6.1.1 Constants.asm
8.6.6 Mono Continuous Mode
Mainprogram MONOCON1.asm
Interrupt Routine handler - see 8.6.1.2 Interrupt Vectors
Software Overview
Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP
endif
Software Overview
if SENDOUTSERIAL
if R8BITRESOLUT
endif if DIFFINPUTMODE
Software Overview
endif if EXTERNALCLOCK
endif
endif if SAVEINTOMEMORY
Software Overview
if SENDOUTPARALLEL
endif if SENDOUTSERIAL
endif
Software Overview
endif if SAVEINTOMEMORY
Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP
Constants definition - see 8.6.1.1 Constants.asm
8.6.7 Dual Continuous Mode
Mainprogram DUALCON1.asm
Interrupt Routine handler - see 8.6.1.2 Interrupt Vectors
Software Overview
Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP
endif
Software Overview
if SENDOUTSERIAL
if R8BITRESOLUT
endif if DIFFINPUTMODE
Software Overview
endif if EXTERNALCLOCK
endif
endif if SAVEINTOMEMORY
Software Overview
if SENDOUTPARALLEL
endif if SENDOUTSERIAL
Software Overview
Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP
Constants definition - see 8.6.1.1 Constants.asm
8.6.8 C-Callable
Mainprogram C1562.c
Interrupt Routine handler - see 8.6.1.2 Interrupt Vectors
Software Overview
Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP
Software Overview
88 SLAA040
AR7+ = data@ADSAMPLE
Software Overview
= bit*AR5,15-0
Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP
Vectors.asm
Software Overview
90 SLAA040
int2 returnenable 48 external interrupt int2 nop
Software Overview
Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP
File Linker.lnk COMMAND FILE
Auto.bat
Linker.cmd
title ”COMMAND FILE FOR TLV1562.ASM”
9 Summary
10 References