djsoftlayer
New Member
Hello, whatever takes maximum to the picaxe at 4mhz to execute a command? What would be a maximum time for the common commandos?
It is the function PAUSE precise in small values? , I am executing the command PAUSE 2, and I suspect that the pause is smaller than 2ms, is that possible? Note: I do not have oscilloscope.
With respect to the last question, I am using the following code:
inicio:
If pin7 = 1 Then contar
GoTo inicio
contar:
pause 2
inc xx
If xx >= 250 Then
inc y
Let xx = 0
GoTo calcular
End If
If pin6 = 0 Then contar
If pin6 = 1 Then GoTo calcular
GoTo inicio
As you can see I am counting in steps of 2ms the time that happens when entrance 7 is in high until the 6 are also placed in high (imagines a car that with its wheel touches to a sensor and another one later), the code counts the time that I take to him to arrive from sensor 1 at sensor 2.), of course, the result of the count would have to be a greater time to the real one due to the retardation in the execution of the commandos, but surprising the result is smaller. AID PLEASE!!!!
It is the function PAUSE precise in small values? , I am executing the command PAUSE 2, and I suspect that the pause is smaller than 2ms, is that possible? Note: I do not have oscilloscope.
With respect to the last question, I am using the following code:
inicio:
If pin7 = 1 Then contar
GoTo inicio
contar:
pause 2
inc xx
If xx >= 250 Then
inc y
Let xx = 0
GoTo calcular
End If
If pin6 = 0 Then contar
If pin6 = 1 Then GoTo calcular
GoTo inicio
As you can see I am counting in steps of 2ms the time that happens when entrance 7 is in high until the 6 are also placed in high (imagines a car that with its wheel touches to a sensor and another one later), the code counts the time that I take to him to arrive from sensor 1 at sensor 2.), of course, the result of the count would have to be a greater time to the real one due to the retardation in the execution of the commandos, but surprising the result is smaller. AID PLEASE!!!!