Dave i tried your code from this thread:
http://www.picbasic.co.uk/forum/showthread.php?t=13981
and it wont even compile, gives me then errors..
ken
Dave i tried your code from this thread:
http://www.picbasic.co.uk/forum/showthread.php?t=13981
and it wont even compile, gives me then errors..
ken
What are the errors?
Dave
Always wear safety glasses while programming.
here they are:
Executing: "C:\PBP2.60\PBPMPLAB.BAT" -ampasmwin -k# -p18F4550 "both.bas"
Executing: "C:\PBP2.60\PBPW.EXE" -ampasmwin -k# -p18F4550 "both.bas"
PICBASIC PRO(TM) Compiler 2.60A, (c) 1998, 2010 microEngineering Labs, Inc.
All Rights Reserved.
ERROR: Unable to execute mpasmwin.Error[118] C:\PBP2.60\BOTH.ASM 186 : Overwriting previous address contents (0000)
Error[118] C:\PBP2.60\BOTH.ASM 186 : Overwriting previous address contents (0001)
Error[118] C:\PBP2.60\BOTH.ASM 195 : Overwriting previous address contents (0000)
Error[118] C:\PBP2.60\BOTH.ASM 195 : Overwriting previous address contents (0001)
Error[118] C:\PBP2.60\BOTH.ASM 204 : Overwriting previous address contents (0002)
Error[118] C:\PBP2.60\BOTH.ASM 204 : Overwriting previous address contents (0003)
Error[118] C:\PBP2.60\BOTH.ASM 213 : Overwriting previous address contents (0004)
Error[118] C:\PBP2.60\BOTH.ASM 213 : Overwriting previous address contents (0005)
Error[118] C:\PBP2.60\BOTH.ASM 222 : Overwriting previous address contents (0006)
Error[118] C:\PBP2.60\BOTH.ASM 222 : Overwriting previous address contents (0007)
Skipping link step. Not all sources built successfully.
BUILD FAILED: Sun Feb 20 01:22:40 2011
Dave
Always wear safety glasses while programming.
I tried it both ways MPASM and PM, and both of them do not work. I cant even compile.
I even tried to compile this program:http://melabs.com/samples/LABXUSB-18F4550/USBMOUSE.htm
I can compile if I just use in the overhead: DEFINE OSC 20 and put an external 20mhz crystal, it is somewhat working, but is not keeping the timer properly and is not showing all the letter on the LCD.
Using:
DEFINE OSC 8
OSCCON = %01110000
only as the overhead and compiling:
Executing: "C:\PBP2.60\PBPMPLAB.BAT" -ampasmwin -k# -p18F4550 "both.bas"
Executing: "C:\PBP2.60\PBPW.EXE" -ampasmwin -k# -p18F4550 "both.bas"
PICBASIC PRO(TM) Compiler 2.60A, (c) 1998, 2010 microEngineering Labs, Inc.
All Rights Reserved.
Loaded C:\PBP2.60\both.COF.
BUILD SUCCEEDED: Sun Feb 20 10:22:55 2011
but the LCD is only showing black squares...
K
That looks like a timing issue or maybe a problem with the LCD contrast. That would be my guess. To check that the timing is correct I would try to blink an LED with let's say a 1 sec on and off interval. For the contrast issue I would use a pot to see if there are any changes. Are you using the same voltage with the PIC16F887 and with the PIC18F4550?
Robert
"No one is completely worthless. They can always serve as a bad example."
Anonymous
Bookmarks