Other Parts Discussed in Thread: HALCOGEN
Hi
Hello
A friend of mine posted this information last year but never got his answer. He asked me to do so
I'm working with the Hercules TMS570LS1114 and I need to connect 9 quadrature encoders with the N2HET. I saw the application note http://www.ti.com/lit/an/spna228/spna228.pdf with the state machine, which I could not tell if it worked because some problems with the simulated signals. I also read this post: http://e2e.ti.com/support/microcontrollers/hercules/f/312/p/536444/2021979 and found it quite helpful but today I was using Halcogen and on the het.h file I saw some functions for edge detection and also counters. I attach the image of that code.
I was wondering if, even when Halcogen only supports 7 captures or 7 interrupts per HET and I need 14 on HET1 and 4 in HET2, if I could use those C functions to do the code or if there is another code for the module to be able to do the task since I tried to replicate the post I added here and had some problems.
The N2HET module can be programmed in C? or it needs to be done with the N2HET IDE?
There is also the option of the EDGE INTERFACE FUNCTIONS but since the encoders signals can be occurring at any time, this looks like will cause an interrupt on the CPU and I don't want that...
Also how can I get the information about the encoders back to the CPU to use them? Do you have a C code for 1 quadrature encoder I could replicate to get the amount of quadrature readings I need?
Not too sure if the question is clear...
Thanks and best regards!