Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 00:08 17 Sep 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 : Math.PID question.

Author Message
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 1531
Posted: 11:04am 16 Sep 2025
Copy link to clipboard 
Print this post

Hey Pete  

I don't have the PicoMite source as I don't follow that stuff too well:

When we have multiple PIDs running, I get the impression that the ISRs are triggering at different times(?) Not all lumped in one ISR.

If this is true, are they evenly spaced?

IOW, if I have four PIDs running @1KHz, are they triggering in-turn every 250µS?
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10399
Posted: 11:35am 16 Sep 2025
Copy link to clipboard 
Print this post

No:
They each run at 1mSec intervals from the time each one is started
Edited 2025-09-16 21:35 by matherp
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 1531
Posted: 12:04pm 16 Sep 2025
Copy link to clipboard 
Print this post

  matherp said  No:
They each run at 1mSec intervals from the time each one is started


Awesome  

sync 245
Math pid start 1
sync
Math pid start 2
sync
Math pid start 3
sync
Math pid start 4


If I use all the same data, I get 4KHz  
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 1531
Posted: 12:32pm 16 Sep 2025
Copy link to clipboard 
Print this post

Gut feeling is that; spreading out the PID STARTs is probably a good thing, no matter what(?)
 
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