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.
|