|
You posted under the standard Atom forum, but claim to be using the Atom PRO IDE. These are not the same device, and there are differences in the BASIC as to usage and functionality. If there IS a way to do this using features of Atom BASIC we need to know which you are using, standard Atom or Atom Pro.
However, if you have access to an oscilloscope, the point is moot. Simply make a pin high (i.e., HIGH P0) at the start of your math calculations, then pull it low at the end (LOW P0). The time span in between the high/low will answer your question. If an O-Scope is not available, but a frequency counter is available with the period feature, then use that. In both cases you will want to do a loop so you have a steady signal to study. Just be sure to trigger on the leading edge. This is where the pin goes high at the start of your calculations.
Perhaps someone else can tell us how to do this in software. OK? kenjj
|