Message from discussion
Question for an Atmel Guru
Received: by 10.66.86.98 with SMTP id o2mr5748885paz.29.1352583260651;
Sat, 10 Nov 2012 13:34:20 -0800 (PST)
X-BeenThere: txrxlabs@googlegroups.com
Received: by 10.68.234.37 with SMTP id ub5ls20444998pbc.6.gmail; Sat, 10 Nov
2012 13:34:20 -0800 (PST)
Received: by 10.66.90.37 with SMTP id bt5mr6561901pab.40.1352583260101;
Sat, 10 Nov 2012 13:34:20 -0800 (PST)
Received: by 10.66.90.37 with SMTP id bt5mr6561900pab.40.1352583260092;
Sat, 10 Nov 2012 13:34:20 -0800 (PST)
Return-Path: <m...@marksullivan.net>
Received: from smtp3.thorium.net (hostmail2.thorium.net. [67.192.58.32])
by gmr-mx.google.com with SMTP id h8si500973pav.0.2012.11.10.13.34.19;
Sat, 10 Nov 2012 13:34:19 -0800 (PST)
Received-SPF: neutral (google.com: 67.192.58.32 is neither permitted nor denied by best guess record for domain of m...@marksullivan.net) client-ip=67.192.58.32;
Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 67.192.58.32 is neither permitted nor denied by best guess record for domain of m...@marksullivan.net) smtp.mail...@marksullivan.net
Received: (from MARXHP at 50.15.14.120) by hostmail2.thorium.net (Mark's SMTP Revision 08Nov11) id 640545716 for <txrxlabs@googlegroups.com>; Sat, 10 Nov 2012 15:34:15 -0500
From: Mark Sullivan <m...@marksullivan.net>
To: "txrxlabs@googlegroups.com" <txrxlabs@googlegroups.com>
X-Mailer: Pocomail 4.8 (4400) - Licensed Version
Date: Sat, 10 Nov 2012 15:33:57 -0600
Message-ID: <20121110153357.373537@MARXHP>
Subject: Question for an Atmel Guru
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
As I understand it, the Atmel 8 bit ATMEGA microcontrollers have a dedicated=
I/O address space from 0x20 to 0x5F.
Some of these addresses are physically wired to peripherals like timer=
registers, I/O ports, etc.
My question is, if an I/O space address is not associated with a peripheral,=
then can I use it as RAM or is it completely unimplemented?
For example, the ATMega8A I/O addresses 0x19, 0x1A, and 0x1B (aka data=
addresses 0x39, 0x3A, and 0x3B) are marked "reserved" in the data sheet. =
Can I use these locations as RAM?
My reason for asking is that I want to use the SBI and CBI instructions on=
some working variables and these instructions can only address the first 32=
bytes of I/O space.
And, yes, I already know the data sheet says not to do this.
- Mark Sullivan -