Configuration Bits

General discussion forum - for all that doesn't fit in any other category.
Post Reply
HoH
Posts: 2
Joined: Thu Nov 05, 2009 1:10 pm

Configuration Bits

Post by HoH »

Hi,
I have assembled floppy sd version. Now I am trying to program PIC18F4525 through PickKit2 clone and MPLAB IDE. I am little confused with configuration bits. If I take option "Configuration bits set in code" the programmed PIC is not working (black LCD display) Here are the config bits for soft ver. 0.0.6.0.:
OSC - HS-PLL enabled freq=4xFosc1
FCMEN - Dis.
IESO - Dis.
PUT - Ena.
BODEN - Ena. in hardware, SBOREN disabled
BODENV -2.0V
WDT - Dis. controlled by SWDTEN bit
WDTPS - 1:32768
CCP2MUX - RC1
PBADEN - PORT <4:0> cof. as analog inputs on RESET
LPT1OSC - Dis.
MCLRE - MCLR Disabled, RE3 Enabled
STVR - Ena.

rest fields are disabled.

If I change IESO filed for Enabled, PIC is alive, but refresh rate on LCD is very slow (about 6sec).

Any suggestion how to solve this probllem will be helpful.

Thanks in advance

HoH

Jeff
Site Admin
Posts: 8093
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: Configuration Bits

Post by Jeff »

HoH wrote:Hi,
I have assembled floppy sd version. Now I am trying to program PIC18F4525 through PickKit2 clone and MPLAB IDE. I am little confused with configuration bits. If I take option "Configuration bits set in code" the programmed PIC is not working (black LCD display) Here are the config bits for soft ver. 0.0.6.0.:
OSC - HS-PLL enabled freq=4xFosc1
FCMEN - Dis.
IESO - Dis.
PUT - Ena.
BODEN - Ena. in hardware, SBOREN disabled
BODENV -2.0V
WDT - Dis. controlled by SWDTEN bit
WDTPS - 1:32768
CCP2MUX - RC1
PBADEN - PORT <4:0> cof. as analog inputs on RESET
LPT1OSC - Dis.
MCLRE - MCLR Disabled, RE3 Enabled
STVR - Ena.

rest fields are disabled.

If I change IESO filed for Enabled, PIC is alive, but refresh rate on LCD is very slow (about 6sec).

Any suggestion how to solve this probllem will be helpful.

Thanks in advance

HoH
This means that your 10Mhz quartz is not working. check it, and its 2 capacitors.
Keep the original fuse configuration.

HoH
Posts: 2
Joined: Thu Nov 05, 2009 1:10 pm

Re: Configuration Bits

Post by HoH »

Thanks Jeff,
That's right. Quartz was broken.
Thanks for help and great project.
HoH

Post Reply