Texas Instruments TLV1562 User Manual
Page 54
Software Overview
48
SLAA040
* 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 send)
******************************************************************************
SERIAL_DAC_INI:
BSPI_INI:
DP = #0
@BSPC = #00038h ; reset SPI
@BSPCE = #00101h ; set clock speed, no Autobuffer Mode
@BSPC = #0C078h ; start serial port
.endif
.if (INT0_DRIVEN|POLLING_DRV)