English
Language : 

TDA7590_09 Datasheet, PDF (36/42 Pages) STMicroelectronics – Digital signal processing IC for speech and audio applications
Appendix 1
TDA7590
ENDIF
;------------------------------------------------------------------------
; Enable interrupts
;------------------------------------------------------------------------
Andi #$fc,mr
; set DSP interrupt priority level to 0
; Sets the Interrupt Mask bits in the SR
; to [00] (No exceptions masked)
IF 1
Bset #0,x:M_TCSR0
Bset #0,x:M_TCSR1
Bset #0,x:M_TCSR2
ENDIF
; Enable Timer0
; Enable Timer1
; Enable Timer2
move
move
move
move
#states,r3
#ntaps-1,m3
#coef,r4
#ntaps-1,m4
;------------------------------------------------------------------------
; Processor Loop
;------------------------------------------------------------------------
IF 0
LOOP
; bset
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp LOOP
ENDIF
#12,x:SCR_ADR
; start SCI transmit
IF 1
LOOP
; bset
mac
move
move
move
#12,x:SCR_ADR
x0,y0,a
x:(r3)+,x0
#$AAAAAA,x0
x0,x:$CAAAAA
x0,x:GPIODAT
y:(r4)+,y0
; start SCI transmit
; generates variations on mean value of DAC
; send data to expansion port
; move PORTB pins
bset
mac
move
move
move
#12,x:SCR_ADR
x0,y0,a
x:(r3)+,x0
#$555555,x0
x0,x:$C55555
x0,x:GPIODAT
y:(r4)+,y0
; start SCI transmit
; generates variations on mean value of DAC
; send data to expansion port
; move PORTB pins
36/42