I am referring to the position measurement in the microchip application note AN4064 attached


'I am struck up in understanding the equation2. I know 65536/6 is 60 degrees in terms of integer, The equation is probably trying to estimate how much rotor is moved in each PWM. If i take the angular speed formula angular speed = angular displacement (Theta) / time = (Final angle - Initial angle) / Time
The Time is the Average Period between the hall changes. But how FCY, Prescaler, PWM Switching Frequency are used to build the equation, i am unable to connect the dots and it is the most important calculation i need to understand as i am facing issues of invalid theta calculations. Can someone please guide how the equation is derived.


'I am struck up in understanding the equation2. I know 65536/6 is 60 degrees in terms of integer, The equation is probably trying to estimate how much rotor is moved in each PWM. If i take the angular speed formula angular speed = angular displacement (Theta) / time = (Final angle - Initial angle) / Time
The Time is the Average Period between the hall changes. But how FCY, Prescaler, PWM Switching Frequency are used to build the equation, i am unable to connect the dots and it is the most important calculation i need to understand as i am facing issues of invalid theta calculations. Can someone please guide how the equation is derived.

