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] SCP accessing variables in RAM getting garbage

Oops...correction. This should have read:

Bank 0 Area A = Bank 0 in the documentation
Bank 0 Area I = Bank 1 in the documentation
Bank 1 Area V = Bank 2 in the documentation
Bank 1 Area F = Bank 3 in the documentation


Ian

Ian Drennan wrote:
> Doug
>
> It would seem that the banks as described in the manual are differently
> denoted to that as shown in the information window.
>
> i.e. in the info window...Bank 0 = Bank 0 & 1 in the documentation
> in the info window...Bank 1 = Bank 2 & 3 in the documentation
>
> Confusing to say the least.
>
> Think of it this way:
>
> Bank 0 Area A = Bank 0 in the documentation
> Bank 0 Area I = Bank 1 in the documentation
> Bank 1 Area V = Bank 3 in the documentation
> Bank 1 Area F = Bank 4 in the documentation
>
>
>
>


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/

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/

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

Doug

It would seem that the banks as described in the manual are differently
denoted to that as shown in the information window.

i.e. in the info window...Bank 0 = Bank 0 & 1 in the documentation
in the info window...Bank 1 = Bank 2 & 3 in the documentation

Confusing to say the least.

Think of it this way:

Bank 0 Area A = Bank 0 in the documentation
Bank 0 Area I = Bank 1 in the documentation
Bank 1 Area V = Bank 3 in the documentation
Bank 1 Area F = Bank 4 in the documentation

With that in mind try the following:

firstbyte - send: \0105J144H128LM

secondbyte - send: \0106J144H128LM

thirdByte - send: \0107J144H128LM

firstWord - send: \0108J145H128LM ....you will get a return of
3412m Note the order in which the bytes are returned.

secondWord - send: \0110J145H128LM ....you will get a return of
CDABm Note the order in which the bytes are returned.

Regards

Ian



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/

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

--- In oopic@yahoogroups.com, "Doug Taylor" <dogulas@...> 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
>

I started to look at the SCP stuff this morning and it occurred to me
that you should, of course, try the command strings from a terminal.

As I wandered through the documentation, I couldn't help but notice
that your long command was broken up into individual, smaller,
commands with expected replies in the documentation.

So, I wonder what will happen if you break it up the way the
documentation shows...

Richard



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/

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

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

<*> 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/

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

--- In oopic@yahoogroups.com, "rtstofer" <rstofer@...> wrote:
>
>
> If the subject line doesn't have Re:, I believe email will start a
new
> thread. If it does have the Re:, I believe Yahoo will link the
thread.
>
> You send the email to oopic@yahoogroups.com
>
> HOWEVER, doing anything fancy with email doesn't change the way
Yahoo
> presents the message on the web interface and there are those of us
who
> don't WANT email and only use the web interface.
>
> Still, your choice...
>
> Richard
>

Oh, I see. So if the reader is viewing by the Yahoo interface, the
problem still exists. Well that's a bummer.

Thanks for clearing that up.

Dogulas



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/

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

--- In oopic@yahoogroups.com, "Doug Taylor" <dogulas@...> wrote:
>
> --- In oopic@yahoogroups.com, Andrew Porrett <slicerwizard@> wrote:
> >
> > You'd be much better off using a regular email client (Outhouse
> > Express, Eudora, etc.)
> >
>
> Andrew,
>
> I'm new to Yahoo groups (obviously). Do you mean I can just email to
> oopic@yahoogroups.com? If so, how do I indicate which posting I want
> to respond to so that it is linked properly?
>
> Thanks,
> Dogulas
>

If the subject line doesn't have Re:, I believe email will start a new
thread. If it does have the Re:, I believe Yahoo will link the thread.

You send the email to oopic@yahoogroups.com

HOWEVER, doing anything fancy with email doesn't change the way Yahoo
presents the message on the web interface and there are those of us who
don't WANT email and only use the web interface.

Still, your choice...

Richard



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/

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

--- In oopic@yahoogroups.com, Andrew Porrett <slicerwizard@...> wrote:
>
> You'd be much better off using a regular email client (Outhouse
> Express, Eudora, etc.)
>

Andrew,

I'm new to Yahoo groups (obviously). Do you mean I can just email to
oopic@yahoogroups.com? If so, how do I indicate which posting I want
to respond to so that it is linked properly?

Thanks,
Dogulas


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/

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

--- In oopic@yahoogroups.com, Andrew Porrett <slicerwizard@...> wrote:
>
> You'd be much better off using a regular email client (Outhouse
> Express, Eudora, etc.)
>

Andrew,

I'm new to Yahoo groups (obviously). Do you mean I can just email to
oopic@yahoogroups.com? If so, how do I indicate which posting I want
to respond to so that it is linked properly?

Thanks,
Dogulas


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/

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

Hi,

OOPic III+ Ver C.1.1+ Compiler 6.1.1

I thought I'd try this again with the dot format that Richard
suggested. I'm supplying a simplified C# code. (Fingers crossed
here)

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

firstByte - sent: 16H105J64LM received: 77m

secondByte - sent: 16H106J64LM received: 33m

thirdByte - sent: 16H107J64LM received: 40m

firstWord - sent: 17H108J64LM received: 116Cm

secondWord - sent: 17H108J64LM received: 116Cm

The C# code:

public partial class Form1 : Form

