Programming the UVW Position

How do i program the UVW Position of the Rotor into the MAG ALPHA sensor?

An easy approach is to power two phases (assuming a PM machine) and lock the rotor in its “zero” position. You can then set the ‘zero’ register in the MagAlpha which will cause that position to be reported as 0 degrees and normalize the rest of the angles to that position until / unless you set zero to a different position. That is stored in NVM, so you would never have to touch it again unless you want to change the zero.