First we need some info....What chip body? What compiler version? Is it a 20Mhz crystal or resonator?
Nick
First we need some info....What chip body? What compiler version? Is it a 20Mhz crystal or resonator?
Nick
18f4550 is the chip, 40 pin dip. I'm using PicBasic Pro 2.46. And it's a quartz crystal.
ok, cool, thaught i'd ask a stupid question...
i used the 18F4550 myself and i also use the same OSC so, i'll run through my settings, however, i'm using winpic800 with a JDM programmer...
OSC: HS oscillator, PLL enabled, HS used by USB
CPU system clock: 96MHz PLL dev 5
Oscilator selection: Devide by 5 (20MHz input)
Vbor: 2.7V
Brown-out restet: Enabled in hardware only
Watchdog: 1:32768
FCMEM enabled
IESO enabled
WDTEN enabled
PWRTEN disabled
CCP2MX enabled
PBADEN enabled
LPT1OSC enabled
MCLRE disabled
DEBUG disabled
STVREN enabled
LVP enabled
ICPORT enabled
XINST enabled
USBPLL enabled
VREGEN enabled
All CP's are disabled
All EBT's disabled
All WRT's disabled
Acording to oshonsoft's pic18 simulator IDE the BASIC code for those options are asfollows...
Hopefully, some of that will help...Code:Define CONFIG1L = 0x3C Define CONFIG1H = 0xCE Define CONFIG2L = 0x17 Define CONFIG2H = 0x1F Define CONFIG3L = 0x00 Define CONFIG3H = 0x07 Define CONFIG4L = 0xE1 Define CONFIG4H = 0x00 Define CONFIG5L = 0x0F Define CONFIG5H = 0xC0 Define CONFIG6L = 0x0F Define CONFIG6H = 0xE0 Define CONFIG7L = 0x0F Define CONFIG7H = 0x40
if not, can you post a screen shot of your programmers config options screen?
Thanks
Hmm, I was hoping I wouldn't have to learn what a .asm file was...![]()
This has nothing to do with ASM (assembler)
Take a screen cap of your programmer screen with all your osc config options on and i'll look see if you have anything set wrong...
:edit
I've just sorted out my fuse options for use with MPASM... Been meaning to do them but couldn't previously be botherd...
Now, assuming your using MPASM for compiling this needs to be the first line in your BAS file...
The list of fuse options avaliable for MPASM can be found in C:\Program Files\Microchip\MPASM SuiteCode:@ __config _PLLDIV_5_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_2_1L & _FOSC_HSPLL_HS_1H & _FCMEN_ON_1H & _IESO_ON_1H & _PWRT_ON_2L & _BOR_ON_2L & _BORV_2_2L & _VREGEN_ON_2L & _WDT_ON_2H & _WDTPS_32768_2H & _MCLRE_OFF_3H & _LPT1OSC_ON_3H & _PBADEN_OFF_3H & _CCP2MX_ON_3H & _STVREN_OFF_4L & _LVP_OFF_4L & _ICPRT_OFF_4L & _XINST_ON_4L & _DEBUG_OFF_4L & _CP0_OFF_5L & _CP1_OFF_5L & _CP2_OFF_5L & _CP3_OFF_5L & _CPB_OFF_5H & _CPD_OFF_5H & _WRT0_OFF_6L & _WRT1_OFF_6L & _WRT2_OFF_6L & _WRT3_OFF_6L & _WRTB_OFF_6H & _WRTC_OFF_6H & _WRTD_OFF_6H & _EBTR0_OFF_7L & _EBTR1_OFF_7L & _EBTR2_OFF_7L & _EBTR3_OFF_7L & _EBTRB_OFF_7H
The INC file for the pic contains the fuse options, so for the 18F4550 you need to open the file C:\Program Files\Microchip\MPASM Suite\P18F4550.INC in notepad or Microcode studio or with MPLAB...
If you don't know what the options are for, thats where searching the datasheet comes in...
Last edited by comwarrior; - 22nd October 2009 at 20:49.
Bookmarks