Okay, I finally upgraded to PBP PRO 2.60A and moving on to the PIC18's and starting a new project and learning curve.
The weapons of choice are the PIC18LF13K22 (downloaded the "melabs Programmer 4.32 Beta" file) and PIC18F2331.
Right out of the gate, I'm stuck at setting the configuration fuses for the PIC18LF13K22 since I can't locate the device definition INC file for the part in the INC folder to see my choices.
Here are default settings that I commented out to configure from the top of the program:
I tried to change the FOSC to INTOSC with the various guesses:Code:NOLIST ifdef PM_USED LIST "Error: PM does not support this device. Use MPASM." NOLIST else LIST LIST p = 18LF13K22, r = dec, w = -311, w = -230, f = inhx32 INCLUDE "P18LF13K22.INC" ; MPASM Header ; __CONFIG _CONFIG1H, _FOSC_HS_1H & _PLLEN_OFF_1H & _PCLKEN_ON_1H & _FCMEN_OFF_1H & _IESO_OFF_1H ; __CONFIG _CONFIG2H, _WDTEN_ON_2H & _WDTPS_512_2H ; __CONFIG _CONFIG4L, _STVREN_ON_4L & _LVP_OFF_4L & _BBSIZ_OFF_4L & _XINST_OFF_4L NOLIST endif LIST EEPROM_START EQU 0F00000h BLOCK_SIZE EQU 8
These only generated "Symbol not previously defined" errors.Code:@ __CONFIG _CONFIG1H, _FOSC_INTRC_1H @ __CONFIG _CONFIG1H, _INTRC_OSC_NOCLKOUT Also tried: CONFIG1H=%00001000
I read Melanie's excellent post on "Presetting Configs", searched the forum and melabs for more clues but nothing yet.
I found this info interesting but also useless to my problem since inputting values didn't work:
I would really appreciate some direction to make some progress with all this new stuff.PIC18F1XK22/LF1XK22
DS41357B-page 28 Advance Information © 2009 Microchip Technology Inc.
TABLE 6-3: PIC18F1XK22/LF1XK22 BIT DESCRIPTIONS
Bit Name Configuration
Words Description
FOSC<3:0> CONFIG1H Oscillator Selection bits
1111 = External RC oscillator, CLKOUT function on OSC2
1110 = External RC oscillator, CLKOUT function on OSC2
1101 = EC oscillator (low)
1100 = EC oscillator, CLKOUT function on OSC2 (low)
1011 = EC oscillator (medium)
1010 = EC oscillator, CLKOUT function on OSC2 (medium)
1001 = Internal RC oscillator, CLKOUT function on OSC2
1000 = Internal RC oscillator
0111 = External RC oscillator
0110 = External RC oscillator, CLKOUT function on OSC2
0101 = EC oscillator (high)
0100 = EC oscillator, CLKOUT function on OSC2 (high)
0011 = External RC oscillator, CLKOUT function on OSC2
0010 = HS oscillator
0001 = XT oscillator
0000 = LP oscillator
Thanks alot for all the past help.
Bookmarks