Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
I am a newbie, using a PSoC 1, and I need to generate a PWM output that is a sine wave (after filtering). The sine wave values will be from a lookup table (similar to the example program using a sine wave lookup to drive a DAC).
My question has to do with updating the PWM with each new lookup value. I cannot stop the PWM, or delay it, while loading the next sine wave value. If that happens, then the frequency of the sine wave output will be off.
So what I need to do is to load the next PWM pulse width value (the period is always 255) without adding any extra delay to the PWM output.
I have also been wondering if something like a counter or a one-shot would also work for this, and if one of those may make the solution easier?