beginner in microC

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

beginner in microC

Postby syntium87 » Sun Apr 03, 2011 1:17 am

i'm new to programmg of pic...i'm using the pic16f84A...
after i program it n build the program..an error appear even the program build is successful..

the error is like this..

"the configuration bits in the file are invalid and may cause problems if programmed
Do you want to set them to their default value?
Please note that you will need to either rebuild the file or export memory again to correct the file
Config field :CP "

can anyone help me on this?? :(
syntium87
Novice
 
Posts: 27
Joined: Sun Apr 03, 2011 12:51 am

Re: beginner in microC

Postby Brian Griffin » Sun Apr 03, 2011 12:50 pm

syntium87 WROTE:i'm new to programmg of pic...i'm using the pic16f84A...
after i program it n build the program..an error appear even the program build is successful..

the error is like this..

"the configuration bits in the file are invalid and may cause problems if programmed
Do you want to set them to their default value?
Please note that you will need to either rebuild the file or export memory again to correct the file
Config field :CP "

can anyone help me on this?? :(


Apparently this error is a warning in the PICkit2. The microcontroller may run normally, but not of the desired configuration bits.

I assume you are using Mikroelektronika's MikroC for PIC here, so go to Project->Edit Project and modify the configuration there (Oscillator selection bits, blah blah blah drop down menu) as you wished.

Do not edit the right hand box which labelled "Configuration Registers". The drop down menus on your left are sufficient.

Also check "Release" on the build type.

If you modified the project, then rebuild it and download it into the PIC16F84(A).
PIC - UIC00B from Cytron (replacement for my broken PICKit 2), Pickit 3, MikroC for PIC
dsPIC - MikroC for dsPIC, mikromedia board (dsPIC33)
AVR - AVR Dragon
Parallax - Prop tool
User avatar
Brian Griffin
Enthusiast
 
Posts: 403
Joined: Mon Jan 17, 2011 9:36 am

Re: beginner in microC

Postby ober » Thu Apr 07, 2011 9:20 pm

Brian Griffin WROTE:Apparently this error is a warning in the PICkit2. The microcontroller may run normally, but not of the desired configuration bits.

I assume you are using Mikroelektronika's MikroC for PIC here, so go to Project->Edit Project and modify the configuration there (Oscillator selection bits, blah blah blah drop down menu) as you wished.

Do not edit the right hand box which labelled "Configuration Registers". The drop down menus on your left are sufficient.

Also check "Release" on the build type.

If you modified the project, then rebuild it and download it into the PIC16F84(A).

Brian, thanks for helping out. You are our guru for MikroC :D Appreciate it.
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm

Re: beginner in microC

Postby Brian Griffin » Fri Apr 08, 2011 11:43 am

ober WROTE:
Brian Griffin WROTE:Apparently this error is a warning in the PICkit2. The microcontroller may run normally, but not of the desired configuration bits.

I assume you are using Mikroelektronika's MikroC for PIC here, so go to Project->Edit Project and modify the configuration there (Oscillator selection bits, blah blah blah drop down menu) as you wished.

Do not edit the right hand box which labelled "Configuration Registers". The drop down menus on your left are sufficient.

Also check "Release" on the build type.

If you modified the project, then rebuild it and download it into the PIC16F84(A).

Brian, thanks for helping out. You are our guru for MikroC :D Appreciate it.


No problem. I have a couple of MikroC products at my own hand. Bought a MikroC for PIC compiler last month. It is well worth it. :)

Btw, just a suggestion, a better alternative for PIC16F84 is the PIC16F628A. It's cheaper and newer.
PIC - UIC00B from Cytron (replacement for my broken PICKit 2), Pickit 3, MikroC for PIC
dsPIC - MikroC for dsPIC, mikromedia board (dsPIC33)
AVR - AVR Dragon
Parallax - Prop tool
User avatar
Brian Griffin
Enthusiast
 
Posts: 403
Joined: Mon Jan 17, 2011 9:36 am


Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 6 guests