you may need to add a LCD start up delay. Something between 500mSec to 2Sec in worst case.
Be sure that your PIC don't have any Analog stuff on the pins you're using. If so, you must disable it.
That could be the issue
you may need to add a LCD start up delay. Something between 500mSec to 2Sec in worst case.
Be sure that your PIC don't have any Analog stuff on the pins you're using. If so, you must disable it.
That could be the issue
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
MY code is:Originally Posted by mister_e
DEFINE LCD_DREG PORTB 'Selection of the port B
DEFINE LCD_DBIT 0 'Selection one RB0 with RB3
DEFINE LCD_RSREG PORTA 'RS on port A
DEFINE LCD_RSBIT 2 'RS on RA2
DEFINE LCD_EREG PORTA 'E on port A
DEFINE LCD_EBIT 3 'E on RA3
DEFINE LCD_BITS 4 'Mode 4 bits
DEFINE LCD_LINES 2 '2 lines
ADDR1=$C2
PAUSE 100
LCDOUT $FE, 1 ' Clear LCD screen
LCDOUT "TUNER VHF - UHF" ' post text during 2 second
LCDOUT $FE,$C0
LCDOUT " LESVOS "
PAUSE 2000
EEPROM 0,[$0,$0]
How to add start up delay for the LCD;
It REALLY is as simple as what Mister_E said... where you have your "pause 100" command at the moment, change it to "pause 500". This SHOULD allow enought time for the LCD to settle. If this still does not help, change it to "Pause 2000" and try that. If that still does not work, your problem is unlikely to be LCD settle time. Post back if these do not workHow to add start up delay for the LCD;
Regards
Rob
also we don't know your PIC model, it can have analog stuff on any port. If they're not disabled .. it will never work.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
on PIC16F628a you'll have to disable the analog comparator
CMCON=7
On both you should make sure the LVP fuse is disabled before programming.
If your Crystal is >4MHZ be sure the OSC fuse is set to HS AND you have the according DEFIN at the top of your code.
Be sure the MCLR pin is tie to somewhere
etc
etc
The blink program idea is still remain so far![]()
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks