Software Overview
26
SLAA040
Table 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 independent from each other
R10BIT_RESOLUT
Use maximum resolution of 10 bit
R8BIT_RESOLUT
Use 8-Bit resolution
R4BIT_RESOLUT
Use fastest mode (4-Bit resolution)
Note: enable only one of the 3 switches
INTERNAL_CLOCK
Use the internal clock of the ADC
EXTERNAL_CLOCK
Use the external clock of the ADC
Note: enable only one of the 2 switches
AUTO_PWDN_ENABLE
ADC reduces power consumption after conversion
1 – enable power down mode
0 – no PWDN mode
DIFF_INPUT_MODE
Use differential mode instead of single ended inputs
1 – differential ADC input
0 – single ADC input
IME_CALIBRATION
Internal Midscale Error Calibration
SME_CALIBRATION
System midscale error calibration
Note: the 2 switches are independent from each other; however, performing
more than one calibration does not make sense see data sheet)
Features not listed in Table 12 must be changed directly in the two data words,
CR0/1, that are sent to the ADC. In general, correct bit setting is described in the
data sheet. However, the file CONSTANT.ASM includes a look-up table to
simplify the task of setting the right bits in CR0 and CR1. Thus, all it requires is
to place the synonym for each feature into the correct bracket as shown in the
next example:
EXAMPLE
Task 1.1:
Sample channel 1 in mono interrupt driven mode with single ended inputs. Use
the internal 8-MHz clock of the ADC and do not run in any power save mode. The
result should have a binary format with 10-bit resolution. The conversion start is
controlled by the RD signal.
Table 13. Instruction in the Program Header (Step 1)
R10BIT_RESOLUT
.set 00001h ; enable 10-bit resolution
R8BIT_RESOLUT
.set 00000h ;
R4BIT_RESOLUT
.set 00000h ;
INTERNAL_CLOCK
.set 00001h ; use internal clock
EXTERNAL_CLOCK
.set 00000h ;
AUTO_PWDN_ENABLE
.set 00000h ; disable auto power down
DIFF_INPUT_MODE
.set 00000h ; single input mode
IME_CALIBRATION
.set 00000h ; no internal calibration
SME_CALIBRATION
.set 00000h ; no system calibration
Summary of Contents for TLV1562
Page 6: ...vi SLAA040 ...