Forum Index
Utilizing External RAM

 
Author Message
dkinzer
Site Admin


Joined: 03 Sep 2005
Location: Portland, OR

Posted: 23 February 2007, 2:00 AM    Post subject: Utilizing External RAM

In order to enable the external RAM interface on the ZX-1281 you need to set a configuration word. The simplest way to do this is to add the compiler directive shown below near the top of your main module.
Code:
Option ExtRamConfig On

This enables the external RAM interface using the default configuration - zero wait states, etc. If you need to specify a number of wait states or other configuration, you can specify a decimal or hexadecimal value in place of the On keyword. See the description of the XMCRA and XMCRB registers in the ATmega1281 datasheet and the discussion of Option ExtRamConfig.

When the external RAM interface is enabled, the VM scans external RAM during startup initialization to determine its extent. All of the external RAM is added to the User RAM space at the high end. The VM heap is then initialized at the high end of RAM while the task stacks, etc. are allocated from the low end of RAM.

If external RAM is not enabled, Ports A, C and G can be used for normal I/O.
Back to top
Display posts from previous:   
Page 1 of 1

 



ZBasic Microcontrollers Home
All content Copyright © 2005, 2006, 2007, 2008 Elba Corp. All Rights Reserved.
Opinions expressed in posts are those of the author and not necessarily those of Elba Corp.
Powered by phpBB © 2001, 2005 phpBB Group