Hi All
is there a way for the delay function to use micro seconds instead of the standard milliseconds?
Delay time
-
- 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
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.
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
Re: Delay time
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
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
-
- Posts: 594
- Joined: Thu Sep 17, 2009 7:52 am
- Location: Belgium
- Has thanked: 63 times
- Been thanked: 102 times
- Contact:
Re: Delay time
( 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 ?
Could you attach your flowcode file ?
Also, could you tell us what error you have when compiling ?
Re: Delay time
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
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