{

..delegate void SetTextCallback(string text);

..private string currentObjName = null; // prevent race

..private string response = null;

..private string errorRet = null;

..private void Form1_Load(object sender, EventArgs e)

..{

....string content;

....DateTime startTime;

....try

....{

......serialPort1.Open();

......currentObjName = "setup"; // race lock on

......response = null;

......serialPort1.Write(@"\0"); // connect node 0

......serialPort1.Write(@"v"); // verify connection

......// wait for a response

......while (response == null || response.Length == 0) { }

......Console.WriteLine(response);

......serialPort1.Write(@"U"); // acknowlege off

......currentObjName = null; // race lock off

......// Read firstByte

......response = null; // re-init

......content = @"16H"; // memory type read/write RAM

......content += @"105J"; // memory address of firstByte

......content += @"64L"; // sub memory bank 1

......content += @"M"; // read memory

......currentObjName = "firstByte"; // race lock on

......serialPort1.Write(content); // send instructions

......// wait for a response

......startTime = DateTime.Now;

......while ((response == null && errorRet == null)

........|| (response != null

..........&& !response.EndsWith("m")

..........&& !response.Contains("*")))

......{

........if (startTime.AddMilliseconds(1000) < DateTime.Now)

........{

..........throw new Exception("timed out");

........}

......}

......currentObjName = null; // race lock off

......// print response

......if (response != null)

......{

........Console.WriteLine("firstByte - sent: "

..........+ content + " received: " + response);

......}

......// Read secondByte

......response = null; // re-init

......content = @"16H"; // memory type read/write RAM

......content += @"106J"; // memory address of secondByte

......content += @"64L"; // sub memory bank 1

......content += @"M"; // read memory

......currentObjName = "secondByte"; // race lock on

......serialPort1.Write(content); // send instructions

......// wait for a response

......startTime = DateTime.Now;

......while ((response == null && errorRet == null)

........|| (response != null

..........&& !response.EndsWith("m")

..........&& !response.Contains("*")))

......{

........if (startTime.AddMilliseconds(1000) < DateTime.Now)

........{

..........throw new Exception("timed out");

........}

......}

......currentObjName = null; // race lock off

......// print response

......if (response != null)

......{

........Console.WriteLine("secondByte - sent: "

..........+ content + " received: " + response);

......}

......// Read thirdByte

......response = null; // re-init

......content = @"16H"; // memory type read/write RAM

......content += @"107J"; // memory address of thirdByte

......content += @"64L"; // sub memory bank 1

......content += @"M"; // read memory

......currentObjName = "thirdByte"; // race lock on

......serialPort1.Write(content); // send instructions

......// wait for a response

......startTime = DateTime.Now;

......while ((response == null && errorRet == null)

........|| (response != null

..........&& !response.EndsWith("m")

..........&& !response.Contains("*")))

......{

........if (startTime.AddMilliseconds(1000) < DateTime.Now)

........{

..........throw new Exception("timed out");

........}

......}

......currentObjName = null; // race lock off

......// print response

......if (response != null)

......{

........Console.WriteLine("thirdByte - sent: "

..........+ content + " received: " + response);

......}

......// Read firstWord

......response = null; // re-init

......content = @"17H"; // memory type read/write RAM two bytes

......content += @"108J"; // memory address of firstWord

......content += @"64L"; // sub memory bank 1

......content += @"M"; // read memory

......currentObjName = "firstWord"; // race lock on

......serialPort1.Write(content); // send instructions

......// wait for a response

......startTime = DateTime.Now;

......while ((response == null && errorRet == null)

........|| (response != null

..........&& !response.EndsWith("m")

..........&& !response.Contains("*")))

......{

........if (startTime.AddMilliseconds(1000) < DateTime.Now)

........{

..........throw new Exception("timed out");

........}

......}

......currentObjName = null; // race lock off

......// print response

......if (response != null)

......{

........Console.WriteLine("firstWord - sent: "

..........+ content + " received: " + response);

......}

......// Read secondWord

......response = null; // re-init

......content = @"17H"; // memory type read/write RAM two bytes

......content += @"108J"; // memory address of secondWord

......content += @"64L"; // sub memory bank 1

......content += @"M"; // read memory

......currentObjName = "secondWord"; // race lock on

......serialPort1.Write(content); // send instructions

......// wait for a response

......startTime = DateTime.Now;

......while ((response == null && errorRet == null)

........|| (response != null

..........&& !response.EndsWith("m")

..........&& !response.Contains("*")))

......{

........if (startTime.AddMilliseconds(1000) < DateTime.Now)

........{

..........throw new Exception("timed out");

........}

......}

......currentObjName = null; // race lock off

......// print response

......if (response != null)

......{

........Console.WriteLine("secondWord - sent: "

..........+ content + " received: " + response);

......}

......serialPort1.Close();

....}

....catch (Exception ex)

....{

......if (serialPort1.IsOpen)

......{

........serialPort1.Close();

......}

......Debug.WriteLine(ex.ToString());

....}

..}

..private void serialPort1_DataReceived(

....object sender,

....System.IO.Ports.SerialDataReceivedEventArgs e)

..{

....// called on different thread

....if (currentObjName == null)

....{

......throw new Exception("unexpected data");

....}

....response += serialPort1.ReadExisting();

..}

..private void serialPort1_ErrorReceived(

....object sender,

....System.IO.Ports.SerialErrorReceivedEventArgs e)

..{

....// called on different thread

....if (currentObjName == null)

....{

......throw new Exception("unexpected data");

....}

....errorRet += e.ToString();

..}

}

[Non-text portions of this message have been removed]


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/

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

You'd be much better off using a regular email client (Outhouse
Express, Eudora, etc.)

At 11:50 AM 2/29/2008, Doug Taylor wrote:

>This rich text editor leaves me cold. Not only did it take out all my
>bolding, it even removed my indentation and that was done with spaces
>instead of tabs. Sorry it reads so poorly.
>
>Dogulas



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/

