PDA

View Full Version : PBP and win7



muddy0409
- 25th July 2011, 13:32
Is there a simple explanation on getting 2.60 working properly under win7 64 bit?
I'm having a devil of a time.
I am using MPASM, but keep on getting all sorts of errors, even with the LCD defines straight out of the 2.60 manual.
Very infuriating.
As always,
Thanks in advance.

Darrel Taylor
- 25th July 2011, 14:51
The simple explanation is that PBP works fine with Windows-7.

We would need to know what errors you are getting to give the full explanation.

muddy0409
- 25th July 2011, 18:38
G'day Daryl.
Had another play around with this damn thing and this is what's going on:

The LCD stuff, straight out of 2.60 manual, with Trisb and Trisc set above the LCD part.
A small LCD OUT couple of line after the LCDOUT stuff. as below:


trisb = %00000000
trisc = %00000000



Define LCD_DREG PORTc ' Port for LCD Data
Define LCD_DBIT 0 ' Use upper 4 bits of Port
Define LCD_RSREG PORTb ' Port for RegisterSelect (RS) bit
Define LCD_RSBIT 0 ' Port Pin for RS bit
Define LCD_EREG PORTb ' Port for Enable (E) bit
Define LCD_EBIT 1 ' Port Pin for E bit
;DEFINE LCD_RWREG PORTb (commented out as not using RW)
;DEFINE LCD_RWBIT 1 ( ditto )
Define LCD_BITS 4 ' Using 4-bit bus
Define LCD_LINES 2 ' Using 2 line Display
Define LCD_COMMANDUS 2000 ' Command Delay (uS)
Define LCD_DATAUS 50 ' Data Delay (uS)


pause 1000
lcdout $fe,1,"Off Hook "


Hit F9, seems that MPASM starts and the black window opens
goes straight back to the MCS window with the following in the bottom half of the screen. (These will NOT copy and paste into this answer, or anything else for that matter.

There are 11 errors:

Error[113] c:\pbp\pbppic14.lib 2934:Symbol not previously defined(PORTb)
Error[113] c:\pbp\pbppic14.lib 2935:Symbol not previously defined(PORTb)
Error[113] c:\pbp\pbppic14.lib 2939:Symbol not previously defined(PORTb)
Error[113] c:\pbp\pbppic14.lib 2940:Symbol not previously defined(PORTb)
Error[113] c:\pbp\pbppic14.lib 2950:Symbol not previously defined(PORTc)
Error[113] c:\pbp\pbppic14.lib 3018:Symbol not previously defined(PORTb)
Error[113] c:\pbp\pbppic14.lib 3036:Symbol not previously defined(PORTb)
Error[113] c:\pbp\pbppic14.lib 3060:Symbol not previously defined(PORTb)
Error[113] c:\pbp\pbppic14.lib 3067:Symbol not previously defined(PORTc)
Error[113] c:\pbp\pbppic14.lib 3075:Symbol not previously defined(PORTc)
Error[113] c:\pbp\pbppic14.lib 3076:Symbol not previously defined(PORTb)

(these have been manually typed as will not copy & paste)

Using 16F886 for one of those Chipino Pic Arduino things.
It's enough to make you wanna start using Great Cow Compiler (almost)

All of this stuff was installed last week from a 2.60 update disk.

Have just changed to 16F88 with same result.
Also have had trouble with @DEVICE settings as well, but one thing at a time. I noticed that 2.60 simply will not accept @DEVICE lines.

So it does seem to me that MPASM is starting up OK , just not doing anything?

Regards,
Peter Moritz

PS I bet it is something simple that I am doing wrong (as always)

Darrel Taylor
- 25th July 2011, 18:41
MPASM is case sensitive.

PORTb should be PORTB

muddy0409
- 25th July 2011, 18:48
MPASM is case sensitive.

PORTb should be PORTB


Sh1t, you're bloody kidding me....

Oh..No you're not..
That's it!!

Thanks SO much, I can paste some of my hair back now!

mister_e
- 26th July 2011, 15:10
Thanks SO much, I can paste some of my hair back now!

Hairs?
http://branchetonsonotone.com/wp-content/2009/09/chauve.single_width_240.jpg
Already heard of... but never been able to find some

---===:D===---