Thank you very much MikeTamu i just assumed that PBP took care of all that for me as there is no reference to it in the pbp manual.
Thanks again.
Thank you very much MikeTamu i just assumed that PBP took care of all that for me as there is no reference to it in the pbp manual.
Thanks again.
I am having similar problems trying to get an LCD working on EasyPIC3 from Mikroelectronika Board using PBP and 18F452 MCU. Although i can get the LED to blink , I cannot get the LCD to work. Can you help.
EasyPIC3 Development Board Configuration -
D4 - RB4
D5 - RB5
D6 - RB6
D7 - RB7
RS - RB2
E - RB3
RW - GND
My Code:
DEFINE OSC 8
' HARDWARE DEFINES
'-----------------------------------------------------------------
' Define LCD pins
DEFINE LCD_BITS 4
DEFINE LCD_LINES 2
DEFINE LCD_DREG PORTB
DEFINE LCD_DBIT 4
DEFINE LCD_RSREG PORTB
DEFINE LCD_RSBIT 2
DEFINE LCD_EREG PORTB
DEFINE LCD_EBIT 3
'-----------------------------------------------------------------
TRISA = %111111 'INITIALIZE PORT DIRECTIONS
TRISB = %00000000
TRISC = %10101001
TRISD = %00000011
TRISE = %00000111
Adcon1 = 7 ' Set PORTA DIGITAL
INTCON2.7=1 ' DISABLE Pull-Up's
'-----------------------------------------------------------------
PAUSE 500
Lcdout $fe , 1 , "EasyPIC3 DEV"
LCDOut $FE,$C0, "Board v1A"
PAUSE 2000
END
Be sure you set HS_OSC fuse before programming your PIC
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Hello,
Thanks for coming to my help once again, yes the Crystal fuse is set properly as i have a small led blink rotuine after this display , which works properly.
The LCD works with MikroBasic Compiler, But does not come on with PBP.
Because you are running at 8MHz, try including one or both of these and increasing the times as shown here
DEFINE LCD_COMMANDUS 4000
DEFINE LCD_DATAUS 100
Paul Borgmeier
Salt Lake City, UT
USA
__________________
Hi Steve,
Your inputs in a different thread solved my problem. The code was OK just that LVP fuse was enabled.
Just disabled it and there I could see what I had to on my LCD.
Thanks.
regards
GOOD!
Kind of thing to remember i guess!
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks