I'm using a PICKIT 3 to program a chip, how do I set the required CONFIG bits? I do not see an option menu as I get with PPP. Do I need to create a C code block at the very start of my FC and list the required Config bits?
If so, what is the correct format to put this information in ? I guess I need to specify the config word and then the state of each function?
For example my info gives the following for config word 1 High and Low (for PIC18F25K80);
Could someone give me an example of how I would select each option?
CONFIG1L (address:0x300000, mask:0x5D)
RETEN -- VREG Sleep Enable bit
RETEN = ON 0xFE Ultra low-power regulator is Enabled (Controlled by SRETEN bit).
RETEN = OFF 0xFF Ultra low-power regulator is Disabled (Controlled by REGSLP bit).
INTOSCSEL -- LF-INTOSC Low-power Enable bit
INTOSCSEL = LOW 0xFB LF-INTOSC in Low-power mode during Sleep.
INTOSCSEL = HIGH 0xFF LF-INTOSC in High-power mode during Sleep.
SOSCSEL -- SOSC Power Selection and mode Configuration bits
SOSCSEL = LOW 0xEF Low Power SOSC circuit selected.
SOSCSEL = DIG 0xF7 Digital (SCLKI) mode.
SOSCSEL = HIGH 0xFF High Power SOSC circuit selected.
XINST -- Extended Instruction Set
XINST = OFF 0xBF Disabled.
XINST = ON 0xFF Enabled.
CONFIG1H (address:0x300001, mask:0x08)
FOSC -- Oscillator
FOSC = LP 0xF0 LP oscillator.
FOSC = XT 0xF1 XT oscillator.
FOSC = HS2 0xF2 HS oscillator (High power, 16 MHz - 25 MHz).
FOSC = HS1 0xF3 HS oscillator (Medium power, 4 MHz - 16 MHz).
FOSC = EC3IO 0xF4 EC oscillator, CLKOUT function on OSC2 (High power, 16 MHz - 64 MHz).
FOSC = EC3 0xF5 EC oscillator (High power, 16 MHz - 64 MHz).
FOSC = RC 0xF6 External RC oscillator, CLKOUT function on OSC2.
FOSC = RCIO 0xF7 External RC oscillator.
FOSC = INTIO2 0xF8 Internal RC oscillator.
FOSC = INTIO1 0xF9 Internal RC oscillator, CLKOUT function on OSC2.
FOSC = EC2IO 0xFA EC oscillator, CLKOUT function on OSC2 (Medium power, 160 kHz - 16 MHz).
FOSC = EC2 0xFB EC oscillator (Medium power, 160 kHz - 16 MHz).
FOSC = EC1IO 0xFC EC oscillator, CLKOUT function on OSC2 (Low power, DC - 160 kHz).
FOSC = EC1 0xFD EC oscillator (Low power, DC - 160 kHz).
PLLCFG -- PLL x4 Enable bit
PLLCFG = OFF 0xEF Disabled.
PLLCFG = ON 0xFF Enabled.
FCMEN -- Fail-Safe Clock Monitor
FCMEN = OFF 0xBF Disabled.
FCMEN = ON 0xFF Enabled.
IESO -- Internal External Oscillator Switch Over Mode
IESO = OFF 0x7F Disabled.
IESO = ON 0xFF Enabled.
Any help appreciated,
J.