TV Converter Box User Manual

Software Overview
74 SLAA040
Constants definition see 8.6.1.1 Constants.asm
Interrupt Routine handler see 8.6.1.2 Interrupt Vectors
8.6.6 Mono 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 Users 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 ; sendbytes 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