I did have ANSEL=0 in the code which is shown below...compiled with PBP 2.60c. Is it possible my lcd is just defective?
Code:define osc 4 intcon=0 ansel=0 ;----[ Change these to match your LCD ]--------------------------------------- LCD2x8_CLK VAR gpio.0 ; Clock - Pin 1 LCD2x8_DAT VAR gpio.1 ; Data - Pin 2 LCD2x8_E VAR gpio.2 ; Enable - Pin 5 INCLUDE "PC064PYL.pbp" ; *** Include MUST be AFTER LCD Pin assignments **** ;----[ Your Main program starts here ]---------------------------------------- LoopCount VAR WORD Main: LCDOUT $FE,$80,"Hello,",$FE,$C0,"From DT!" PAUSE 3000 LCDOUT $FE,1 ; clear screen FOR LoopCount = 0 TO 65535 LCDOUT $FE,$80, IDEC LoopCount LCDOUT $FE,$C0, IHEX4 LoopCount PAUSE 100 ; Slow it down, if you want NEXT LoopCount GOTO Main





Bookmarks