Hi, I have below questions.
1. because the user doesn't know how many MEP steps per coarse step, so we should call SFO function to know this information, right? And this information is installed in the variable called MEP_ScaleFactor, right? Can the user specify how many MEP steps per coarse step?
2. I see below codes in an example, they define MEP_ScaleFactor in a source code before main(), so every time we use SFO(), we should define a variable called MEP_ScaleFactor? The SFO() can recognize the variable as long as its name is MEP_ScaleFactor, right?
int MEP_ScaleFactor; // Global variable used by the SFO library
// Result can be used for all HRPWM channels
// This variable is also copied to HRMSTEP
// register by SFO() function.
3. When we configure CMPAHR register, we should know the value of MEP_ScaleFactor so we should call the function SFO(), right? If we enable auto conversion, do we still need to call function SFO()?
4. when calculating number of MEP steps, why should we add 0.5? And what does rounding mean in the below picture? Is it the same as the function round(3.1415926,2)=3.14?
Thank you.