Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] basic question (ATmega32)

2005-02-12 by Dave VanHorn

At 07:08 PM 2/11/2005, Eric 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?
>

Because the I/O addresses also are present in ram space.
This allows you to address I/O as ram, and allows you to make some pretty 
ugly mistakes. :)
IMHO, I would prefer that this be a fuse bit setting, to turn this on or off.

On the larger devices, some of the I/O is only addressable through ram 
space, further complicating the picture.

Attachments

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.