[oopic] Data storage on EEPROM

I'm trying to keep track of and store wheel rotation data somewhere on
my OOPIC-II+ board in order to see where my robot has been. I
understand I can't use the data method with oEEPROM to send values to
the EEPROM on the fly. Is there another why to write to the EEPROM
while the program/robot is running? Thanks.


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/

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

--- In oopic@yahoogroups.com, "Doug Taylor" <dogulas@...> wrote:
>
>
> This rich text editor leaves me cold. Not only did it take out all my
> bolding, it even removed my indentation and that was done with spaces
> instead of tabs. Sorry it reads so poorly.
>
> Dogulas
>

About the only way you can format anything on Yahoo is to use something
like periods instead of spaces. It still reads strange but at least
the indent level shows up.

int f(int i)
{
..if (i == 0)
....return 32000;
..return -31;
}

Or, post the stuff as a file in the Files section.

Richard


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/

Re: [oopic] serial port baud rate

On Feb 28, 2008, at 10:45 PM, Ian Drennan wrote:

> Brian Lloyd wrote:
>> How fast does the SCP port run when connected to the PC for
>> programming? I need to try using a bluetooth serial adaptor and it
>> appears that it is not accepting the commands to change the baud rate
>> so I plan to just manually program the baud rate into the bluetooth
>> adapter.
>>
>>
>>
> Default for programming is 9600 Baud

Ah, good. Thank you! That is one of the switch-selectable baud rates
on the bluetooth RS-232 dongle.

Brian Lloyd
Granite Bay Montessori School 9330 Sierra College Bl
brian AT gbmontessori DOT com Roseville, CA 95661
+1.916.367.2131 (voice) +1.791.912.8170 (fax)

PGP key ID: 12095C52A32A1B6C
PGP key fingerprint: 3B1D BA11 4913 3254 B6E0 CC09 1209 5C52 A32A 1B6C



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/

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

This rich text editor leaves me cold. Not only did it take out all my
bolding, it even removed my indentation and that was done with spaces
instead of tabs. Sorry it reads so poorly.

Dogulas



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/

[oopic] SCP accessing variables in RAM getting garbage

Hi,

OOPic III+ Ver C.1.1+ Compiler 6.1.1

I am trying to access RAM memory in SCP and I must be doing something
stupid. If anyone can look over my shoulder and point it out, I would
be very grateful.

The following is the code in my OOPic:

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 following is an excerpt from my C# code:

private void button2_Click(object sender, EventArgs e)

{

serialPort1.Open();

textBox1.Text = "";

response = null;

serialPort1.Write(Cons.node0);

serialPort1.Write(Cons.verifyConnection);

while (response == null || response.Length == 0) { }

SetText(response);

serialPort1.Write(Cons.ackOff);

currentObjName = null;

getMemoryValue("firstByte", 1);

getMemoryValue("secondByte", 1);

getMemoryValue("thirdByte", 1);

getMemoryValue("firstWord", 2);

getMemoryValue("secondWord", 2);

response = null;

serialPort1.Write(Cons.disconnect);

serialPort1.Close();

}

...

private string getMemoryValue(string name, int numBytes)

{

string content;

string retVal = "";

DateTime startTime = DateTime.Now;

int memType = 16; //read/write object's default property

response = null;

errorRet = null;

currentObjName = name;

if (numBytes < 1 || numBytes > 8)

{

throw new Exception("numBytes must be 0<X<9, found: " +
numBytes.ToString());

}

memType += numBytes - 1; // add the number of bytes to read

content = memType.ToString() + Cons.setMemType;

content += getAddr(name) + Cons.setMemAddr;

content += "64" + Cons.setMemSubAddr;

content += Cons.readMemory;

serialPort1.Write(content);

while ((response == null && errorRet == null) || (response != null
&& !response.EndsWith("m") && !response.Contains("*")))

{

if (startTime.AddMilliseconds(1000) < DateTime.Now)

{

throw new Exception("timed out waiting for a response");

}

}

if (response != null)

{

SetText(name + " - sent: " + content + " received: " +
response);

retVal = response;

}

if (errorRet != null)

{

SetText("Error: " + errorRet);

retVal = errorRet;

}

currentObjName = null;

response = null;

errorRet = null;

return retVal;

}

...

private void SetText(string text)

{

// InvokeRequired required compares the thread ID of the

// calling thread to the thread ID of the creating thread.

// If these threads are different, it returns true.

if (this.textBox1.InvokeRequired)

{

SetTextCallback d = new SetTextCallback(SetText);

this.textBox1.Invoke(d, new object[] { text });

}

else

{

if (textBox1.Text.Length > 0)

{

textBox1.Text += Environment.NewLine;

}

if (text.EndsWith("m"))

{

text = text.Remove(text.Length - 1);

}

textBox1.Text += text;

}

}

Don't be overly concerned with the infrastructure; it works fine
with a similar algorithm for reading default properties of objects. Pay
more attention to the bolded code.

I would expect the output to be the hex values of the initialized values
in the OOPic code. Instead I get garbage. This is the output:

firstByte - sent: 16H105J64LM received: 77

secondByte - sent: 16H106J64LM received: BB

thirdByte - sent: 16H107J64LM received: 40

firstWord - sent: 17H108J64LM received: 116C

secondWord - sent: 17H110J64LM received: 0000

Any help will be appreciated.

Thanks,

Dogulas

[Non-text portions of this message have been removed]


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/

[oopic] Re: Sharp Sensor Code

