Analog Devices ADSP-21065L EZ-KIT Lite Manual page 30

Evaluation system
Table of Contents

Advertisement

3.3.3.3 RS-232 Monitor Codec Memory Map
To use the monitor's codec variables, examine the buffers.asm and .ldf files provided
with the demos. These two files provide access to the necessary variables by
overlapping the locations of the variables.
The RS-232 Monitor Program was complied and linked to place the following user
variables and buffers to communicated to the codec in the following memory
locations:
0x030FFF00 - 0x030FFF05
0x030FFF06
0x030FFF07 - 0x030FFF0C
0x030FFF0D
When writing code, the user needs to define variables so that they are linked in to
these exact locations as was defined by the monitor kernel so that your DSP code has
access to the kernel codec buffers. To use this scheme for passing audio data for
user DSP algorithm written in C, include the following file (found in buffers.asm) in
your code:
/* TITLE: BUFFERS.ASM
BUFFERS.ASM
Links variables into the same locations the kernel
uses so that the demo can talk to the kernel to use
its codec isr*/
.GLOBAL _user_tx_buf;
.GLOBAL _user_tx_ready;
.GLOBAL _user_rx_buf;
.GLOBAL _user_rx_ready;
.GLOBAL _user_data_out_ptr;
.GLOBAL _user_num_data;
.GLOBAL _user_data_type;
.SEGMENT/DM
// make the buffers line up the same as in the
kernel
www.BDTIC.com/ADI
User CODEC transmit buffer
DM(user_tx_buf)
User CODEC transmit ready flag
DM(user_tx_ready)
User CODEC receive buffer
DM(user_rx_buf)
User CODEC receive ready flag
DM(user_rx_ready)
seg_bnk3;
30

Advertisement

Table of Contents
loading

Table of Contents