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
Pulsin with Flowcode on a PIC
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Pulsin with Flowcode on a PIC
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".
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".
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: Pulsin with Flowcode on a PIC
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
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
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: Pulsin with Flowcode on a PIC
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.
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.
Martin