Menu
JAQForum Ver 19.10.27

Forum Index : Microcontroller and PC projects : Math.PID question.

Posted: 11:04am
16 Sep 2025
Copy link to clipboard
PhenixRising
Guru

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?
 
Posted: 11:35am
16 Sep 2025
Copy link to clipboard
matherp
Guru

No:
They each run at 1mSec intervals from the time each one is started
Edited 2025-09-16 21:35 by matherp
 
Posted: 12:04pm
16 Sep 2025
Copy link to clipboard
PhenixRising
Guru

  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  
 
Posted: 12:32pm
16 Sep 2025
Copy link to clipboard
PhenixRising
Guru

Gut feeling is that; spreading out the PID STARTs is probably a good thing, no matter what(?)
 


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