InPhase
 Senior Member
 Joined: 15/12/2020 Location: United StatesPosts: 182 |
| Posted: 01:13pm 19 Jul 2026 |
|
|
|
Hello all! I have been looking over the code used for the nano and pico inverters in an effort to truly understand what is going on "under the hood/bonnet". I notice that the sine table currently uses
3.14159 /(NPWM - 1)
That puts both zero-degree and 180-degree zero crossings into the same 200-sample half-cycle. The next half-cycle also begins at zero, giving two consecutive zero samples and slightly nonuniform phase spacing. On the scope, that looks like a very tiny flattening at the zero crossing. I haven't noticed any adverse electrical effects, but it would raise the THD. Has anyone else seen any ill effects?
If the math were altered slight so that the half cycle doesn't come around to zero at the end, that would eliminate the double zero at the crossing. |