--- In oopic@yahoogroups.com, "jeremy_raj" <jeremy_raj@...> wrote:
>
> Hie group,
> Does anynoe have example of coding don eto detect objects from a
> certain range using the sharp ir range sensor..Hope can get some
> examples and guidance really new to OOPIC controller,
> Thanks
>

How about this: http://www.acroname.com/examples/10012/10012.html

Or read the Manual about the oIRRange object

Later you can look at other objects that will allow you to have an
event occur when an object gets within a certain range: oEvent, oCompare.

Richrd



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/

Thursday, February 28, 2008

Re: [oopic] serial port baud rate

Brian Lloyd wrote:
> How fast does the SCP port run when connected to the PC for
> programming? I need to try using a bluetooth serial adaptor and it
> appears that it is not accepting the commands to change the baud rate
> so I plan to just manually program the baud rate into the bluetooth
> adapter.
>
>
>
Default for programming is 9600 Baud

Ian



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/

[oopic] Sharp Sensor Code

Hie group,
Does anynoe have example of coding don eto detect objects from a
certain range using the sharp ir range sensor..Hope can get some
examples and guidance really new to OOPIC controller,
Thanks


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/

Re: [oopic] ooPIC-R More than 4 Analog In Lines

Yes, actually the first 7 IO lines can be A2D lines. However, you'll
have to remove all of the button and LED support from the ooPIC R
hardware to get access to those last 3 A2D IO lines.

DLC

design.wonk wrote:
> The first 4 lines can be used as analog in on the ooPIC-R. I am
> planning a project with 6 Sharp analog IR sensors. Is it possible to
> read 6 Analog sensors with a single ooPIC-R?
>
> thanks
>
>
>
>
>
>
> 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/

[oopic] serial port baud rate

How fast does the SCP port run when connected to the PC for
programming? I need to try using a bluetooth serial adaptor and it
appears that it is not accepting the commands to change the baud rate
so I plan to just manually program the baud rate into the bluetooth
adapter.

--

Brian Lloyd Granite Bay Montessori
brian AT gbmontessori DOT com 9330 Sierra College Blvd.
+1.916.367.2131 (voice) Roseville, CA 95661, USA

http://www.gbmontessori.com

I fly because it releases my mind from the tyranny of petty things . . .
— Antoine de Saint-Exupéry

PGP key ID: 12095C52A32A1B6C
PGP key fingerprint: 3B1D BA11 4913 3254 B6E0 CC09 1209 5C52 A32A 1B6C


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/

[oopic] ooPIC-R More than 4 Analog In Lines

The first 4 lines can be used as analog in on the ooPIC-R. I am
planning a project with 6 Sharp analog IR sensors. Is it possible to
read 6 Analog sensors with a single ooPIC-R?

thanks


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/

[oopic] i need

Hi.
i need biomedical research project microprocess based.

are there anybody know anything about this issue.
Türker TÜRKER GENEL MÜDÜR MERT TEKNOLOJI EGITIM YAYINCILIK PAZ. TIC. LTD.STI. ADRES1:Necatibey C. No:120 Tophane-BEYOGLU/IST
2: RIHTIM C. No:159 (Karakol Yaný)Fransýz Gecidi B Blok No:4 Karakoy-IST TEL:0212 244 89 40 GSM:0542 585 68 92 e-posta:mertstore@hotmail.com www.mertstore.com

www.ceptelefonutamirkursu.com
_________________________________________________________________
Shed those extra pounds with MSN and The Biggest Loser!
http://biggestloser.msn.com/

[Non-text portions of this message have been removed]


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/

[oopic] Re: Serial IO with ooPIC-R

> Richard,
>
> Thanks for the information. The ooPIC does not need to receive
> any information from the mp3 device and will be sending 2 char
> commands, so it looks like I am OK with the oSerialL. Regarding
> linking the grounds - if I am providing power to the mp3 device from
> the ooPIC-R do I need to do anything else to have a common ground?
>
> thanks
>
> -Ray
>

No, the common power supply will provide common ground.

Richard



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/

[oopic] Re: Serial IO with ooPIC-R

--- In oopic@yahoogroups.com, "rtstofer" <rstofer@...> wrote:
>
> --- In oopic@yahoogroups.com, "design.wonk" <design.wonk@> wrote:
> >
> > Greetings,
> >
> > I have an ooPIC-R that I am planning to use to control an audio
> > installation. The ooPIC will be used to drive a Daisy MP3 player
> (kit
> > from Make magazine). I am familiar with RS232C types of serial
> > connections, but this type of serial IO is new to me. The Daisy
> has a
> > serial control interface with TX and RX pins. I will be providing
> > power to the Daisy using one of the regulated connections on the
> ooPIC.
> >
> > This is the diagram of the serial pins on the target device.
> > <http://tangentview.com/images/schem.png>
> >
> > My question is how do I wire these two boards together. The
> grounds
> > should be linked by the power configuration, but how many other
> wires
> > are needed? Which ooPIC objects should I be using? I am just not
> sure
> > about timing and flow control.
> >
> > thanks
> >
> > -Ray
>
> From the schematic, the device doesn't offer flow control. If the
> OOPic has to RECEIVE information from the device and the messages are
> more than about 4 chars at almost any slow baud rate, this project
> ain't happening. We've been talking about this almost continuously
> for the last two weeks.
>
> Unfortunately, the OOPic R has an RS232 level shifter built in.
> Also, unfortunately, it isn't real RS232. Probably the easiest thing
> to do is shift the levels of your device and plug it into the OOPic
> DB-9 connector. Use a level shifter like
> http://www.pololu.com/catalog/product/126

