Hi, Malc

I tried to compile your project and get a strange error at compiling : PIR2 not found ...

which is the processor you use ? 767 or 676 ???
and is the posted "twin track controller" your source ???

the SPWM might run properly ...

Alain