Forum Index
HomeZBasic Home   Forum RulesForum Rules   Forum FAQForum FAQ   MemberlistMemberlist   UsergroupsUsergroups   RSS FeedRSS Feed
Site SearchSite Search   LinksLinks   DownloadDownload   Digests and SubscriptionsDigests and Subscriptions
ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in   RegisterRegister
Utilizing External RAM

 
Post new topic   Reply to topic    Forum Index -> ZX-1281
Author Message
dkinzer
Site Admin


Joined: 03 Sep 2005
Posts: 2499
Location: Portland, OR

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

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:   
Post new topic   Reply to topic    Forum Index -> ZX-1281 Time synchro. with the server - Timezone/DST with your computer
Page 1 of 1

 


All content Copyright © 2005-2012 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