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.
Hi,
My question is, how I can get an angle value by the N2HET? And what' s the pin where I have to get the input toothed wheel?
I use HET IDE for programming the N2HET.
Hello Emanuele,
I have forwarded your question to one of our N2HET experts. In the mean time, can you let us know what device you are using since the pin that this function is mapped to is sometimes dependent on the device part number.
Also, have you reviewed the "Angle Functions" section of the technical reference manual? There is quite a bit of information contained in that section and its subsections.
As an alternative to using the angle functions you could simply use the N2HET for edge detect/pulse counting and simply use the number of pulses to calculate an angle or as an index into a lookup table.
Thanks I use the Hercules launchpad with a RM42 microcontroller. I have read all technical manual about the N2HET. Can I have an example code in assembly that get an angle value and compare it with a limit value?
Hi Emanuel,
Thanks for the additional information. In regard to the example code, I am fairly certain we do not have such code since there is going to be some parts that are dependent on the type of toothed wheel you are using and how this is turned into a pulse for the microcontroller. Certainly, if such an example exists, it would not be in assembler as all of our examples are written primarily in C except for some startup code for the microcontroller.
None the less, please wait for our expert's reply and they should be able to help give you guidance in generating the code that you need.
Hi Emanuel,
Chuck is correct, we don't have any examples of how to actually use the HWAG. There are some other forum posts where we have tried to answer questions based on the specification but that's about the extent of what we have.
-Anthony