Is there any form of definitive table (or even thoughts) as to how long a processor takes - at normal speed ("setfreq m4") - or with a higher (i.e. "setfreq m16") speed to process a command (any command)? And is the length of time-per-command processor type dependant (i.e. 18M2 vs 40X2)?
I have a short window of time in which to check a number of sensors (the sensors will only be active for around half a second at a time) during a relatively long routine and should such a (thought-)table be available I might have an appreciation of how many commands in the main routine I can process before I need to make that call to the check-sensor subroutine.
I've done a search for this subject on processor timings and came across two (very) old thread addresses - but as they date back to the days of 2005 and the rev-ed forum site, they appear to not be no longer available - gives a 404 error:
http://www.rev-ed.co.uk/picaxe/forum/Topic.asp?topic_id=2767
http://www.rev-ed.co.uk/picaxe/forum/Topic.asp?topic_id=2521
My thoughts may even have to come down to having a "slave" processor to check the sensors while the "main" processor runs the main routine - I still need to think this idea through. Still pondering on the best way forward with this.
Many thanks
Dave
I have a short window of time in which to check a number of sensors (the sensors will only be active for around half a second at a time) during a relatively long routine and should such a (thought-)table be available I might have an appreciation of how many commands in the main routine I can process before I need to make that call to the check-sensor subroutine.
I've done a search for this subject on processor timings and came across two (very) old thread addresses - but as they date back to the days of 2005 and the rev-ed forum site, they appear to not be no longer available - gives a 404 error:
http://www.rev-ed.co.uk/picaxe/forum/Topic.asp?topic_id=2767
http://www.rev-ed.co.uk/picaxe/forum/Topic.asp?topic_id=2521
My thoughts may even have to come down to having a "slave" processor to check the sensors while the "main" processor runs the main routine - I still need to think this idea through. Still pondering on the best way forward with this.
Many thanks
Dave