Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
erbp Senior Member Joined: 03/05/2016 Location: AustraliaPosts: 195
Posted: 07:25am 06 Jun 2020
Copy link to clipboard
Print this post
I am trying to find out the minimum supported PAUSE time, specifically for a MM2 running at 40MHz. The manual shows:
As a value of 0.2 is used as an example of a fractional PAUSE time, presumably 200 uSec is achievable, but how far lower than that can a MM2 handle?
I presume the minimum would also depend on the MM model & clock speed, so it would be good if there were a table someplace documenting the minimum PAUSE times supported on the various MM / ARMmite models (even if it only provided figures for the default clock speed for those models where the speed can be changed).
Regards, Phil.
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 10575
Posted: 07:51am 06 Jun 2020
Copy link to clipboard
Print this post
It is a bit of a meaningless question. You could specify a pause time of 1uS and the processor would do that but the time taken to interpret and parse the command would be significantly longer
If we assume the MM2 executes 25,000 simple Basic instructions a second then a hypothetical PAUSE 0 would take 40uSec to process
On the CMM2 at 270,000 Basic instructions per second the same PAUSE 0 would take just under 4uSec
erbp Senior Member Joined: 03/05/2016 Location: AustraliaPosts: 195
Posted: 12:27pm 06 Jun 2020
Copy link to clipboard
Print this post
@matherp - thanks, at least that gives me some idea.
Phil.
robert.rozee Guru Joined: 31/12/2012 Location: New ZealandPosts: 2465
Posted: 01:24pm 06 Jun 2020
Copy link to clipboard
Print this post
at the other end of the scale... i suspect the maximum delay (2147483647ms, approx 24 days) may be outdated, as it predates the move to 64-bit integers. 292,271,023 years is likely the true upper limit.
is anyone able to test this?
cheers, rob :-)
addendum: the CMM2 manual also mentions 24 days Edited 2020-06-06 23:31 by robert.rozee