Other Parts Discussed in Thread: HALCOGEN, TMS570LS1224
Hi
Im trying to use the eCAP 2 and 3 from TMS570LS1224 to capture one encoder signals. I was looking at Halcogen but I have some questions.
I need to configure it fro continuous and for rising edge. And I need to reset the counter when I reach certain amount. Lets say 1000. Also I need to obtain the direction, which is easy. I just need to know how to obtain the timer value on the two events (channel A and channel B) so I can do
direction=timer_evnt1-timer_evnt2
if(direction<0)
direction is ccw
else
direction is cw
But I don't know
1)how to configure the reset to happen with a value
2)how to obtain the timer value on that moment.
Thanks!!