PID loop with Pic in Assembly

Status
Not open for further replies.
The last PID routine I did was in .asm and it worked very well.
You just have to watch out for overflows in the maths.

After that its just a matter of getting the gain right to stop over/under shoot.
 

JuPrgn

Joined Jul 4, 2024
4
Hi Max
I have available 18F assembler code for 2 PID controllers. The code is part of the library for a visual programming system. The first uses the standard algorithm in independent gains form, uses 582 bytes program memory and executes in 143 uSec. The second also uses the standard form but in velocity format, uses 278 bytes program memory and executes in 152 uSec. Floating point calculation is used so this will skew those program memory figures. Give me a URL and I will send you the code.
Lourens
Hello Lourens, I would like to ask you if you can share your code but I cannot PM you until I reach 10 posts
 
Status
Not open for further replies.
Top