58SLAA040

Software Overview

8.6.4Mono Mode Interrupt Driven Software Using CSTART to Start Conversion

Mainprogram (Monomode.asm)

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

* TITLE

: TLV1562 ADC Interface routine

*

* FILE

: MONOCST1.ASM

*

* FUNCTION

: MAIN

*

* PROTOTYPE

: void MAIN ()

*

* CALLS

: N/A

*

* PRECONDITION : N/A

*

* POSTCONDITION : N/A

*

* SPECIAL COND. : AR0 protected – in use for the data storage procedure

*

*

AR5 protected – in use for polling IFR

*

*

 

 

(only for software polling solution)

*

*

AR7 protected – in use for the data storage procedure

*

* DESCRIPTION

: main routine to use the mono interrupt driven mode

*

 

 

 

 

 

*

and the CSTART signal to CPU power for the conversion

*

*

time

*

* AUTHOR

: AAP Application Group, ICKE, Dallas

*

*

CREATED 1998(C) BY TEXAS INSTRUMENTS INCORPORATED.

*

* REFERENCE

: TMS320C54x User’s Guide, TI 1997

*

*

TMS320C54x DSKPlus User’s Guide, TI 1997

*

*

Data Aquisation Circuits, TI 1998

*

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

.title

”MONOCST1”

.mmregs

 

.width

80

.length

55

.version 542

*the next 4 lines (setsect) have to be enabled if the DSKplus code generator

*instead of the asm500.exe tools are in use

;

.setsect ”.vectors”,0x00180,0 ; sections of code

;.setsect ”.text”, 0x00200,0 ; these assembler directives specify

;.setsect ”.data”, 0x01800,1 ; the absolute addresses of different

;

.setsect ”.variabl”,0x01800,1

; sections of code

 

.sect ”.vectors”

 

 

.copy ”vectors.asm”

 

 

.sect ”.data”

 

 

.copy ”constant.asm”

 

* ADC conversation

 

AD_DP

.usect ”.variabl”, 0

; pointer address when using any of the

 

 

 

following variables

ACT_CHANNEL

.usect ”.variabl”, 1

; jump address to init. new channel

58SLAA040

Page 64
Image 64
Texas Instruments TLV1562 manual Mainprogram Monomode.asm, Software Overview, SLAA040