I just d/l the compiler (SE) to do a evaluation and I can say it looks very
promising. I like the speed and the optimization compared to others.
The first demo I tried out from your sample folder was the GLCD-Demo.
Using a BIGPIC4, I was able to get the demo working in no time using
a 18F8520 w/10MHz (HS - no PLL). The same prg was working with 40MHz as well. The created HEX file was 1/3 compared to a 'different' software I used for comparison.
After switching to a 18F8722 (w/10MHz - no PLL) the display came up for about 10 seconds and went blank. The same happens with 40MHz PLL enabled. The prg loop's about 15 times before it dies.
Following the modified code for the BIGPIC4:
Code: Select all
// if device and clock are omitted, then the compiler defaults to
// 18F452 @ 20MHz - they are just used here for clarity...
//Device = 18F8520
Device = 18F8722
Clock = 10
//
//(PORTJ, 0, 1, 2, 3, 5, 4, PORTH) >>> modified for BIGPIC4
// cs1, cs2, rs, rw, rst, en
//
#option GLCD_DATA = PORTH // data port
#option GLCD_RS = PORTJ.2 // RS pin
#option GLCD_EN = PORTJ.4 // EN pin
#option GLCD_RW = PORTJ.3 // RW pin
#option GLCD_CS1 = PORTJ.1 // chip select
#option GLCD_CS2 = PORTJ.0 // chip select
#option GLCD_INVERT_CS = true // invert CS lines...
Include "GLCD.bas"
Include "graphics.bas"
Include "Bitmaps.bas"
ADCON1 = $0F // PORTE as digital (GLCD)
CMCON = CMCON Or $07 // turn off comparators
GLCD.Cls
GLCD.SetImage(49,51,BtnOK)
GLCD.SetImage(89,51,BtnCancel)
While true
GLCD.SetImage(4,2,BatteryImage, cmXOR)
DelayMS(500)
GLCD.SetImage(4,2,BatteryImage, cmXOR)
DelayMS(500)
Wend
Thanks, Matt