DELAY PROBLEM

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
User avatar
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: DELAY PROBLEM

Post by Benj »

Hello,

Are you using a loop similar to this.

Loop
{
Output 1
Delay
Output 2
}

If so then your Output 1 will be seen but the Output 2 is on and off so fast that you will not see it. You will need 2 delays to allow your program to toggle correctly.

Loop
{
Output 1
Delay
Output 2
Delay
}

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: DELAY PROBLEM

Post by medelec35 »

Hello scorpy77.
For microsecond delays, you will require a C code block.
Then for 10 microseconds delay use delay_10us(1);
for 500 microseconds delay use delay_10us(50); etc.

See:
http://www.matrixmultimedia.com/mmforum ... 86&p=17180
Martin

Post Reply