Boy. Try to get some sleep, and people start talking to themselves.

Looks like the guy you were talking to, helped figure a couple things out though.

Good catch on the array size. Didn't see that.

Heard the video. That's just nasty sounding.
Is it any better yet after the changes?

I know you were told to change SPWM_RES to 255, but it really should be 256 for 8-bit resolution. Maybe the cause of the "PIC locking on at full throttle". I'll play with it here too and see.
<br>