Texas Instruments TLV1562 User Manual

Page 48

Advertising
background image

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 power–down Enabled

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

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

NO_DEBUG .set 00000h ; Debug mode disabled

DEBUG_MODE .set 00108h ; Debug mode enabled

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

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

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

RD_CONV_START .set 00100h ; start Conversion by RD Signal

CST_CONV_START .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 = #(CH4|MONO_CONTINUOUS|SINGLE_END|CLK_EXTERNAL|CALIB_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

Advertising