Hi All,

I'm trying to convert a 10bit or 12bit word "position" to 0-360 degrees with 2 or 3 digits after the decimal point

I have this routine working for conversion to degrees without decimal point
anyone who can help me with this mathematics:

Scale = 1024 (might also be 4098 for 12bit)
dummy = position * 64
dummy = dummy *360
result_64 = DIV32 scale
degrees = result_64/64

thanks