Vision System Program Architecture - Fio V3

I have searched online and from what I understand I will need to employ the advanced pulse width modulation

Can you provide a link or two to support the above statement.
Why PWM and not 50% duty cycle ?
This is from a comment in the code you posted in your first post.

 //setup PWM: f=30Khz PWM=0.5

It looks to me that you are setting the timer up for FAST PWM 50% duty cycle.
If you are using 50% duty cycle then why not CTC (Clear Timer on Compare Match)

. The duty cycle is critical and yet you your code specifies it but you have not talked about it.
Is there any reason you can't use CTC mode ? (50% duty cycle ) instead of FAST PWM ?
. If you can answer that question then maybe I have a couple of programs to generate you r 30khz.