Quote Originally Posted by skimask View Post
Then try this:
Code:
DEFINE LCDCOMMAND_US 5000
DEFINE LCDDATA_US 255
i var word : trisb.7 = 0 : portb.7 = 1
pause 1000 : lcdout $fe , 1 : pause 1000
for i = 0 to 10000 : lcdout $fe , $80 , DEC5 i : pause 500 :next i
END
EDIT: Just looked at your config settings. I've always found it helpful to have the powerup timer on, no matter what PIC I've used.
And even though you aren't using it, turn off the watchdog timer.

Still doing the same thing to me. I copied the exact code here and pasted it into an empty program. Tried with the old config settings, and the new one's suggested here. Very strange. Appreciate all of the ideas, so far, I just got a weird one here. Isn't there a file somehwre that has settings in it for different PIC's? Maybe I need to change something in that?


Oh, here are the defines that I've been using in the full program:

DEFINE LCD_DREG PORTA 'Define PIC port used for LCD Data lines
DEFINE LCD_DBIT 0 'Define first pin of portb connected to LCD DB4POTSETTTT
DEFINE LCD_RSREG PORTA 'Define PIC port used for RS line of LCD
DEFINE LCD_RSBIT 4 'Define Portb pin used for RS connection
DEFINE LCD_EREG PORTB 'Define PIC port used for E line of LCD
DEFINE LCD_EBIT 3 'Define PortB pin used for E connection
DEFINE LCD_BITS 4 'Define the 4 bit communication mode to LCD
DEFINE LCD_LINES 2 'Define using a 2 line LCDRefTime
DEFINE LCD_COMMANDUS 2500 'Define delay time between sending LCD commands
DEFINE LCD_DATAUS 1200 'Define delay time between data sent.

Gary