60SLAA040

Software Overview

_MAIN:

START:

INITIALIZATION:

* disable IRQ, sign extension mode, ini Stack

 

INTM

= 1

; disable IRQ

 

SXM

= 0

; no sign extension mode

;

SP

= #0280h

; initialize Stack pointer

* initialize waitstates:

 

 

DP

= #00000h

; point to page zero

 

@SWWSR = #01000h

; one I/O wait states

*copy interrupt routine, which are not critical for the EVM to the IRQ table location:

*this is required for the DSKplus kit but has to be changed on other platforms

DP

= #1

; point to page 1 (IRQ vector table)

AR7

= #00200h

 

 

 

 

 

repeat(#3h)

 

 

 

 

 

data(0084h) = *AR7+

; copy the NMI vector

AR7

= #00240h

 

 

 

 

 

repeat(#35)

 

 

 

 

 

data(00C0h) = *AR7+

 

 

 

 

 

; copy INT0, INT1,...

* clear all memory locations of the sampling table (table, where the samples will be stored)

DP

= #AD_DP

;

@TEMP

= #00000h

;

repeat(#num_data_A–1)

 

data(data_loc_A) = @TEMP

; fill memory table 1

repeat(#num_data_B–1)

 

data(data_loc_B) = @TEMP

; fill memory table 2

repeat(#num_data_C–1)

 

data(data_loc_C) = @TEMP

; fill memory table 3

repeat(#num_data_D–1)

 

data(data_loc_D) = @TEMP

; fill memory table 4

.if SEND_OUT_SERIAL

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

*SERIAL_DAC_INI:

*initialize the serial interface to send out the samples for the serial DAC

*set up the serial interface for a DSP–DAC (5618A) conversation

*initialize the SPI interface and the DAC

*the serial interface will be updated with the last sample if the serial

*buffer is empty (after the last bit has been sent)

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

60SLAA040

Page 66
Image 66
Texas Instruments TLV1562 manual Software Overview, if SENDOUTSERIAL, SLAA040