8.6.6Mono Continuous Mode

Software Overview

Constants definition – see 8.6.1.1 Constants.asm

Interrupt Routine handler – see 8.6.1.2 Interrupt Vectors

8.6.6Mono Continuous Mode

Mainprogram (MONOCON1.asm)

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

* TITLE

: TLV1562 ADC Interface routine

*

* FILE

: MONOCON1.ASM

*

* FUNCTION

: MAIN

*

* PROTOTYPE

: void MAIN ()

*

* CALLS

: N/A

*

* PRECONDITION

: N/A

*

* POSTCONDITION

: N/A

*

* DESCRIPTION

: main routine to use the mono continuous driven mode

*

* 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

”MONOCON1”

.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

CR0_SEND

.usect ”.variabl”, 1

; the last value, sent to register CR0

CR1_SEND

.usect ”.variabl”, 1

; the last value, sent to register CR1

CR_PROBLEM

.usect ”.variabl”, 1

; problem with initialization of this mode when

 

 

repeated (reset)

ZERO

.usect ”.variabl”, 1

; the value zero to send

TEMP

.usect ”.variabl”, 1

; temporary variable

74SLAA040

Page 80
Image 80
Texas Instruments TLV1562 Mono Continuous Mode, Mainprogram MONOCON1.asm, Constants definition - see 8.6.1.1 Constants.asm