[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [avr-libc-dev] Question on stack size in ATmega128 and Errors iniom1
From: |
Philip Soeberg |
Subject: |
RE: [avr-libc-dev] Question on stack size in ATmega128 and Errors iniom128.h |
Date: |
Mon, 9 Dec 2002 21:05:14 +0100 |
In normal mode, the mega128 supports 4096bytes of internal sram, whereas in
mode-mega103 it only supports 4000bytes.
The memory maps for SRAM are listed in the datasheet at page 18.
Mode A is usually used, if not wanting backwards compatibility with mega103.
Don't know about the other question you had :)
regards.
-=[ Philip Soeberg ]=[ address@hidden ]=-
-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of
Curtis, Ron
Sent: 9. december 2002 19:01
To: 'address@hidden'
Subject: [avr-libc-dev] Question on stack size in ATmega128 and Errors
iniom128.h
Hi-
Question on ATmega128:
Why is the stack initialized to 0x10FF instead of 0x0FFF?
Also, I had to make the following corrections to iom128.h to be consistent
in my code.
/* USART Status Register A ERROR RDC
#define RXC 7
#define TXC 6
#define UDRE 5
#define FE 4
#define OVR 3 This definition differs from the databook */
/*definition to avoid problems with the OR instruction */
/* UCSR0A correction, RDC 12/2/02*/
#define RXC0 7
#define TXC0 6
#define UDRE0 5
#define FE0 4
#define OVR0 3
#define U2X0 1
#define MPCM0 0
Thanks,
Ron
--------------------------------------------------
Ron Curtis
Technical Fellow
The Boeing Co.
499 Boeing Blvd
MS JN-72, Bld 48-20, Rm 23D.812
Huntsville, AL 35824
256-461-3043 voice
256-461-5815 fax
_______________________________________________
AVR-libc-dev mailing list
address@hidden
http://mail.nongnu.org/mailman/listinfo/avr-libc-dev