hi skinmask
ive done as what u advice me..adjusting the contrast value of the lcd..still..it wont work..either it wont display anything or the sreen slowly turn into black box..so..now im looking for its start time as u say it might have not enough time..so..can u advice on how to solve its time..ive put of LCD_INITMS 5000 and several pause value 5000..still i cant work..
sory for the misunderstanding..what i mean for the screen slowly turn into black row is when im trying to adjust the pot value which is the lcd contrast value..as ive learn from the online tutorial, it mention to adjust the pot for the contrast by turn off, adjust and turn it on back..so the result is the box become darkest every time im increase the pot value... LCD_INITMS? this define was advice to me by some other expert people like u..which use to give some delay during initialise. even i never see it on any tutorial but amazingly its been recognize by microcode..n as an addition he had advice me that by compiling my source using Micro, i have to chop off the ADC section.
Last edited by sixty9sandals; - 28th March 2007 at 22:32.
Hi sixty9sandals,
Did you ground the RW pin ?
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Nah, Port D is what everybody uses by default unless they've got some reason to use another port.
Which LCD module are you using, part number?
And is this correct:
LCD D0-D7 on PortD.0-PortD.7 (make sure you've got the order correct 0-0, 1-1, 2-2, etc)
LCD A0 on PortC.2
LCD E on PortC.3
LCD R/W grounded
You aren't setting C.2 and C.3 to outputs directly, but PBP should handle that for you.
You did say you were using the 16F877. Are you sure your programmer is set for the 16F877 and not the F877A? Can you rewrite the code and make an LED blink or anything. Who knows...maybe the thing isn't even running.
Bookmarks