Texas Instruments TLV1562 manual Software Overview

Models: TLV1562

1 99
Download 99 pages 55.38 Kb
Page 65
Image 65
Manual background

Software Overview

ADCOUNT

.usect ”.variabl”, 1

ADMEM

.usect ”.variabl”, 1

CR0_SEND

.usect ”.variabl”, 1

CR1_SEND

.usect ”.variabl”, 1

CR_PROBLEM

.usect ”.variabl”, 1

ZERO

.usect ”.variabl”, 1

ADSAMPLE

.usect ”.variabl”,1

* TLC5618 conversation

SERIAL_SEND .usect ”.variabl”, 1

* other

 

TEMP

.usect ”.variabl”, 1

*Address Decoder constants:

RD_CALIBRATION .set 00001h

ADC

.set

00002h

DAC1

.set

00003h

DEACTIVE

.set

00000h

;counter for one channel

;points to act. memory save location

;sent value to register CR0 of the ADC

;sent value to register CR1 of the ADC

;problem with initialization of this mode

;when repeated (reset)

;the value zero to send a ”Zero Dummy”

;last read sample from the ADC

;serial output send word

;temporary variable, can be changed anywhere during the program

;activate A1 when RD_CALIBRATION is choosen

;activate A2 when TLV1562 is choosen

;activate A3 when DAC1 is choosen

;deactivate the address lines A0, A1 and A2

* set timing mode (use od IRQ, or timer)

POLLING_DRV

.set

00001h

; software polls the INT0 pin to wait, until

 

 

 

conversion is done

 

 

 

 

 

 

INT0_DRIVEN

.set

00000h

; software uses Interrupt INT0 to organize conversion

NO_INT0_SIG

.set

00000h

; INT0 signal not in use, interface is controlled

 

 

 

with timing solution

SAVE_INTO_MEMORY .set

00000h

; store the samples into DSP memory, defined in

 

 

 

”constants.asm”

SEND_OUT_SERIAL .set 00000h

; send the samples always to the serial DAC

SEND_OUT_PARALLEL.set 00001h

; update always the parallel DAC with the last

 

 

 

sample (DAC1)

R10BIT_RESOLUT

.set

00001h

; use maximum resolution of 10 bit

R8BIT_RESOLUT

.set

00000h

; use 8 Bit resolution

R4BIT_RESOLUT

.set

00000h

; use fastest mode (4 Bit resolution)

INTERNAL_CLOCK

.set

00001h

; use the internal clock of the ADC

EXTERNAL_CLOCK

.set

00000h

; use the external clock of the ADC

AUTO_PWDN_ENABLE .set

00000h

; ADC goes into power reduced state after conversion

DIFF_INPUT_MODE .set 00000h

; use differential mode instead of single ended inputs

IME_CALIBRATION .set 00000h

; do an Internal Midscale Error Calibration

SME_CALIBRATION .set 00000h

; do a System Midscale Error Calibration

.sect ”.text”

 

 

 

 

 

Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP

59

Page 65
Image 65
Texas Instruments manual Software Overview, Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP