Since I will never need this anymore, I will throw this out here.
The main routine needs to run in a 20ms-100ms loop.
The PID has pre-control, D-kick suppression, anti windup, steady state and dynamic modes as well as an on/off window. It also has an application mode to force DC based on RPM.
I wrote it in assembler from scratch more than 5 years ago.
The GitHub repo contains the assembly code, and a sample implementation on a VR5 file. Including re-configuring the inlet manifold flaps switch output into a N75 PWM output.
I used the Keil assembler to assemble the code.
The controller works off of pssol_w as the setpoint and ps_w as the measurement. Whether from MAF or from SD calculation, both work equally well.
It can be used to add real boost control to things like VR5 and VR6 engines.
Do not ask me to implement it in your file unless you are ready to pay 4 digits.If you have any questions, post them here.
I would rate the difficulty of integrating this as "advanced". If you do not have a good grip on assembler and C167, just move along, nothing to see here.
GitHub repo:
https://github.com/prj/C167BoostControl