Connect the device Rx line
> to the level shifter Tx and vice versa. You can ignore the other
> signals but you do need to provide power and common ground.
>
> Now, since the OOPic has a female connector and the level shifter
> also has a female connector, you need a male-by-male null modem to
> make the connection. See http://www.cablesforless.com/index.asp?
> PageAction=VIEWCATS&Category=428 Use oSerialPort
>
> If the OOPic really doesn't need to receive anything, you can use
> oSerialL and just connect the OOPic output pin (pick one) to the
> device Rx line.
>
> Richard
>

Richard,

Thanks for the information. The ooPIC does not need to receive
any information from the mp3 device and will be sending 2 char
commands, so it looks like I am OK with the oSerialL. Regarding
linking the grounds - if I am providing power to the mp3 device from
the ooPIC-R do I need to do anything else to have a common ground?

thanks

-Ray



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/

Wednesday, February 27, 2008

[oopic] Re: Serial IO with ooPIC-R

--- In oopic@yahoogroups.com, "design.wonk" <design.wonk@...> wrote:
>
> Greetings,
>
> I have an ooPIC-R that I am planning to use to control an audio
> installation. The ooPIC will be used to drive a Daisy MP3 player
(kit
> from Make magazine). I am familiar with RS232C types of serial
> connections, but this type of serial IO is new to me. The Daisy
has a
> serial control interface with TX and RX pins. I will be providing
> power to the Daisy using one of the regulated connections on the
ooPIC.
>
> This is the diagram of the serial pins on the target device.
> <http://tangentview.com/images/schem.png>
>
> My question is how do I wire these two boards together. The
grounds
> should be linked by the power configuration, but how many other
wires
> are needed? Which ooPIC objects should I be using? I am just not
sure
> about timing and flow control.
>
> thanks
>
> -Ray

From the schematic, the device doesn't offer flow control. If the
OOPic has to RECEIVE information from the device and the messages are
more than about 4 chars at almost any slow baud rate, this project
ain't happening. We've been talking about this almost continuously
for the last two weeks.

Unfortunately, the OOPic R has an RS232 level shifter built in.
Also, unfortunately, it isn't real RS232. Probably the easiest thing
to do is shift the levels of your device and plug it into the OOPic
DB-9 connector. Use a level shifter like

http://www.pololu.com/catalog/product/126

Connect the device Rx line
to the level shifter Tx and vice versa. You can ignore the other
signals but you do need to provide power and common ground.

Now, since the OOPic has a female connector and the level shifter
also has a female connector, you need a male-by-male null modem to
make the connection. See http://www.cablesforless.com/index.asp?
PageAction=VIEWCATS&Category=428 Use oSerialPort

If the OOPic really doesn't need to receive anything, you can use
oSerialL and just connect the OOPic output pin (pick one) to the
device Rx line.

Richard



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/

[oopic] Serial IO with ooPIC-R

Greetings,

I have an ooPIC-R that I am planning to use to control an audio
installation. The ooPIC will be used to drive a Daisy MP3 player (kit
from Make magazine). I am familiar with RS232C types of serial
connections, but this type of serial IO is new to me. The Daisy has a
serial control interface with TX and RX pins. I will be providing
power to the Daisy using one of the regulated connections on the ooPIC.

This is the diagram of the serial pins on the target device.
<http://tangentview.com/images/schem.png>

My question is how do I wire these two boards together. The grounds
should be linked by the power configuration, but how many other wires
are needed? Which ooPIC objects should I be using? I am just not sure
about timing and flow control.

thanks

-Ray


[Non-text portions of this message have been removed]


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/

[oopic] Re: Please report your bugs

Dennis,

Let me try that again with the rich text editor.

Dogulas

P Address Size Class Name

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

L A-41 3 oEvent Bumped

L A-41 1 oOperate Bumped.Operate

L A-41 1 oLogic Bumped.Operate.Value

L A-41 1 oVar1b7to7 Bumped.Operate.Value.Value

L A-41 1 oBits7to7 Bumped.Operate.Value.Value.Bits

oProperty Bumped.Operate.Value.Value.Bits.Va

Const Bumped.Operate.Value.Value.Bits.Va

oProperty Bumped.Operate.Value.Value.Bits.Is

oProperty Bumped.Operate.Value.Value.Bits.Is

oMethod Bumped.Operate.Value.Value.Bits.Cl

oMethod Bumped.Operate.Value.Value.Bits.In

oMethod Bumped.Operate.Value.Value.Bits.Se

oMethod Bumped.Operate.Value.Value.Bits.De

Const Bumped.Operate.Value.Value.Bits.Ad

oMethod Bumped.Operate.Value.Value.Debug

Const Bumped.Operate.Value.Value.Address

oProperty Bumped.Operate.Value.IsSet

oProperty Bumped.Operate.Value.IsClear

oMethod Bumped.Operate.Value.Clear

oMethod Bumped.Operate.Value.Invert

oMethod Bumped.Operate.Value.Set

oMethod Bumped.Operate.Value.Debug

Const Bumped.Operate.Value.Address

oProperty Bumped.Operate.IsOn

oProperty Bumped.Operate.IsOff

oMethod Bumped.Operate.TurnOn

oMethod Bumped.Operate.TurnOff

oMethod Bumped.Operate.Toggle

oMethod Bumped.Operate.Pulse

oMethod Bumped.Operate.Debug

Const Bumped.Operate.Address

oMethod Bumped.Init

Const Bumped.Address

[Non-text portions of this message have been removed]


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/

[oopic] Re: Please report your bugs

--- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@...>
wrote:
>
> The only bug in the V.6 compiler that I've heard of has been the
> oEvent bug for the C1.1+ chips. Has anyone else found a bug or think
> that they have in the V.6 compiler. I'm wish to make sure that the
next
> patch coming out is as complete as possible.
>
> thanks,
> DLC
>
> --
> ------------------------------------------------------
> Dennis Clark ooPIC Tech Support
> www.oopic.com
> ------------------------------------------------------
>

