Re: PBP and win7
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)
Last edited by muddy0409; - 25th July 2011 at 18:40.
Peter Moritz.
Up the bush, Western Plains,
New South Wales,
Australia.
Bookmarks