We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi I want to draw graphs of position of 2-phased QEI versus time. so I want to capture QEI position every time period. time gap between to position pulses is at least 7.2 microseconds. I think I have to choose one of these methods:
1-send position to USB during time overflow interrupt(TIM_INT)
2-send content of the timer when the situation changes. (I don't know if it is possible to sense the changes as an interrupt?)
I think there are some restrictions due to interrupt latancy. so what is the highest resolution for my system. and which method is better? How can I define interrupt for 2nd method? can i send data to buffer and send batch buffer to USB? Is it help me Reduce interrupt latancy effects? HOW? Please Help me Best Regards
"so what is the highest resolution for my system."
Aren't you a funny guy? You haven't even told us what processor you use. So we don't know if the processor have quadrature encoder support in hardware or if you will be using some capture functionality.
Oh sorry! I forgot to say that i'm using LPC1768! and use USBhostlite to send data to USB
and USBhostlite code is available here:
ics.nxp.com/.../
and I removed Uart from codes so that it just copies data to usb.