AnsweredAssumed Answered

BF506F Data Memory and Lookup table assignment

Question asked by odemirci on Nov 11, 2011
Latest reply on Nov 15, 2011 by vinodbableshwar

Hello,

 

I am using VisualDSP++5.0 Update9.1 and BF506F EZ-KIT-LITE to develop code. I was used tobe ADSP-2181 user. I have 2 questions. Both are written for DASP-2181. I like to know the equivalent code for BF506F for both cases. Any suggestions please?

 

Osman Demirci

 

1- ADSP-2181 data memory selection, I used to do:

 

/*** PROGRAM MEMORY DATA VARIABLES ***/
/*** TYPE(PM RAM) START(0x03000) END(0x03fff) WIDTH(24) ***/
.SECTION/PM   pm_da;
.VAR  theta_hat=0;

 

/*** DATA#1 MEMORY VARIABLES ***/
/*** TYPE(DM RAM) START(0x00000) END(0x00fff) WIDTH(16bit) ***/
.SECTION/DM  data1;
.VAR/CIRC comm[32]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
.VAR countFLA0=0;

 

2- ADSP-2181 Lookup table or vector read that is externally created I used to write the following code

 

 

/*** PROGRAM MEMORY DATA VARIABLES ***/
/*** TYPE(PM RAM) START(0x03000) END(0x03fff) WIDTH(24) ***/
.SECTION/PM   pm_da;
.VAR/CIRC  sin[256]="sin16.dat";  /* 16-bit sin data : 15bit and sign bit */
.VAR/CIRC  cos[256]="cos16.dat";  /* 16-bit sin data : 15bit and sign bit */

Outcomes