Software Overview
30
SLAA040
8.5.2
Mono Interrupt Driven Mode Using CSTART to Start Conversion
The following descriptions explain the software for the data acquisition in
monomode using the CSTART signal. The required interface connections are
shown in Figure 1.
Program Files:
MONOCST1.ASM
Includes the complete software algorithm to control the monomode
CALIBRAT.ASM
Calibration procedure of the DAC
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 the compiler for the monomode software
asm500.exe
C54x Code compiler
lnk500.exe
C54x linker
The timing requirements to interface the ’C54x to the ADC are provided in Table
8. The STEP numbers, given there, can be found again as Marker in the code.
This helps to debug and verify the code.
IMPORTANT NOTE: The code has been optimized during the
software development to maximize the data throughput. It was
found that CSTART can be pulled down earlier than the data read
instruction is performed by the DSP. The advantage is to save the
100-ns wait time in STEP 6 because the data read requires at least
100 ns. Therefore, CSTART gets pulled back high directly after
data read and the interface becomes faster and gains throughput.
This variation will be found in the code; the data acquisition
software contains a small number of steps, and everything is
explained in the code.
Code verification:
To verify the software, the user must change the code in the MONCST1.ASM file
and save those changes. The next step is to recompile the four .ASM files by
executing the AUTO.BAT batch file. If compiler and linker finish without error
messages, the new output file is ready to load in the DSP program memory (e.g.
with the GoDSP development tools) and to execute.
The flowchart in Figure 8 gives a general overview of the software structure
(MONOCST1.ASM).
Содержание TLV1562
Страница 6: ...vi SLAA040 ...