Texas Instruments TLV1562 manual Software Overview, SLAA040

Models: TLV1562

1 99
Download 99 pages 55.38 Kb
Page 48
Image 48
.set 000C0h ; Operate without calibrated inputs (no offset)

Software Overview

NO_CALIB_OP

*INDEX MODE 1: NO_SW_PWDN SW_PWDN

NO_AUTO_PWDN AUTO_PWDN

TWO_COMPLEMENT NO_2COMPLEMENT

NO_DEBUG

DEBUG_MODE

RES_10_BIT

RES_8_BIT

RES_4_BIT

RD_CONV_START CST_CONV_START

.set 000C0h ; Operate without calibrated inputs (no offset)

.set 00100h ; Software power down mode disabled

.set 00101h ; instruction for software power down

.set 00100h ; Automatic internal power–down Disabled

.set 00102h ; Automatic internal power–down Enabled

.set 00100h ; ADC output in 2s complement format

.set 00104h ; ADC output is binary, not in 2s complement

.set 00000h ; Debug mode disabled

.set 00108h ; Debug mode enabled

.set 00100h ; 10-bit resolution of the ADC

.set 00120h ; 8-bit resolution of the ADC

.set 00110h ; 4-bit resolution of the ADC

.set 00100h ; start Conversion by RD Signal

.set 00140h ; start Conversion by CSTART Signal

;Example to use the constants, decribed on the top:

;set the sending value ”send” to sampling Channel 4 with external clock source

;calibrated inputs into Mono Continuous Mode

;

;@send = #(CH4MONO_CONTINUOUSSINGLE_ENDCLK_EXTERNALCALIB_OP);

;port(xxxxh) = @send ; send the value over the Data lines to the TLCV1562

***********************************************************

*memory organization (table write of samples) for the C54x

***********************************************************

num_data_A .set 00200h ; Number of data from channel A

num_data_B

.set 00200h ; Number of data from channel B

num_data_C

.set 00200h ; Number of data from channel C

num_data_D

.set 00200h ; Number of data from channel D

data_loc_A

.set 02000h ; Start data location for channel A

data_loc_B

.set 02200h

; Start data location for channel B

data_loc_C

.set 02400h

; Start data location for channel C

data_loc_D

.set 02600h

; Start data location for channel D

TRASH

.set 02000h

; address to waste the first input sample

 

 

; after initialization

*******************************************************

*bit setting of the serial DAC to match the right mode

*******************************************************

TLC5618_LATCH_A .set 08000h ; update output A

TLC5618_LATCH_B

.set 00000h ;

update B

TLC5618_DOUBLE_LATCH.set 01000h ;

update both outputs

TLC5618_FAST_MODE

.set 04000h

;

fast settling time (2.5us)

TLC5618_SLOW_MODE

.set 00000h

;

slower settling time (power save)

TLC5618_POWER_UP

.set 00000h

;

remain active

TLC5618_POWER_DOWN

.set 02000h

;

go sleep

42SLAA040

Page 48
Image 48
Texas Instruments TLV1562 manual Software Overview, set 000C0h Operate without calibrated inputs no offset, SLAA040