I tried the glcd demo from the repo on PICsimulatorIDE but its just
dispalying junk. I see an error in the simulator with the following message
"---------------------------
PIC Simulator IDE
---------------------------
New command or data received while graphical LCD was busy.
Graphical LCD will not behave properly and probably display some garbage
data.
Appropriate delay interval in your program should be increased.
--------------------------
I would also like to know what GLCD_DI is .
The code that i tested is given below
include 16f877a
pragma target clock 20_000_000 -- xtal frequency
pragma target OSC hs
pragma target LVP disabled
pragma target WDT disabled
;@jallib section glcd
-- GRAPHIC_LCD IO definition
var volatile byte GLCD_DATAPRT is portd
var volatile byte GLCD_DATAPRT_DIR is portd_direction
var volatile bit GLCD_RW is pin_b4
var volatile bit GLCD_CS1 is pin_b0
var volatile bit GLCD_E is pin_b5
var volatile bit GLCD_DI is pin_b2
var volatile bit GLCD_RST is pin_c0
var volatile bit GLCD_CS2 is pin_b1
var volatile bit GLCD_RW_DIRECTION is pin_b4_direction
var volatile bit GLCD_CS1_DIRECTION is pin_b0_direction
var volatile bit GLCD_E_DIRECTION is pin_b5_direction
var volatile bit GLCD_DI_DIRECTION is pin_b2_direction
var volatile bit GLCD_RST_DIRECTION is pin_c0_direction
var volatile bit GLCD_CS2_DIRECTION is pin_b1_direction
include print
include delay
include glcd_ks0108
include glcd_common
lcd_init()
var byte x, y, char;
char = 32
forever loop
delay_100ms(5)
for 9 using y loop
for 25 using x loop
lcd_write_char(y,x,char)
char = char + 1
if (char > 122) then char = 32 end if
end loop
end loop
end loop
Sunish
--
You received this message because you are subscribed to the Google Groups
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/jallib?hl=en.