Hello all, I am using a TMS320f28335
ezdsp and I am trying to get a 2048 line quadrature encoder to work. I
am goin over the example code from the DSP2833X examples and inside
Example_posspeed.h there is an int called mech_scaler. The comment says
.9999/total count, total count = 4000. It is then initialized to 16776.
However on line 146 of Example_posspeed.c it says that mech_scaler is
the total count in 1 revolution. I would think that this value for me
should be 2048*4, but this isnt consistent with the header. For one
thing, .9999/total count should be less than 1, and where 16776 came
from eludes me anyway. Can anyone help? Thanks
Sorry for the length, but two other quick questions if anyone has the time.
1) Is base rpm discussed in the example the maximum rpm the motor can produce?
2) What are the references to Q in the comments (ie, Q26 or Q26->Q15) ?
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.