Sorry, I will have to check into that other file. I need to look at the differences more to see what's going on. But this should get you going (with caps only). Use the attached include.LCD_3310.zip
Code:
DEFINE LOADER_USED 1
DEFINE RESET_ORG 1000h ' For Microchip USB Bootloader
OSCTUNE.6 = 1 'turn on PLL
DEFINE OSC 48
include "modedefs.bas"
include "LCD_3310.inc"
TRISD = 0
PORTD.0 = 1 'turn on g sensor
PORTD.1 = 0 'select scale for g sensor
PORTD.2 = 0 'select scale for g sensor
TRISA = %00000111 'set porta.0, 1, and 2 as inputs
TRISB = 0
TRISC = 0
CM1CON = 7
CM2CON = 7
TRISC = 0
TRISE = 0
ADCON0 = %00000001
ADCON1 = %00000010
@ PrintStr 0,0, "OK, I LOVE JUST BEING ABLE TO PRINT ON THE LCD SCREEN. BLINKING AN LED IS ALSO NICE."
END
Bookmarks