LCDWrite Problems

Coding and general discussion relating to the compiler

Moderators: David Barker, Jerry Messina

Post Reply
CharlieM
Registered User
Registered User
Posts: 211
Joined: Wed Oct 10, 2007 12:05 am

LCDWrite Problems

Post by CharlieM » Wed Oct 10, 2007 12:19 am

Hi all,

Seems I know most here from the PDS forum.Anyway I am trying the demo and I like it.I am trying to write to a lcd and so far its not working.Here is the code:

Code: Select all

Device = 18F8520
Clock = 10

// some LCD options...
#option LCD_DATA = PORTD.4
#option LCD_RS = PORTD.2
#option LCD_EN = PORTD.3

// import LCD library...
Include "LCD.bas" 
Include "utils.bas"

// program start...
SetAllDigital
Cls
WriteAt(1,1,"Hello World")
Its taken from the example. Note that I have the LCD on PortD and all I seeis PortB going on and off as if I had initated PortB for the LCD and the LCD does'nt clear or anything. it still has some numbers from when the pic was programmed with someother code.Can someone shed some light on this?Thanks.
Running version 2.2.4.0 ICC 1.2.1.0
Regards CharlieM

CharlieM
Registered User
Registered User
Posts: 211
Joined: Wed Oct 10, 2007 12:05 am

Post by CharlieM » Wed Oct 10, 2007 12:32 am

Nevermind.Its seems to be working now. :shock:
Running version 2.2.4.0 ICC 1.2.1.0
Regards CharlieM

Post Reply