franticEB
Full Member level 3
- Joined
- May 10, 2010
- Messages
- 153
- Helped
- 1
- Reputation
- 2
- Reaction score
- 2
- Trophy points
- 1,298
- Activity points
- 2,551
hi,
with my fpga altera i've to generate a pwm signal for a 40-180Hz sine wave.
I've started from this application note **broken link removed** and i've used the vhdl of ddfs to generate the wave. I've modified the parameter in order to obtain an out frequency of 1Hz for Freq_Data=1 and a 243HZ for Freq_Data=255. So For 1MHz sys clock the accumulator is 20 bit lenght.
This method seems to work for a DAC input, but my problem is PWM...
How could convert my output data to pwm? Are correct the parameters i've imposed? i've tried the pwm methods suggested but they didn't work.
Could you help me or give me some advices on how implement that generator?
Thanks
with my fpga altera i've to generate a pwm signal for a 40-180Hz sine wave.
I've started from this application note **broken link removed** and i've used the vhdl of ddfs to generate the wave. I've modified the parameter in order to obtain an out frequency of 1Hz for Freq_Data=1 and a 243HZ for Freq_Data=255. So For 1MHz sys clock the accumulator is 20 bit lenght.
This method seems to work for a DAC input, but my problem is PWM...
How could convert my output data to pwm? Are correct the parameters i've imposed? i've tried the pwm methods suggested but they didn't work.
Could you help me or give me some advices on how implement that generator?
Thanks