Page 1 of 1
Timer
Posted: Wed Nov 15, 2006 5:21 am
by RAMTEC
Hi Steve. The timer have milisecond and second options, the new version could have microsecond optios?
Thank you
RAMTEC
Posted: Wed Nov 15, 2006 9:47 am
by Steve
RAMTEC:
Good suggestion, but too late for the V3 release. I'll put it on the worklist for v3.1
[NOTE: The following info is for v3 of Flowcode only]
In the meantime, you will need to use a 'C' icon with the following single line of code in it:
This will produce a 50us delay. Note that you cannot currently have less than a 10us delay. [Aside: there is an equivalent delay_us() function, but if you use this you may not be able to compile your code due to a linker error - depending on the clock speed used].
If you need a variable delay, you can access Flowcode's variables within your 'C' icon code. For example, if you have a variable "MyDelay", then you would use the following:
Timer in microsecond
Posted: Sat Jan 06, 2007 6:02 pm
by RAMTEC
I use very very frecuently time in microsecod and some time is dificult to me use loop or TMRO for it. Some time i use program with variable time from 5 microsecond to 500 microsecod or more.
The timer just have time in milisecond and second.
Will Matrix M. integrate in flowCode 3.1V microsecod time in the timer icon?
Posted: Mon Jan 08, 2007 10:52 am
by Steve
I don't think you'll actually get a microsecond delay in the delay icon in Flowcode v3.1 - I've got a lot to do with this release already and not much time. The workaround listed above should work fine if you need microsecond delays.
However, I do hope to incorporate your suggestion in a future release of Flowcode.