This Forum is Dedicated For all The Object Oriented PIC Lovers .......... The concept behind OOPic is straight forward. Use preprogrammed multitasking Objects from a library of highly optimized Objects to do all the work of interacting with the hardware. Then write small scripts in Basic, C, or Java syntax styles to control the Objects. During operation, the Objects run continuously and simultaneously in the background while the scripts run in the foreground telling the objects what to do.

Wednesday, August 22, 2007

Re: [oopic] Conserving bytes

red71956 wrote:
> Hi gang
> I'm having trouble figuring out how to maximize the use of the limited
> RAM on an OoPic R.
> For instance, 2 DC motors and 2 servos (pan and tilt) and one LCD takes
> 47 bytes (L + R oDCMotor 5 bytes each, 2 oA2DX for turn and speed 5
> bytes each, 2 oRamp at 7 bytes each, 2 servos at 4 bytes each, 1 LCDSE
> at 5 bytes)
> Is there a more efficient way to do this?
> Adding in 1 or more oIRRange objects, a oSerialX, a oWire or two, and a
> few misc. oBytes brings the total perilously close to the 'magic 86'.
> Is using the EEPROM a potential solution? And what is the best use for
> the EEPROM? I picked up a 256K EEPROM and want to use it for maximum
> effect, but what exactly is THAT?

In general you will run out of object RAM long before you run out of
code space, even on a 32K EEPROM. If using the V.6 compiler you may
find an efficient place to keep rarely changing variables is the EEPROM
variable space (internal to the chip EEPROM). Other than that, beyond
the code, the only real use for the external EEPROM is storage of data
and setup information.

> Also, what is the best use of Virtual Circuits? I think I get the
> concept, but using it efficiently eludes me.

To link objects together _is_ the most efficient use of objects, and
the way to get them to run the fastest. Simply defining objects and
using script code is not using the ooPIC to its best abilities. You've
found that oNavcon and oRamp can use the motors to great effect already.

DLC

> Thanx in advance,
> Red

--
------------------------------------------------------
Dennis Clark ooPIC Tech Support
www.oopic.com
------------------------------------------------------



Yahoo! Groups Links

<*> To visit your group on the web, go to:

http://groups.yahoo.com/group/oopic/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:

http://groups.yahoo.com/group/oopic/join

(Yahoo! ID required)

<*> To change settings via email:
mailto:oopic-digest@yahoogroups.com
mailto:oopic-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
oopic-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:

http://docs.yahoo.com/info/terms/

No comments: