User guide

50 DSPAUDIOEVM Evaluation Board Users Manual MOTOROLA
This document contains information on a new product. Specifications and information herein are subject to change without notice.
APPENDIX B
PASSTHRU CODE
B.1 56362 / 366 / 367 PASSTHRU CODE
;**************************************************************************
; passthru36x.asm v2.0
; meb 10/02/02
;
; Copyright (c) MOTOROLA 2002
;
; History:
; v2.0 meb Corrected DMA errata violation in DAX handling. DAX is
; now interrupt driven.
;
; Program Operation:
; This software is designed for use with the DSPAUDIOEVMMB1 equipped
; with a 56362/6/7 daughter card. This code is not for use with a
; 56364 daughter card. With the proper jumper settings this software
; will accept either analog or digital input and pass it straight
; through to the output. A custom processing routine could be added in
; the STEREO_PROCESS subroutine.
;**************************************************************************
page 132,60
include ‘ioequ.asm’
include ‘vectors.asm’
list
;**************************************************************************
; Init data storage
;**************************************************************************
org x:$00
RX_BUFF_BASE equ *
RX_data_1_2 ds 1 ; left input sample
RX_data_3_4 ds 1 ; right input sample
TX_BUFF_BASE equ *
TX_data_1_2 ds 1 ; left output sample
TX_data_3_4 ds 1 ; right output sample
RX_PTR ds 1 ; receive buffer pointer
TX_PTR ds 1 ; transmit buffer pointer
flags ds 1
RightReceive equ 0
;**************************************************************************
; Init interrupt vectors
;**************************************************************************
org p:$00
jmp START
org p:$2E
jsr dax_tx_isr
org p:$30
jsr esai_rx_isr
jmp *
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...