Go to Post When is comes down to it, remember what FIRST is really about, it is about those students and helping to inspire them - E3 Robotics Ctr [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Spotlight this post!  
Unread 03-12-2004, 23:03
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,880
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Arrays on the PIC?

Quote:
Originally Posted by scitobor 617
Has anyone used arrays on the new controller? What are the limits on the number of values stored in an array? Anyway around using arrays if they are not allowed or are too limited because of ram size (such as EEPROM)?
As mentioned above arrays are supported.
If you use ram data space you are limited to 256 bytes of global variables (or static) declared within any one MPLAB file, e.g., "char a[256];". 120 bytes of variables within a single routine. This doesn't mean you can't break the array up into several smaller arrays. A total of 1,343 bytes of ram are available to the user after the IFI overhead.

An array of rom constants (those that use program space) can be larger, but can't be modified at run time.

EEPROM requires a read/write operation for each value you put in or take out.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 03-12-2004 at 23:14.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pic: 294's First Inventor Robot (pic 1)... CD47-Bot Robot Showcase 4 10-03-2004 19:34
pic: pic 1 CD47-Bot Robot Showcase 6 22-02-2004 00:29
TCP/IP on a PIC Venkatesh Electrical 1 18-11-2003 21:00
pic: Another pic of Team 930 CD47-Bot Robot Showcase 7 25-02-2003 21:07


All times are GMT -5. The time now is 21:59.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi