Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

EP_RAMsize and Words and bytes

EP_RAMsize and Words and bytes

2006-03-07 by Manisha

Hi all,

i am confused with the words and byte relation in EP_RAM size. they are
saying EP_RAM is word aligned. and FIFO maximum size is in bytes, so, we
will have to align the allocation.

however, they ary making it as EP_RAMsize=(Maxpacketsize + 3) / 4 + 1, in
this are they taking 1 word=4 bytes? but as i know 1 word, in most cases we
define as 2 bytes and DWORD 4 bytes.

Thanks for going through the problem.

if anyone has any idea please help me.

Regards
Manisha.


The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s)and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender or administrator@...

Re: EP_RAMsize and Words and bytes

2006-03-07 by rtstofer

--- In lpc2000@yahoogroups.com, "Manisha" <manisha@...> wrote:
>
> Hi all,
> 
> i am confused with the words and byte relation in EP_RAM size. they are
> saying EP_RAM is word aligned. and FIFO maximum size is in bytes, so, we
> will have to align the allocation.
> 
> however, they ary making it as EP_RAMsize=(Maxpacketsize + 3) / 4 +
1, in
> this are they taking 1 word=4 bytes? but as i know 1 word, in most
cases we
> define as 2 bytes and DWORD 4 bytes.
> 
> Thanks for going through the problem.
> 
> if anyone has any idea please help me.
> 
> Regards
> Manisha.
> 
> 

DWORD is kind of an Intel thing.  I don't see it described in the GNU
manuals (other than under FRV) so if it applies to ARM at all, it is
compiler vendor specific.

The ARM word is 32 bits - it is not 2-16 bit entities treated as a 32
bit entity as it was in the early Intel chips.  Two signed or unsigned
16 bit integers can be packed in a 32 bit word as can four signed or
unsigned bytes.

Richard

RE: [lpc2000] Re: EP_RAMsize and Words and bytes

2006-03-07 by Manisha

Thanks a ton Richards.

actually the Atmel board with ARM processor supports the transaction in
bytes format. as i suppose no word stuff is involved there. No alignment
needed. so, got confused with philips spec.

regards
Manisha
Show quoted textHide quoted text
-----Original Message-----
From: lpc2000@yahoogroups.com [mailto:lpc2000@yahoogroups.com]On Behalf
Of rtstofer
Sent: Tuesday, March 07, 2006 12:51 PM
To: lpc2000@yahoogroups.com
Subject: [lpc2000] Re: EP_RAMsize and Words and bytes


--- In lpc2000@yahoogroups.com, "Manisha" <manisha@...> wrote:
>
> Hi all,
>
> i am confused with the words and byte relation in EP_RAM size. they are
> saying EP_RAM is word aligned. and FIFO maximum size is in bytes, so, we
> will have to align the allocation.
>
> however, they ary making it as EP_RAMsize=(Maxpacketsize + 3) / 4 +
1, in
> this are they taking 1 word=4 bytes? but as i know 1 word, in most
cases we
> define as 2 bytes and DWORD 4 bytes.
>
> Thanks for going through the problem.
>
> if anyone has any idea please help me.
>
> Regards
> Manisha.
>
>

DWORD is kind of an Intel thing.  I don't see it described in the GNU
manuals (other than under FRV) so if it applies to ARM at all, it is
compiler vendor specific.

The ARM word is 32 bits - it is not 2-16 bit entities treated as a 32
bit entity as it was in the early Intel chips.  Two signed or unsigned
16 bit integers can be packed in a 32 bit word as can four signed or
unsigned bytes.

Richard








Yahoo! Groups Links






The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s)and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender or administrator@...

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.