
LTC1407/LTC1407A
19
1407fb
APPLICATIONS INFORMATION
;
———————mask and shift input data ——————————————
bufull:
b = *ar3+ << -0
; load acc b with BSP buffer and shift right -0
b = #07FFFh & b
; mask out the TRISTATE bits with #03FFFh
;
*ar2+ = data(#0bh)
; store B to out buffer and advance AR2 pointer
TC = (@ar2 == #02000h)
; output buffer is 2k starting at 1800h
if (TC) goto start
; restart if out buffer is at 1fffh
goto bufull
;
—————————dummy bsend return————————————
bsend
return_enable
;this is also a dummy return to dene bsend
;in vector table le BVECTORS.ASM
;
——————————— end ISR ——————————————
.copy “c:\dskplus\1407A\s2k14ini.asm”
;initialize buffered serial port
.space 16*32
;clear a chunk at the end to mark the end
;======================================================================
;
VECTORS
;
;======================================================================
.sect “vectors”
;The vectors start here
.copy “c:\dskplus\1407A\bvectors.asm”
;get BSP vectors
.sect “buffer”
;Set address of BSP buffer for clearing
.space 16*0x800
.sect “result”
;Set address of result for clearing
.space 16*0x800
.end
; ***************************************************************************
; File: BVECTORS.ASM -> Vector Table for the ‘C54x DSKplus
10.Jul.96
;
BSP vectors and Debugger vectors
;
TDM vectors just return
; ***************************************************************************
; The vectors in this table can be congured for processing external and
; internal software interrupts. The DSKplus debugger uses four interrupt
; vectors. These are RESET, TRAP2, INT2, and HPIINT.
;
*
DO NOT MODIFY THESE FOUR VECTORS IF YOU PLAN TO USE THE DEBUGGER
*
;
; All other vector locations are free to use. When programming always be sure
; the HPIINT bit is unmasked (IMR=200h) to allow the communications kernel and
; host PC interact. INT2 should normally be masked (IMR(bit 2) = 0) so that the
; DSP will not interrupt itself during a HINT. HINT is tied to INT2 externally.
;