DSPRelated.com
Forums

IO and BYTE memory access

Started by smi_ms2003 June 22, 2005
hi,
any of u know how to read and write to IO and BYTE memory of adsp
2181?
tell me the syntax also

smitha


hi,

plzz go through the topic "memory interface"
its very easy:

for IO:

u have to use
io(0x01)=ax0..//to write to the io memory address 0x01
ax0=io(0x01)..//to from the io memory address 0x01

Note there is limitation in IO memory For BDMA:

there is four register:
BIAD:
------
internal address..(onchip memory address)
BEAD:
----
external address..(off chip memory address)

BWCOUNT
-------
total no of datas should transfer
BDMA control:
-------------
u can set the data format,read/write and BDMA page

so once u write the BWCOUNT register then the BDMA
transfer will start and for each and every data
transfer the BWCOUNT get decremented by one.Once it
goes to zero that is transfer is over u will get an
intrupt.

PLZZ go through the 10th chapter of 21xx dsp user
manual for all the memory interface and access.

with good regards
ayyams --- smi_ms2003 <smi_ms2003@smi_...> wrote:

> hi,
> any of u know how to read and write to IO and BYTE
> memory of adsp
> 2181?
> tell me the syntax also
>
> smitha >
> adsp-unsubscribe@adsp...

__________________________________________________________
Free antispam, antivirus and 1GB to save all your messages
Only in Yahoo! Mail: http://in.mail.yahoo.com



I think u cant use a variable in IO(0x343)
instruction.

same time u can use a constant.

But for this u can first assign that variable to some
index register (I0 to I7), and now u can use this
instruction IO(I0,m0).Plz try it

Hope this will help u..!

with good regards
ayyams --- smi ms <smi_ms2003@smi_...> wrote:

> hi ,
> thanx for ur suggetion.
> i know this syntax.....
>
> io(0x01)=ax0..//to write to the io memory address
> 0x01
> ax0=io(0x01)..//to from the io memory address 0x01
>
> but in my application i want to write to different
> address .it should be user compatible.
>
> my code format is like this..
> in hyperteminal i will give perticular command with
> its address with some value.i will store address and
> value in different buffer.
> if i write like this...
>
> asm("ax0=dm(_u);");
> asm("io(_y)=ax0);
>
> its giving error
> here u is variable having value and y is variable
> which holds address.
> in this case how to overcome this problem?
> pls give me some idea
> bye
> smitha >
>
> ayyam perumal <ayyams76@ayya...> wrote:
> hi,
>
> plzz go through the topic "memory interface"
> its very easy:
>
> for IO:
>
> u have to use
> io(0x01)=ax0..//to write to the io memory address
> 0x01
> ax0=io(0x01)..//to from the io memory address 0x01
>
> Note there is limitation in IO memory > For BDMA:
>
> there is four register:
> BIAD:
> ------
> internal address..(onchip memory address)
> BEAD:
> ----
> external address..(off chip memory address)
>
> BWCOUNT
> -------
> total no of datas should transfer
> BDMA control:
> -------------
> u can set the data format,read/write and BDMA page
>
> so once u write the BWCOUNT register then the BDMA
> transfer will start and for each and every data
> transfer the BWCOUNT get decremented by one.Once it
> goes to zero that is transfer is over u will get an
> intrupt.
>
> PLZZ go through the 10th chapter of 21xx dsp user
> manual for all the memory interface and access.
>
> with good regards
> ayyams > --- smi_ms2003 wrote:
>
> > hi,
> > any of u know how to read and write to IO and BYTE
> > memory of adsp
> > 2181?
> > tell me the syntax also
> >
> > smitha
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > adsp-unsubscribe@adsp...
> >
> >
> >
> >
>
__________________________________________________________
> Free antispam, antivirus and 1GB to save all your
> messages
> Only in Yahoo! Mail: http://in.mail.yahoo.com > ---------------------------------
> How much free photo storage do you get? Store your
> friends n family photos for FREE with Yahoo! Photos.
>
> http://in.photos.yahoo.com

_______________________________________________________
Too much spam in your inbox?