Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] GLCD 12864 - Busy check - Unrolled code

Status
Not open for further replies.

atferrari

Full Member level 4
Joined
Jun 29, 2004
Messages
237
Helped
7
Reputation
14
Reaction score
3
Trophy points
1,298
Location
Buenos Aires - Argentina
Activity points
1,996
glcd12864

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?
 

12864 busy

Hi,

We found that it worked best if tested straight after each data or command write.
The delay is minimal, although have not actually timed it.

Some web comment suggests that it only needs checking if the clock speed is over 12 meg, although have not tried that even though we were using 4 meg

For this project you really do need to keep your code in simple subroutines, when you output a screenfull of data it would not be practical 'unroll' the code.
We used 4 macros and 14 subroutines to the main code which outputed 8x16 lines of text and a full screen bitmap image.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top