Dennis,

I don't know if this is helpful, but in this partial listing of an OMP
file, I noticed two properties listed for an oEvent object with the
exact same name:

P Address Size Class Name
- ------- ---- ------------- -------------------------------------------
----------------------
L A-41 3 oEvent Bumped
L A-41 1 oOperate Bumped.Operate
L A-41 1 oLogic Bumped.Operate.Value
L A-41 1 oVar1b7to7 Bumped.Operate.Value.Value
L A-41 1 oBits7to7 Bumped.Operate.Value.Value.Bits
oProperty Bumped.Operate.Value.Value.Bits.Va
Const Bumped.Operate.Value.Value.Bits.Va
oProperty Bumped.Operate.Value.Value.Bits.Is *
oProperty Bumped.Operate.Value.Value.Bits.Is *
oMethod Bumped.Operate.Value.Value.Bits.Cl
oMethod Bumped.Operate.Value.Value.Bits.In
oMethod Bumped.Operate.Value.Value.Bits.Se
oMethod Bumped.Operate.Value.Value.Bits.De
Const Bumped.Operate.Value.Value.Bits.Ad
oMethod Bumped.Operate.Value.Value.Debug
Const Bumped.Operate.Value.Value.Address
oProperty Bumped.Operate.Value.IsSet
oProperty Bumped.Operate.Value.IsClear
oMethod Bumped.Operate.Value.Clear
oMethod Bumped.Operate.Value.Invert
oMethod Bumped.Operate.Value.Set
oMethod Bumped.Operate.Value.Debug
Const Bumped.Operate.Value.Address
oProperty Bumped.Operate.IsOn
oProperty Bumped.Operate.IsOff
oMethod Bumped.Operate.TurnOn
oMethod Bumped.Operate.TurnOff
oMethod Bumped.Operate.Toggle
oMethod Bumped.Operate.Pulse
oMethod Bumped.Operate.Debug
Const Bumped.Operate.Address
oMethod Bumped.Init
Const Bumped.Address

Thanks,
Dogulas


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/

[oopic] Re: UVTron Question

--- In oopic@yahoogroups.com, "jon_mark_go" <jonmarkgo@...> wrote:
>
> So any I/O 1-7 would be good to be safe? Or can I really use any 1-31?
>

Just what it says: any of the 31 IOLines.

As a practical matter, leave lines 1..7 for A/D, use 8..15 for inputs
because you can turn on internal pull-up resistors (OOPic.PullUp =
cvTrue) and do outputs with 16..31 leaving IOLines 22 & 23 for the
serial port.

To protect the sensor and the OOPic, you can put a 330 ohm resistor in
series with the input connection. This may help prevent a disaster if
you happen to set the selected IOLine as output accidentally.

Richard



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/

[oopic] Re: UVTron Question

So any I/O 1-7 would be good to be safe? Or can I really use any 1-31?


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/

Tuesday, February 26, 2008

[oopic] Re: UVTron Question

--- In oopic@yahoogroups.com, "jon_mark_go" <jonmarkgo@...> wrote:
>
> I'm just looking at the sample code for oUVTronHM at oopic.com
>

The OOPic code uses IOLine1 as a digital input, not analog, although
you sure can't tell that from the sample code. However, there is a
note that says the input can go to any of the OOPic's 31 IO lines,
hence a digital signal as analog can only go to the first 7.

Given the built-in object, it seems like a good way to go. Just use a
comparator on the .Level property if necessary to supplement the
.Detected property. The documentation doesn't say at what count the
.Detected property is set true.

Richard



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/

[oopic] Re: UVTron Question

I'm just looking at the sample code for oUVTronHM at 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/

Re: [oopic] Re: using oDDELink

Andrew Porrett wrote:
> The OOPic only has a 4 character input buffer and operates so slowly
> that it can't even keep up with a 4800 bps datastream. If you're
> only sending the OOPic short commands (4 characters or less), you're
> OK. Anything more and data is lost.
>
>
Unless you are using flow control, which very few things do.

DLC
> At 03:46 AM 2/26/2008, alvin sy wrote:
>
>> Can i ask whats the really problem of the serial IO
>> of the oopic? i mean you said the "big stumbling block
>> for the OOPic is serial IO." can you explain why... thanks
>>
>
>
>
>
>
> 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/

[oopic] Re: UVTron Question

--- In oopic@yahoogroups.com, "jon_mark_go" <jonmarkgo@...> wrote:
>
> Also, this may be somewhat naive. But what is the point of outputting
> the UVTron's detected value onto iolines 8-15?
>

Who's code are you looking at? I am over at Acroname:

http://www.acroname.com/examples/10021/10021.html

In any event, it might be useful to see the accumulated count on LEDs
and a lot of examples do just that.

Richard


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/

[oopic] Re: UVTron Question

Also, this may be somewhat naive. But what is the point of outputting
the UVTron's detected value onto iolines 8-15?


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/

[oopic] Re: UVTron Question

Okay. On a separate note, has anyone made any sort of sample code that
would provide some insight as to how to control the movement of a
robot through virtual circuits using inputs from range sensors? IE if
one range sensor spikes in distance, you want to turn that way since
its a hallway, etc.


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/

[oopic] Re: UVTron Question

--- In oopic@yahoogroups.com, "jon_mark_go" <jonmarkgo@...> wrote:
>
> I assumed it was an analog input so it might have to be on 1-4.
>

