came across app note AN00964A on Software PID Control of an Inverted Pendulum Using the PIC16F684
formatting link
pdf and code
If anyone is interested
Alex
PolyTech Forum website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.