Other Parts Discussed in Thread: HALCOGEN
Hello,
I am using the Hercules HDK to capture the angular position and speed of a motor shaft. The Hall / MR sensors generate pulses as the motor starts to rotate. Depending on the design I can adjust the resolution such that the maximum pulse frequency is about 10 KHz - 80 KHz ( I prefer to use the higher resolution alternative- i.e 20 KHz ). I would like to use the TMS570 to calculated the position and speed of the motor. From what I understand there are two ways of doing it: 1) To use GIO to generate an edge detection interrupt, count a few pulses and use RTI to capture time difference between X number of pulses. 2) to use N2HET
While method 1 is more accurate it is quite interrupt intensive and is not ideal especially since my system has 8 speed sensors. I am wondering if N2HET could be used to capture the speed and position given the pulse frequency of 80 KHz or at least 10KHz?
I am also not clear what the "edgeGetCounter", "hetGetTimeStamp" (from HALCOGEN generated code) function do ? can they be used to count the number of pulses in a given time to calculate speed? How can I use N2HET to count the number of pulses in a given period of time?
Thanks,
Darius