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.

Friday, February 29, 2008

Re: [oopic] Re: SCP accessing variables in RAM getting garbage

I would break the 'H..J' and the 'M' commands up and explicitly address
them. There is a possibility that your first command isn't done before
the second one tries to execute. SCP commands are not necessarily done
serially. I like to keep commands "atomic" and no more than 8 bytes
long if possible. This means that I would do the Because you were
accessing RAM and not object memory you'll go over my 8 byte "comfort
zone", but it should still work - As long as the C firmware puts things
in the same place! I'll contact the developer to make sure this is so.

In short, set the memory in one SCP command, read or write it in another
one.

DLC

Doug Taylor wrote:
> Hi,
>
>
>
> OOPic III+ Ver C.1.1+ Compiler 6.1.1
>
>
>
> Ok, let me boil it down some more.
>
>
>
>
>
> The OOPic code:
>
>
>
>
>
> Dim firstByte As Byte
>
> Dim secondByte As Byte
>
> Dim thirdByte As Byte
>
> Dim firstWord As Word
>
> Dim secondWord As Word
>
>
>
> Sub Main()
>
> ..firstByte = 15 '0F hex
>
> ..secondByte = 171 'AB hex
>
> ..thirdByte = 205 'CD hex
>
> ..firstWord = 4660 '1234 hex
>
> ..secondWord = 43981 'ABCD hex
>
> End Sub
>
>
>
>
>
> The line from the OMP file for firstByte:
>
>
>
>
>
> ..V-105.....1..oVar8.........firstByte
>
>
>
>
>
> The conversation:
>
>
>
> Send: \0V
>
> Recv: v
>
> Send: U
>
> Send: 16H105J64LM
>
> Recv: 77m
>
> Expected: 0Fm
>
>
>
> Ok that is it in a nutshell. Any ideas?
>
>
>
> Thanks,
>
> Dogulas
>
>
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
>
> Yahoo! Groups Links
>
>
>
>

--
------------------------------------------------------
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: