Delay time

Any general or miscellaneous queries that do not fit into the other forum catagories

Moderators: Benj, Mods

Post Reply
mel
Posts: 9
Joined: Tue Dec 12, 2006 4:11 pm
Location: UK
Contact:

Delay time

Post by mel »

Hi All
is there a way for the delay function to use micro seconds instead of the standard milliseconds?

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 time

Post by medelec35 »

Hello mel.
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.
Martin

mhuang
Posts: 13
Joined: Fri Apr 15, 2011 11:20 am
Has thanked: 1 time
Contact:

Re: Delay time

Post by mhuang »

Hi

I try to add the c code to make the delay in microseconds, the simulation is fine, but the compile to chip is failure. Please help me to solve it. I use the flowcode V3.




Huang Min

Spanish_dude
Posts: 594
Joined: Thu Sep 17, 2009 7:52 am
Location: Belgium
Has thanked: 63 times
Been thanked: 102 times
Contact:

Re: Delay time

Post by Spanish_dude »

( The simulation will not execute the C code you added. )

Could you attach your flowcode file ?
Also, could you tell us what error you have when compiling ?

mhuang
Posts: 13
Joined: Fri Apr 15, 2011 11:20 am
Has thanked: 1 time
Contact:

Re: Delay time

Post by mhuang »

Hi

The file is enclosed, when I change the delay time, e.g. delay_10us(1) to delay_10us(10), the waveform is no change after compile to chip. So what's problem?


Huang Min

Post Reply