how to used lookup table for sine wave generation?

How to used lookup table for sine wave generation? when working on design of PWM for DSP F28335 code generation sine source is not working. For this reason I want to use lookup table. how to use look up table for this.what should be input to this?

Hi anish,

There is no need to write your own lookup table, the compiler will handle this for you.

For your sine wave source that you can control the frequency of you need to be careful. If you merely control w in sin(wt) you will run into problems. You need to control entire (wt) term I have done this in the attached example circuit with a resetting integral. The bottom example is for a digital implementation.

If you do want to use a lookup table, have a look at this tutorial video which introduces it: