Other Parts Discussed in Thread: HALCOGEN, TMDS570LS31HDK
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
Is what the user called as "method 1)" actually MORE accurate than using the N2HET as counting/measurement means (including the integrated angle measurement) by edge detection?
Which of the following options is recommended to achieve angle measurement by interrupt detection (GIO or HET)? Are all implementable just using Halcogen/CCS (without the HET IDE) ?
1) Using the HET for both getting rising/falling edges and also to count the respective periods (and maybe also for measuring directly the angle);
2) Detecting edges by HET (edge-detection) but counting by RTI;
3) Detecting edges by GIO (e.g. interrupt) and counting by RTI.
For example, from this post the RTI looks to me being preferred over the dedicated HET functionalities.