I am about to start writing code in Assembler (PIC 18F) to handle the basics of a GLCD (definitely trying to reinvent the wheel, which, by the way, I found nowhere up to now).
Two basic questions:
a) Given the need to check the busy flag, is it better to do it immedately after writing and leave with the "homework done" or leave it unchecked and do it prior writing the next time? (Second option gives the chance to find the BUSY flag already low reducing the waiting time. Am I right?)
b) For the different basic routines is it better to write them totally unrolled or make them compact using as much as possible CALL / BRA instructions?
Two basic questions:
a) Given the need to check the busy flag, is it better to do it immedately after writing and leave with the "homework done" or leave it unchecked and do it prior writing the next time? (Second option gives the chance to find the BUSY flag already low reducing the waiting time. Am I right?)
b) For the different basic routines is it better to write them totally unrolled or make them compact using as much as possible CALL / BRA instructions?