Software Overview
46
SLAA040
8.6.2
Mono Mode Interrupt Driven Software Using RD to Start Conversion
Mainprogram (Monomode.asm)
**************************************************************************
* TITLE : TLV1562 ADC Interface routine *
* FILE : MONOIDM1.ASM *
* FUNCTION : MAIN *
* PROTOTYPE : void MAIN () *
* CALLS : SERIAL_DAC_INI() initialzation of the BSPI/serial DAC *
* 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 *
* 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 ”MONOIDM1”
.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
ADCOUNT .usect ”.variabl”, 1 ; counter for one channel
ADMEM .usect ”.variabl”, 1 ; points to act. memory save location
Summary of Contents for TLV1562
Page 6: ...vi SLAA040 ...