View Single Post
Old 08-17-2010, 01:59 AM   #7 (permalink)
EcoModding Apprentice
Join Date: Aug 2009
Location: terra firma
Posts: 138
Thanks: 4
Thanked 24 Times in 22 Posts
i know how it all works, and yes, the idle is being eaten up by every "delay2(5)" during every call to LcdCommandWrite and LcdDataWrite -- basically 5ms lost for every GotoXY and every char printed. Change those delays to "delay2(1)" and watch your cpu% hit single digits. I believe 1ms is within spec for the LCDs we're using, and i know it works on my 2-row and 4-row LCDs.

The computations are simple & fast; painting the screen (and data logging, if opted) is the real time consumer.
  Reply With Quote
The Following User Says Thank You to nickdigger For This Useful Post:
dcb (08-17-2010)