Yahoo Groups archive

AVR-Chat

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

Thread

Extra Program Space

Extra Program Space

2005-12-21 by jme_cd

I am writing a program for my atmega8 but have gone over the limit,
that is my program is too big. Is there anyway that i can add an extra
eeprom chip or something that i can store all the code on and call it
from there?

thanks
jamie

Re: [AVR-Chat] Extra Program Space

2005-12-21 by Henry Carl Ott

At 09:13 PM 12/20/2005, you wrote:
>I am writing a program for my atmega8 but have gone over the limit,
>that is my program is too big. Is there anyway that i can add an extra
>eeprom chip or something that i can store all the code on and call it
>from there?
>
>thanks
>jamie

  Optimize optimize optimize.
  If all else fails go to a mega168. Doubles your codespace.
  You'll need some (hopefully) minor code changes.

Re: [AVR-Chat] Extra Program Space

2005-12-21 by Thomas Keller

jme_cd wrote:

> I am writing a program for my atmega8 but have gone over the limit,
> that is my program is too big. Is there anyway that i can add an extra
> eeprom chip or something that i can store all the code on and call it
> from there?


   I haven't looked at the Mega8 specifically, but most AVRs (with 
sufficient pin count) support external memory.  note that external 
memory accesses take twice as many cycles as internal memory cycles, so 
if any of your code is time critical at the operating speed of 
yourprocessor, you'll want to be sure that code is loaded and run in the 
internal FLASH.

   Check www.atmel.com, they offer a line of FLASH and RAM chips which 
can be used thusly.

tom

Re: [AVR-Chat] Extra Program Space

2005-12-21 by Jesper Hansen

Thread lightly here !

You can NOT run programs from external memory on the AVR's Harward 
architecture !

Unless, ofcourse, your "code" is in a format that the real program 
running on your CPU can parse/interpret.

/Jesper


Thomas Keller wrote:
Show quoted textHide quoted text
> jme_cd wrote:
> 
> 
>>I am writing a program for my atmega8 but have gone over the limit,
>>that is my program is too big. Is there anyway that i can add an extra
>>eeprom chip or something that i can store all the code on and call it
>>from there?
> 
> 
> 
>    I haven't looked at the Mega8 specifically, but most AVRs (with 
> sufficient pin count) support external memory.  note that external 
> memory accesses take twice as many cycles as internal memory cycles, so 
> if any of your code is time critical at the operating speed of 
> yourprocessor, you'll want to be sure that code is loaded and run in the 
> internal FLASH.
> 
>    Check www.atmel.com, they offer a line of FLASH and RAM chips which 
> can be used thusly.
> 
> tom
> 
> 
> 
> 
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
>

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.