CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

first time using a PIC

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
pattousai



Joined: 23 Aug 2006
Posts: 37

View user's profile Send private message

first time using a PIC
PostPosted: Wed Aug 23, 2006 2:45 pm     Reply with quote

hi everybody.

i'm trying to do my first compilation with a PIC (12f629). So i write the following code, just to see how things go:

#include <12F629.h>
#use delay(clock=4000000)
#fuses INTRC_IO, NOWDT,PUT,BROWNOUT,NOMCLR

main(){
if( 2 + 2 == 4)
output_high(PIN_A0);

}


when i try to burn with IC-prog they return the error "value of the calibration of the oscillator". and ask me if i don't want to replace for the value in the file (don't know what this means). then, i just ignore that and click yes. but in the end they return the error "verification failed in the adress 0000h".

i'm using the ccsc compiler to compile (of course) and the IC-prog to burn in the pic.

well, sorry for the bad english and i hope for any help

thanks!!!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Aug 23, 2006 3:40 pm     Reply with quote

These two threads discuss the problem:
http://www.ccsinfo.com/forum/viewtopic.php?t=27234&highlight=icprog+osccal
http://www.ccsinfo.com/forum/viewtopic.php?t=12208&highlight=icprog+osccal

---------------
On the ic-prog website, it says:
Quote:
Added support for PIC 12F family.
IMPORTANT: Please read out your PIC 12F and store the file safely.
This way you have a backup of your OSCCAL and BANDGAP values!

http://www.ic-prog.com/main.html

http://www.rcgroups.com/forums/archive/index.php/t-247247.html

These are just a few of the links I found by using http://www.google.com
Do a search for these keywords: icprog OSCCAL
pattousai



Joined: 23 Aug 2006
Posts: 37

View user's profile Send private message

PostPosted: Fri Aug 25, 2006 3:52 pm     Reply with quote

ok, thanks. i will do some reading
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group