Pleae look the code you will get ALL answer
#define BWCount 0x3FE4 // BDMA WORD COUNT REGISTER
#define BControl 0x3FE3 // BDMA CONTROL REGISTER
#define BExtAdd 0x3FE2 // EXTERNAL ADD REGISTER
#define BIntAdd 0x3FE1 // INTERNAL ADD REGISTER
#define PCS 0x3FE6
.SECTION/DM data1;
.VAR ARR[10]= "TEST.DAT";
.SECTION/PM program;
main: I1= ARR;
AX0 = 0X0007;
DM(BControl) = ax0 ; // CONFIGURE THE BMPAGE,BCR,BDIR,BTYPE
ax0 = 0X0000;
DM(BExtAdd) = ax0 ; // LOAD THE EXTERNAL ADD
DM(BIntAdd) = I1; // LOAD THE INTERNAL ADD
ax0 = 0x2000;
DM(PCS) = ax0 ; // wait cycles
ax0 = 0X10;
DM(BWCount)=AX0; // Transmit 10 NUMBER
nop;
nop;
nop;
IDLE;
If you want more explanation,let me know.
Regards
Chandrakant D.
Wavelet Group
Pune.
On Thu, 18 Aug 2005 10:56:40 +0530, <ahmad_s03@ahma...> wrote:
> Hello everyone, hope everyone is doing fine.
I'm a newbie in ADSP 218x
> (2181). I have strong micro-controller background .... I have some
> problems in BDMA, Please be patient to answer my simplest questions.
>
> question about BDMA are as follows:
>
> 1) Is BDMA used to download the program (that we burn in flash
> memory) from any flash into the DSP program memory and then exectute
> it ???
>
> 2) Is it enough to configure the control registers i.e. BIAD, BEAD,
> BTYPE, BDIR, BCR, BMPAGE etc.etc... Please give a small assembly code
> for configuring them in the required sequence.
>
> 3) abt BWCOUNT, how do we know how much data is required .....
>
> 4) what are the BMODE and MMAP ....
>
> 5) what is BMWAIT states .....
>
> your replies will be greatly appreciated ... thanking you in advance ...
> take care
> Regards
> Ahmad
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/