Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 13:39 02 May 2025 Privacy Policy
Jump to

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.

Forum Index : Microcontroller and PC projects : Question Regarding settick FAST

Author Message
joker
Newbie

Joined: 06/02/2024
Location: Germany
Posts: 28
Posted: 06:01pm 19 Apr 2025
Copy link to clipboard 
Print this post

Hello,
I try to collect some data really fast and found the command
  settick FAST <frequency>, <target>
in the manual. With this it should be possible to read data with up to 50kHz.

Unfortunately, I can't get it to work. MMBasic always complains with "Expression Syntax".
My command is: "fasttick FAST 1000,function" and I use it on a CMM2 board.
and it works fine as "fasttick 1,function"

Does anybody have an idea why this does not work?
I scanned already the source code but can't find any problem. It should work.

Best Regards
  Matthias
 
Bleep
Guru

Joined: 09/01/2022
Location: United Kingdom
Posts: 570
Posted: 06:03pm 19 Apr 2025
Copy link to clipboard 
Print this post

"fasttick FAST 1000,function"
Is this a typo?
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7464
Posted: 06:23pm 19 Apr 2025
Copy link to clipboard 
Print this post

AFAIK there is no SETTICK FAST on the PicoMite. There is on the CMM2, I think (my manual is old but I did make a note in it).
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 1134
Posted: 05:03am 20 Apr 2025
Copy link to clipboard 
Print this post

Interesting that it's in the source. I was wondering about this myself because SYNC has µS resolution and depending on what you are doing, might be an option(?)

What would be even cooler is if MATH.PID could be set to sub-mS because this has the highest priority and could be used as a general purpose ISR.
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7464
Posted: 06:33am 20 Apr 2025
Copy link to clipboard 
Print this post

It's a single source file for all MMBasic versions though, I think. Are you sure it's enabled for the PicoMite? It may be in the source but not enabled. No good asking me, I have an aversion to C that makes me go all twitchy and I have to shut my eyes when I see it or I'm likely to put a hammer through the monitor. ;)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
joker
Newbie

Joined: 06/02/2024
Location: Germany
Posts: 28
Posted: 04:47pm 20 Apr 2025
Copy link to clipboard 
Print this post

  Bleep said  "fasttick FAST 1000,function"
Is this a typo?


Ahhh, yes. It should be settick FAST 1000,function
Well spotted ;-)

Matthias
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025