Yep I looked at it last night. I might need to add a resistor. On page 33 though it says it has weak internal pullups unless its an output pin. However that doesnt solve the LCD issue?
I tried removeing all the ADC and output pin code, and just leave it barebones with the LCD code and LCD still doesnt work, weird.
I am not sure what it is as the code is pretty simple.
Code:
DEFINE LCD_DREG PORTC ' LCD Data bits on PORTD
DEFINE LCD_DBIT 2 ' PORTD starting address
DEFINE LCD_RSREG PORTC ' LCD RS bit on PORTD
DEFINE LCD_RSBIT 0 ' LCD RS bit address
DEFINE LCD_EREG PORTC ' LCD E bit on PORTD
DEFINE LCD_EBIT 1 ' LCD E bit address
DEFINE LCD_BITS 4 ' LCD in 4-bit mode
DEFINE LCD_LINES 4 ' LCD has 4 rows
'TRISA = %00000011
TRISC = 0 ' PORTC is output
LCDOUT $FE, 1 ' Clear LCD
PAUSE 500 ' Wait 0.5sec for LCD to initialize
AGAIN:
LCDOUT $FE, 2
LCDOUT $FE, $80
LCDOUT "Set Temp = "
LCDOUT $FE, $C0
LCDOUT "Temp = "
pause 100
GOTO AGAIN ' Repeat
END
Problem is its a removable PIC, LCD is tied to board with a premade cable so I cant change pins from LCD to PORTC
Henrik, I saw the chart on page
Bookmarks