This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28379D: sincos encoder 5 ch support , and Gray to binary lib

Part Number: TMS320F28379D
Other Parts Discussed in Thread: CONTROLSUITE, DESIGNDRIVE

Hello everybody , 

please  is it possible to handle  a absolute 5ch sincos encoder ( for example : 3 ch &N pulses per rotation   +  2 ch & 1 pulse per rotation  )  ?

any suggestion / idea from where to start from ?  any input is very welcome 

about   Gray to binary   library on  C2000 do you have any suggestion ?

thank you very much 

regards

Carlo

  • Carlo,

    We have a complete SINCOS project included in controlSUITE.  You can see it in the resource explorer under the DesignDRIVE folder.

    Our SINCOS example utilizes 2 linear (sinusoidal) outputs based on 90deg mechanical separation.  Assuming they are using 3 sensors at 120deg separation, I think they must already have the math/algorithm/transformation figured out for 3 sensors and could use our existing project to aid their development.  Note our interesting feature is using our internal comparators (for zero crossings) and feeding the resulting pulses into our QEP for speed and direction in higher speed ranges.  Low speed ranges, where precision counts uses our high speed ARCTAN instruction to calculate the angle based on the sine and cosine inputs.  This is the significance of the 90deg offset of two sensors.

    Hopefully one of our experts can answer your question about Gray code to binary conversion.  (one bit change at a time, eh?)