Forum Discussion
Altera_Forum
Honored Contributor
11 years ago --- Quote Start --- hey kaz, I could implement a triangular LUT. But i dont understand whats the idea behind the pointer and the tuning word. Could you please this a bit more in detail ? thanks a lot!! Tim --- Quote End --- The idea comes from NCO but instead of generating sine the same concept is applied to a triangular cycle. The nco is based on one cycle worth of sine data (half or quarter can be used but eventually read into 1 cycle). A pointer is used to address lut based on phase increment... you will need to research into say DDS tutorial from AD for full explanation. I applied same idea but instead used triangular cycle and then realised I don't even need the LUT but just visualise it conceptually to save memory and use high resolution. The triangular cycle is 0:2^14 then back to 1(2^15 points in effect)... look at matlab model and change variois parameters to see how it responds. Bear in mind that as you get close to clk speed the samples per cycle gets less and affects resolution of duty cycle