If you were getting compile errors regarding UCON, then the USB library is probably being included without you realizing it. Your program most likely compiles to a size that seems much larger than it should.
If the file you are compiling is in the same folder as another USB project, then the USB library may be included automatically.
Or if the 18F2455.bas in the PBP folder has been modified for USB it will do the same thing from any folder.
If it is in the same folder as another USB project? Move it to it's own separate folder.
If it's already in it's own folder? Check the 18F2455.bas file in the PBP folder. You should see this in the file...The PBPPIC18 line should NOT be commented, and the PBPUSB18 line should be commented.Code:BANKA $0000, $005F BANK0 $0060, $00FF BANK1 $0100, $01FF BANK2 $0200, $02FF BANK3 $0300, $03FF BANK4 $0400, $04FF BANK5 $0500, $05FF BANK6 $0600, $06FF BANK7 $0700, $07FF 'EEPROM $F00000, $F000FF LIBRARY "PBPPIC18" 'LIBRARY "PBPUSB18"
If you are using PBPL, then look in the 18F2455.BAL file instead.
hth,




Bookmarks