English
Language : 

TDA7590_09 Datasheet, PDF (37/42 Pages) STMicroelectronics – Digital signal processing IC for speech and audio applications
TDA7590
Appendix 1
bset
mac
move
move
move
#12,x:SCR_ADR
x0,y0,a
x:(r3)+,x0
#$AAAAAA,x0
x0,x:$CAAAAA
x0,x:GPIODAT
bset #12,x:SCR_ADR
mac
x0,y0,a
x:(r3)+,x0
move #$555555,x0
move x0,x:$C55555
move x0,x:GPIODAT
jmp LOOP
ENDIF
y:(r4)+,y0
; start SCI transmit
; generates variations on mean value of DAC
; send data to expansion port
; move PORTB pins
y:(r4)+,y0
; start SCI transmit
; generates variations on mean value of DAC
; send data to expansion port
; move PORTB pins
;------------------------------------------------------------------------
; Interrupt Service Routines
;------------------------------------------------------------------------
;SAI
;------------------------------------------------------------------------
INT_TDE
; The transmitter data empty flag is cleared as soon
; as the last move is performed
Movep a,y:<<SAI_TX0
; Load LEFT transmit data register for channel 0
nop
nop
movep b,y:<<SAI_TX0
; Load RIGHT transmit data register for channel 0
rti
INT_RDR
movep
move
nop
nop
movep
move
rti
y:<<SAI_RX0,a
a,x:(r0)
y:<<SAI_RX0,b
b,y:(r0)+
; The receiver data ready flag is cleared as soon
; as the last move is performed
; Move Channel 0 received LEFT data to x-memory.
; Move channel 0 received RIGHT data to y-memory.
INT_ROF
bset
bclr
rti
#16,y:SAI_RCS
#16,y:SAI_RCS
INT_TUF
bset
bclr
rti
#16,y:SAI_TCS
#16,y:SAI_RCS
;TIMER
37/42