No, it is a digital pulse about 10 mS wide that triggers an event. The
sample code counts the events in a one second interval and, if it
exceeds a threshold, it turns on an LED.

Kind of like a Geiger-Mueller radiation counter, I suppose.

The sample code is a very nice example of using events with the OOPic.

Richard



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/

[oopic] Re: UVTron Question

I assumed it was an analog input so it might have to be on 1-4.


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/

[oopic] Re: UVTron Question

--- In oopic@yahoogroups.com, "jon_mark_go" <jonmarkgo@...> wrote:
>
> Is it possible to run the UVTron Flame Detector on IOLine 11?
>

Sure, why not? However, I would use the sample code EXACTLY as given
before I branched out on my own.

Richard



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/

[oopic] UVTron Question

Is it possible to run the UVTron Flame Detector on IOLine 11?


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/

Re: [oopic] Re: using oDDELink

The OOPic only has a 4 character input buffer and operates so slowly
that it can't even keep up with a 4800 bps datastream. If you're
only sending the OOPic short commands (4 characters or less), you're
OK. Anything more and data is lost.

At 03:46 AM 2/26/2008, alvin sy wrote:
> Can i ask whats the really problem of the serial IO
>of the oopic? i mean you said the "big stumbling block
>for the OOPic is serial IO." can you explain why... thanks



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/

Re: [oopic] Re: using oDDELink

Can i ask whats the really problem of the serial IO
of the oopic? i mean you said the "big stumbling block
for the OOPic is serial IO." can you explain why... thanks


____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.

http://tools.search.yahoo.com/newsearch/category.php?category=shopping


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/

Monday, February 25, 2008

Re: [oopic] Re: Micro Second Delay

Yup. Use a Virtual Circuit.

DLC

ooPIC Tech Support

-----Original Message-----

From: "rtstofer" <rstofer@pacbell.net>
Subj: [oopic] Re: Micro Second Delay
Date: Mon Feb 25, 2008 9:16 am
Size: 1K
To: oopic@yahoogroups.com

--- In oopic@yahoogroups.com, Ranindu Dayananda <ranindu@...> wrote:
>
> Is there any way to switch on and switch off a pin in less than 1 ms ?

One thing that doesn't work is toggling the pin in code:

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

Dim LED As New oDIO1

Sub main()

LED.IOLine = 7
LED.Direction = cvOutput

Do
LED = Not LED
Loop

End Sub

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

This takes 7 mS per pass through the loop or 14 mS for a complete cycle.

This is more in line with Andrew's estimate of 400 lines per minute and
these are pretty simple lines of code.

Richard



Yahoo! Groups Links



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/

Re: [oopic] Micro Second Delay

Yes. Use an oTimer linked to an oDio1.

DLC

ooPIC Tech Support

-----Original Message-----

From: Ranindu Dayananda <ranindu@yahoo.com>
Subj: Re: [oopic] Micro Second Delay
Date: Mon Feb 25, 2008 7:56 am
Size: 1K
To: oopic@yahoogroups.com

Is there any way to switch on and switch off a pin in less than 1 ms ?

ooPIC Tech Support <dennis.clark@oopic.com> wrote: No, the ooPIC.delay is 100ms per tic in V.5 and 10ms per tic in V.6.

DLC

Ranindu Dayananda wrote:
> Hello All,
>
> Is it possible to get MICRO-SECOND delay signal from OOPic?
>
> Thanks,
> Ranindu
>
>
> ---------------------------------
> Never miss a thing. Make Yahoo your homepage.
>
> [Non-text portions of this message have been removed]
>
>
>
>
> Yahoo! Groups Links
>
>
>
>

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

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




---------------------------------
Never miss a thing. Make Yahoo your homepage.

[Non-text portions of this message have been removed]


Yahoo! Groups Links



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/

Re: [oopic] Micro Second Delay

Yes. Use an oTimer object lincted to a oDio1 and any associated compare that you might need.

DLC

ooPIC Tech Support

-----Original Message-----

From: Ranindu Dayananda <ranindu@yahoo.com>
Subj: Re: [oopic] Micro Second Delay
Date: Mon Feb 25, 2008 7:56 am
Size: 1K
To: oopic@yahoogroups.com

Is there any way to switch on and switch off a pin in less than 1 ms ?

ooPIC Tech Support <dennis.clark@oopic.com> wrote: No, the ooPIC.delay is 100ms per tic in V.5 and 10ms per tic in V.6.

DLC

Ranindu Dayananda wrote:
> Hello All,
>
> Is it possible to get MICRO-SECOND delay signal from OOPic?
>
> Thanks,
> Ranindu
>
>
> ---------------------------------
> Never miss a thing. Make Yahoo your homepage.
>
> [Non-text portions of this message have been removed]
>
>
>
>
> Yahoo! Groups Links
>
>
>
>

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

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




---------------------------------
Never miss a thing. Make Yahoo your homepage.

[Non-text portions of this message have been removed]


Yahoo! Groups Links



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/

Re: [oopic] Re: using oDDELink

On Feb 25, 2008, at 9:37 AM, rtstofer wrote:

> --- In oopic@yahoogroups.com, Brian Lloyd <brian-wb6rqn@...> wrote:
>> Regardless, I have several kids who are-building/have built MarkIIIs
>> and they want to add things like a Devantech compass module and the
>> sensor board (2-axis accelerometer) to help them with rudimentary
>> mapping.
>
> Sure, the LCD update was grim but there were other things going on
> besides I2C. STR$() comes to mind.
>
> In the case of a compass or sensor board, the amount of IO will be
> considerably less than writing full sentences to an LCD one character
> at a time.
>
> It won't be blistering fast but I suspect it will work fine. It's
> been
> done before and I haven't heard a lot of complaining. The big
> stumbling block for the OOPic is serial IO.

