CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Writing to a standard 20x2 lcd: How fast can it display ?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Thu Sep 30, 2010 11:33 pm     Reply with quote

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

View user's profile Send private message Visit poster's website

PostPosted: Fri Oct 01, 2010 12:00 am     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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