User guide

54 DSPAUDIOEVM Evaluation Board Users Manual MOTOROLA
This document contains information on a new product. Specifications and information herein are subject to change without notice.
esai_txe_isr ; ESAI transmit exception isr
bclr #14,x:M_SAISR ; clear underrun error flag
esai_tx_isr ; ESAI transmit isr
move r0,x:(r6)+ ; save r0 to the stack
move m0,x:(r6)+ ; save m0 to the stack
move #1,m0 ; modulus 2 buffer
move x:TX_PTR,r0
; load the pointer to the Tx buffer
nop
movep x:(r0),x:M_TX0 ; write tx data to transmitter 0
movep x:(r0),x:M_TX1 ; write tx data to transmitter 1
movep x:(r0),x:M_TX2 ; write tx data to transmitter 2
movep x:(r0)+,x:M_TX3 ; write tx data to transmitter 3
move r0,x:TX_PTR ; update tx buffer pointer
move x:-(r6),m0 ; restore m0
move x:-(r6),r0 ; restore r0
rti
esai_txls_isr ; ESAI transmit last slot isr
move r0,x:(r6)+ ; save r0 to the stack
move #TX_BUFF_BASE,r0 ; reset tx pointer
move r0,x:TX_PTR ; reset tx buffer pointer
move x:-(r6),r0
; restore r0
rti
esai_rxe_isr ; ESAI receive exception isr
bclr
#7,x:M_S
AISR
; clear overrun error flag
esai_rx_isr ; ESAI receive isr
move r0,x:(r6)+ ; save r0 to the stack
move m0,x:(r6)+ ; save m0 to the stack
move #1,m0 ; modulus 2 buffer
move x:RX_PTR,r0
; load the pointer to the rx buffer
nop
jset #$6,x:M_SAISR,LeftSlot ; if left channel data don’t set flag
bset #RightReceive,x:flags
; if right channel data then set flag
LeftSlot
movep x:M_RX1,x:(r0)+ ; move rx data to buffer
move r0,x:RX_PTR ; update rx buffer pointer
move x:-(r6),m0 ; restore m0
move x:-(r6),r0 ; restore r0
rti
esai_rxls_isr ; ESAI receive last slot isr
move r0,x:(r6)+ ; save r0 to the stack
move #RX_BUFF_BASE,r0 ; reset rx buffer pointer
move r0,x:RX_PTR
; update rx buffer pointer
move x:-(r6),r0 ; restore r0
rti
dax_tx_isr ; DAX transmit isr
move r0,x:(r6)+ ; save r0 to the stack
move m0,x:(r6)+ ; save m0 to the stack
move x:TX_PTR,r0
; load the pointer to the TX buffer
movep x:(r0),x:M_XADR ; write TX data to the audio data register
move x:-(r6),m0 ; restore m0
move x:-(r6),r0 ; restore r0
rti
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...