Page 1 of 1
Pulsin with Flowcode on a PIC
Posted: Fri Sep 10, 2010 3:10 pm
by mb02155
Hello,
I am trying to figure out how to do the equivelant of a pulsin (PICBasic or the Basic Stamp) using Flowcode. Can anyone point me in the right direction?
Thanks,
Marty
Re: Pulsin with Flowcode on a PIC
Posted: Fri Sep 10, 2010 3:31 pm
by Benj
Hello,
What exactly does pulsein do?
I would assume if it is getting the logic level of a pin then you can do this by using the input icon in single bit mode.
Otherwise if the function is a wait until high or wait until low then you can do this by using a switch component and using the component macros "waituntilx".
Re: Pulsin with Flowcode on a PIC
Posted: Fri Sep 10, 2010 4:07 pm
by mb02155
Ben,
Basically pulsin mesauress serial pulse width.
What we need to be able to do is read the pulse width or frequency of a sensor.
Here is a link to an example sensor:
http://www.parallax.com/Store/Sensors/C ... fault.aspx
Page 130 on the link below describes the pulsin function in PICBasic pro:
http://melabs.com/downloads/pbpm108.pdf
Thanks,
Marty
Re: Pulsin with Flowcode on a PIC
Posted: Sat Sep 11, 2010 6:41 pm
by medelec35
Hello Marty
For a start you could try here:
http://www.matrixmultimedia.com/mmforum ... 70&p=20174
and follow the links since a similar question was asked.