Texas Instruments TLV1562 Dual Interrupt Driven Mode, Mainprogram DUALIRQ1.asm, Software Overview

Models: TLV1562

1 99
Download 99 pages 55.38 Kb
Page 72
Image 72
Constants definition – see 8.6.1.1 Constants.asm

Software Overview

Constants definition – see 8.6.1.1 Constants.asm

Interrupt Routine handler – see 8.6.1.2 Interrupt Vectors

8.6.5Dual Interrupt Driven Mode

Mainprogram (DUALIRQ1.asm)

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

* TITLE

: TLV1562 ADC Interface routine

*

* FILE

: DUALIRQ1.ASM

*

* FUNCTION

: MAIN

*

* PROTOTYPE

: void MAIN ()

*

* CALLS

: N/A

*

* PRECONDITION

: N/A

*

* POSTCONDITION

: N/A

*

* 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

*

*

: Data Aquisation Circuits, TI 1998

*

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

.title ”DUALIRQ1”

.mmregs

.width 80

.length 55

.version 542

;.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”

AD_DP

.usect ”.variabl”, 0

;

ACT_CHANNEL .usect ”.variabl”, 1

; jump address to init. new channel

ADWORD

.usect ”.variabl”,

1

; send–bytes to the ADC

ADCOUNT

.usect ”.variabl”, 1

; counter for one channel

ADMEM

.usect ”.variabl”,

1

; points to act. memory save location

66SLAA040

Page 72
Image 72
Texas Instruments TLV1562 Dual Interrupt Driven Mode, Constants definition - see 8.6.1.1 Constants.asm, Software Overview