Hi all,
I have a really short question. I'm trying to set the EQEP ports of a F283x device, but it's not clear for me how to select the proper value for the following parameter:
int mech_scaler; // Parameter: 0.9999/total count, total count = 4000 (Q26)
In the example it is set at 16776 and I was looking at the application notes, but it is not clear yet . It says:
"Since the maximum number of clock pulses in one revolution is 4000, i.e., maximum
count value is 4000, then a coefficient, MechScaler, can be defined as,
MechScaler x 4000=360 mechanical = 1per unit(pu)mechanicaldisplacement
MechScaler= (1/4000) pu mech displacement /count
= 16777pu mech displacement/count(in Q30)
I have 5000 pulses per revolution sensor so I need to change that value, but I don't know how could I work out that 16777. Does anybody can help me with that? I will be more than grateful if you can.
Thanks in advance