I have one student who is doing voice-control of her MarkIII from her
Mac using a bluetooth link. The commands are single characters coming
in over the hardware UART port after SCP is disabled (\A). She will be
using oSerial to receive the characters but the rate will be very
slow, i.e. one character per command every couple of seconds. I
suspect that the OOPic can handle that rate without difficulty.

We have 4 weeks until the science fair and I will be very busy helping
kids debug their OOPic programs. ;-)

Brian Lloyd
Granite Bay Montessori School 9330 Sierra College Bl
brian AT gbmontessori DOT com Roseville, CA 95661
+1.916.367.2131 (voice) +1.791.912.8170 (fax)

PGP key ID: 12095C52A32A1B6C
PGP key fingerprint: 3B1D BA11 4913 3254 B6E0 CC09 1209 5C52 A32A 1B6C



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/

[oopic] Re: using oDDELink

--- In oopic@yahoogroups.com, Brian Lloyd <brian-wb6rqn@...> wrote:
> Regardless, I have several kids who are-building/have built MarkIIIs
> and they want to add things like a Devantech compass module and the
> sensor board (2-axis accelerometer) to help them with rudimentary
> mapping.

Sure, the LCD update was grim but there were other things going on
besides I2C. STR$() comes to mind.

In the case of a compass or sensor board, the amount of IO will be
considerably less than writing full sentences to an LCD one character
at a time.

It won't be blistering fast but I suspect it will work fine. It's been
done before and I haven't heard a lot of complaining. The big
stumbling block for the OOPic is serial IO.

Richard



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/

Re: [oopic] Re: using oDDELink

On Feb 25, 2008, at 6:21 AM, rtstofer wrote:

>> it might turn out to be a real pain. I am just wondering about the
>> logic or whether Savage Innovations is considering making a change.
>>
>> --
>>
>> 73 de Brian, WB6RQN
>> Brian Lloyd - brian HYPHEN wb6rqn AT lloyd DOT com
>>
>
> I wouldn't count on the change... Sometimes there is just a limit to
> what the OOPic can be expected to do.

Which is why I am surprised that peripherals are on the bit-banged buss.

> I certainly wouldn't plan on hanging more than a couple of I2C
> devices on the local bus. I did some code for an I2C ultrasonic
> ranger and an I2C based LCD display. The update rate was GRIM.

That is precisely what I am worried about.

> In any event, the hardware I2C module is fully capable of talking to
> the EEPROM and a general purpose I2C bus.

I know.

> Why it wasn't used escapes me.

We are in the same boat then.

> Maybe because the code was derived from an even earlier chip
> that may not have had an I2C gadget.
>
> There are other microcontrollers...

Yes. I am quite impressed with the Propeller from Parallax. If only it
had A:D on the chip ...

Regardless, I have several kids who are-building/have built MarkIIIs
and they want to add things like a Devantech compass module and the
sensor board (2-axis accelerometer) to help them with rudimentary
mapping.

Brian Lloyd
Granite Bay Montessori School 9330 Sierra College Bl
brian AT gbmontessori DOT com Roseville, CA 95661
+1.916.367.2131 (voice) +1.791.912.8170 (fax)

PGP key ID: 12095C52A32A1B6C
PGP key fingerprint: 3B1D BA11 4913 3254 B6E0 CC09 1209 5C52 A32A 1B6C



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/

[oopic] Re: Micro Second Delay

--- In oopic@yahoogroups.com, Ranindu Dayananda <ranindu@...> wrote:
>
> Is there any way to switch on and switch off a pin in less than 1
ms ?

One thing that doesn't work is toggling the pin in code:

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

Dim LED As New oDIO1

Sub main()

LED.IOLine = 7
LED.Direction = cvOutput

Do
LED = Not LED
Loop

End Sub

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

This takes 7 mS per pass through the loop or 14 mS for a complete
cycle.

This is more in line with Andrew's estimate of 400 lines per second
(CORRECTED) and
these are pretty simple lines of code.

Richard


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/

[oopic] Re: Micro Second Delay

--- In oopic@yahoogroups.com, "rtstofer" <rstofer@...> wrote:
>
> --- In oopic@yahoogroups.com, Ranindu Dayananda <ranindu@> wrote:
> >
> > Is there any way to switch on and switch off a pin in less than 1
ms ?
>
> One thing that doesn't work is toggling the pin in code:
>
> -----------------------------
>
> Dim LED As New oDIO1
>
> Sub main()
>
> LED.IOLine = 7
> LED.Direction = cvOutput
>
> Do
> LED = Not LED
> Loop
>
> End Sub
>
> -----------------------------
>
> This takes 7 mS per pass through the loop or 14 mS for a complete
cycle.
>
> This is more in line with Andrew's estimate of 400 lines per minute
and
> these are pretty simple lines of code.
>
> Richard
>

Uh, that would be 400 lines per second...

Richard



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/

[oopic] Re: Micro Second Delay

--- In oopic@yahoogroups.com, Ranindu Dayananda <ranindu@...> wrote:
>
> Is there any way to switch on and switch off a pin in less than 1 ms ?

One thing that doesn't work is toggling the pin in code:

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

Dim LED As New oDIO1

Sub main()

LED.IOLine = 7
LED.Direction = cvOutput

Do
LED = Not LED
Loop

End Sub

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

This takes 7 mS per pass through the loop or 14 mS for a complete cycle.

This is more in line with Andrew's estimate of 400 lines per minute and
these are pretty simple lines of code.

Richard



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/