Re: Configuration of 18F268x
Are you writing in assembly language or PicBasic Pro?
If PicBasic Pro, you should not include the MPASM header.
Since MCLRE is ON, do you have a pull-up resistor on the MCLR pin?
Re: Configuration of 18F268x
Quote:
Originally Posted by
Darrel Taylor
Are you writing in assembly language or PicBasic Pro?
If PicBasic Pro, you should not include the MPASM header.
Since MCLRE is ON, do you have a pull-up resistor on the MCLR pin?
I am writing the program in PicBasic Pro... the above [code] is from the PBP file in my C drive.
Yes I have a pull up resistor/diode on my MCLR
Re: Configuration of 18F268x
Oh, you're modifying the 18F2680.inc file in your PBP folder, of an older version of PBP.
_OSC_RCIO_1H is for an external RC oscillator.
Do you have a resistor/capacitor circuit on your OSC pin?
Or did you really want the Internal oscillator?
_OSC_IRCIO67_1H
You should also have _XINST_OFF_4L since PBP cannot use the extended instruction set.
Try them like this ...
Code:
__CONFIG _CONFIG1H, _OSC_IRCIO67_1H & _FCMEN_OFF_1H & _IESO_OFF_1H
__CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_512_2H
__CONFIG _CONFIG3H, _PBADEN_OFF_3H & _LPT1OSC_OFF_3H & _MCLRE_ON_3H
__CONFIG _CONFIG4L, _STVREN_ON_4L & _LVP_OFF_4L & _BBSIZ_1024_4L & _XINST_OFF_4L
Don't forget to set the OSCCON register or it will be running at the default 1Mhz.
Re: Configuration of 18F268x
Thank you, Thank you, & Thank you! Worked like a charm, I just moved some ports around and it took right off.
Could you help me out with the Config fuses for the 18F2682 and 18F2685 while we are at it? :rolleyes:
Re: Configuration of 18F268x
I think they will be the same.
But you might want to verify them in the bottom of the P18F2682.inc and P18F2685.inc files in your C:\Program Files\Microchip\MPASM Suite folder.
C:\Program Files (x86)\Microchip\MPASM Suite - for 64-bit systems.
Re: Configuration of 18F268x
Ah yes...Nice to have the elbow room of 96K (program memory). At least this way I can start big and choose the correct size after I am done. Thanks again for your help.
I have been getting better at finding just such information in the 400+ page data sheets:rolleyes: