 |
 |
| View previous topic :: View next topic |
| Author |
Message |
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
|
|
Posted: Thu Sep 30, 2010 11:33 pm |
|
|
| Quote: | | As a matter of interest, do you think I might pick up any speed if I used the qei module instead of just using standard pins for the encoder. |
Yes, exactly. At least several 100 kHz.
I didn't follow the discussion details up to know, but there are several options to achieve a faster processing of external events allowing time consuming processor operations at the same time. If hardware processing isn't available in the respective design, a timer interrupt at a sufficient high rate (e.g. several kHz) is a straightforward general method that should also work in your case.
I usually limit a LCD update rate to a value, that still allows a human to follow a changing display, 5 to 10 Hz at maximum. A faster display rate will be percepted as a lack of software quality. This corresponds to an overall application design separating data acquisition, calculation of measurement results and user interface. |
|
 |
andrewg
Joined: 17 Aug 2005 Posts: 316 Location: Perth, Western Australia
|
|
Posted: Fri Oct 01, 2010 12:00 am |
|
|
I've never used the QEI module, but from reading the data sheet it appears it will track the value for you. You just read the current value from the hardware register and display it. There may be some hardware limitations/caveats, but reading the data sheet should sort those out. _________________ Andrew |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|