Re: [AVR-Chat] basic question (ATmega32)
2005-02-11 by Jim Wagner
There are two address spaces. One is for IO and certain IO
instructions (such as "IN" and "OUT") work in that space.
The other is the general address space in which all
instructions work.
They give you both because every once in a while, there is
something you just can't do with an IO instruction and need
to access using a regular instruction; in that case you
need the global address of the register.
As to why this scheme was picked, I don't know.
Hope this helps
Jim
On Sat, 12 Feb 2005 13:08:35 +1300
Eric <erichards@clear.net.nz> wrote:
>
>
>
>
>
>
> Here is one thing that upsets me
>
> The data direction register for port D is 0x11 (port
> address) but then they give 0x31 (RAM address)
> why is there a port address and ram address?
>
>
>
> in the mean time I try and find out by RTFM.
>
>
> From Eric
>
>
>
>
>
>
>
>
>
>
>
> Yahoo! Groups Sponsor
>
>
> ADVERTISEMENT
>
> document.write('');
>
>
>
>
>
>
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
> To visit your group on the web, go
> to:http://groups.yahoo.com/group/AVR-Chat/
> To unsubscribe from this group, send an email
> to:AVR-Chat-unsubscribe@yahoogroups.com
> Your use of Yahoo! Groups is subject to the Yahoo! Terms
> of Service.
>
>
>
>
>
>
>
>
>
>
>
---------------------------------------------------------------
The Think Different Store
http://www.thinkdifferentstore.com/
For All Your Mac Gear
---------------------------------------------------------------