Monday, November 5, 2007

[oopic] Re: oSPIL and Rate-property

--- In oopic@yahoogroups.com, "mtiusanen" <mtiusanen@...> wrote:
>
> Hi,
> has anybody used this object for SPI-data transfer?
> Well, at least this Rate-property is a mystery. What (Baud?) rates are
> there behind the 8 options?
> Analog to oSerialL- there are values 1-5 standing for 1200-9600 Bauds.
> But, if taken from oSerialPort, there are rates from 1200 to 50KBauds.
> If someone has got this object working, I would be happy to see some
> examples, like how to receive bata which is wider than 16 bits. My
> intent is to use it with a Vti's SCP1000-D01 Pressure sensor, which has
> SPI.
>
> http://www.vti.fi/en/products-solutions/products/pressure-
> sensors/scp1000-pressure-sensor
>
> BR /Mika
>

There are a few things to consider when the object says it handles SPI
on any IOLine. Mostly, it indicates that it is bit-banged and doesn't
use the SPI hardware. So, pick the highest speed you can - it
certainly won't exceed the capability of the sensor.

The difference between an 8 bit transfer and a 16 bit transfer is
PROBABLY how the object deals with IOLineE. The object wants to
toggle the line between every byte. So, use a oDIO line to do the
device enable by lowering the output in code and try transferring 2
bytes before raising it in code. The OOPic PROBABLY won't know the
difference and the sensor will just see a gap between the two bytes.

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/

No comments:

Post a Comment