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.

Sunday, March 23, 2008

[oopic] Re: URGENT - OOPic Events not functioning

The oEvent object memory address is 41 (I think you can get this
using oEvent_Obj.Address, instead of looking it up). The event code
[oEvent_Code()] subroutine has an address on the EEPROM where it is
stored and in my example, that address was 67. You have to look
through the compiled code, either in file.ops or by clicking the 'C'
in the upper right hand corner of the object pane (right pane) in the
version 6 compiler.

--- In oopic@yahoogroups.com, "wisequack42" <wisequack42@...> wrote:
>
> I think I vaguely understand what you're saying now, but I don't see
> how 67=41%256 in your example. Wouldn't the result (and thus the low
> byte) be 41? Or did I misunderstand the process?
>
> --- In oopic@yahoogroups.com, "tinslwc" <tinslwc@> wrote:
> >
> > That is exactly what I was addressing in that post. It is
actually
> > relatively simple. The compiler is not filling in the address
for the
> > subroutine that should run when the event is triggered. This
means
> > that when your oWire object copies the event value to the oEvent
object
> > operate property, it has no idea what to do. The objective of
the oRAM
> > object is to inject the correct address into the ram space
occupied by
> > the oEvent object. This means that you have to look through the
> > compiled code to get this location and if you add or change any
part of
> > your program that comes before the event code, the address may
change
> > (even adding the oRAM object/write commands). If you have any
specific
> > questions about the workaround, I would be glad to assist you.
> >
> > --- In oopic@yahoogroups.com, "wisequack42" <wisequack42@> wrote:
> > >
> > > Hmm, I guess I should actually read something before jumping
in, eh?
> > >
> > > Does this:

http://tech.groups.yahoo.com/group/oopic/message/37874
> > > address this problem? I'm not entirely sure I follow what's
going on,
> > > but I can take another crack at deciphering it after finishing
the
> > > program, I guess.
> > >
> >
>

------------------------------------

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: