Forum Discussion
Altera_Forum
Honored Contributor
15 years agoOh, I am sorry. The code is wrong. This is correct:
if (pwm_trig==1) //control the slope of the triangle wave. b=-1; if (pwm_trig==0)//triangle wave is rising when synchronization signal is 0 b=1; The pwm_trig is the 20kHz synchronization signal. It comes from a master dsp controller. What is the meaning of “the required setup and hold time”? Due to the structure of our system, I have to use the external synchronization signal (20kHz) and internal clk signal (20 MHz). Is there any solution? Thank you!