My project is a switching power supply and I have to generate PWM signals. We are using TMS320F28069 in our design and to familiarise myself with the architecture, I was following the lab examples in C2000 teaching ROM (module 7, lab 7-9 which talks about generating a sine wave). It mentions presence of a sine look up table in ROM that I can use with IQMath library. This particular table of 512 items has sine values for full 360 degrees.
In my code, I only need to generate a 180 degree cycle, so could I just use the first 256 values? In theory it should work but I wonder if the distribution of values in this table are not linear so index0-index256 don’t necessarily represent the 180 degree swing.
Any thoughts on this please?
Thanks,
Samie