??? 02/15/05 13:44 Read: times |
#87509 - if it is really slow Responding to: ???'s previous message |
How would I know the bottle nick of the design, is it the program that is too slow or is it the LCD because program waits of LCD_BUSY signal to disappear?
If the busy times are significant making the busy loop control the gate of a timer can give useful information. This only gives relevant data if the wait for unbusy is more than a few cycles. Another method would be while (TheBit) { // panel is busy WaitTimeAccumultor++ } Both these methods will give somewhat false readings (the "get out of busy wait" will be a bit longer) but still give a reasonable estimate. Erik |