PDA

View Full Version : picbasic pro problem



Marin
- 12th April 2010, 11:43
HI to all!

I did worked with microcode studio and pbp allready, there was some time I didn't and now would like to get back to it again....

So I did take my PIC16F877, programmer and go to play, I did make simple code for 16F877:

DEFINE LCD_DREG PORTD
DEFINE LCD_DBIT 4
DEFINE LCD_RSREG PORTD
DEFINE LCD_RSBIT 1
DEFINE LCD_EREG PORTD
DEFINE LCD_EBIT 0
DEFINE LCD_BITS 4
DEFINE LCD_LINES 2
DEFINE LCD_COMMANDUS 2000
DEFINE LCD_DATAUS 50

pause 1000
LCDOUT $FE, $C0
LCDOUT $FE, 1, "Hello"
end

than I get MSCMonitor red line on MCSNext....don't know why?
I tried newer version os PBP, than everything is okay, except when I program PIC I don't get anything on LCD....

Now, everything is connected okay and definitions are okay....when I program PIC with HEX i have it works, I also have source code of that HEX, when I try to compile it, it works and I get HEX, but when I program PIC with that hex it don't work.....and when I compare HEX i have compiled and when I do compile now they are different.

Can you tell what would cause pbp compile program but it won't work....?

mehmetOzdemir
- 12th April 2010, 14:31
there will be many reasons.

i think the problem is about your config settings.

compare the orginal .hex file configurations with your new .hex file.