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

12F629 Problem?

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



Joined: 13 Sep 2003
Posts: 87

View user's profile Send private message

12F629 Problem?
PostPosted: Thu Apr 15, 2004 9:05 pm     Reply with quote

Hi,

I got a problem with my 12F629?

1] I download my code... just simply make the LED on/off every 500ms.
2] I press the run button or remove the downloader such that I can see the effect of the LED blinking.

3] Next I made another program using timer0 that will a timer interrupt for my blinking LED.
4] I download it again...
5] the LED is not blinking this time...

so, to check...
I decided to download again my blinking LED code- the first one but to no avail- the LED would not blink anymore...

I got a new 12F629 and download the second code and LED is blinking using timer0 interrupt.

Anybody have experience this? I need your comments please...

Thnx
Guest








PostPosted: Thu Apr 15, 2004 11:48 pm     Reply with quote

If you erased the code at ROM address 0x3FF, then the entire
program might not work. Maybe that's what is happening.

See this article by Mr. Hamlett on how to fix this problem:
http://www.pic-c.com/forum/general/posts/9234.html
ritchie



Joined: 13 Sep 2003
Posts: 87

View user's profile Send private message

PostPosted: Thu Apr 15, 2004 11:56 pm     Reply with quote

Anonymous wrote:
If you erased the code at ROM address 0x3FF, then the entire
program might not work. Maybe that's what is happening.

See this article by Mr. Hamlett on how to fix this problem:
http://www.pic-c.com/forum/general/posts/9234.html



Sad The link doesn't work!!!! Crying or Very sad

Anyone who can provide me this info regarding this article?

Thnx
Prezydent
Guest







just search for topic
PostPosted: Fri Apr 16, 2004 12:12 am     Reply with quote

http://www.ccsinfo.com/forum/viewtopic.php?t=16164&highlight=9234
Guest








Re: just search for topic
PostPosted: Fri Apr 16, 2004 1:15 am     Reply with quote

Prezydent wrote:
http://www.ccsinfo.com/forum/viewtopic.php?t=16164&highlight=9234


Do u have any idea what is the calibration value of the 12F629 (factory set)?

thnx
Ttelmah
Guest







Re: just search for topic
PostPosted: Fri Apr 16, 2004 5:17 am     Reply with quote

Anonymous wrote:
Prezydent wrote:
http://www.ccsinfo.com/forum/viewtopic.php?t=16164&highlight=9234


Do u have any idea what is the calibration value of the 12F629 (factory set)?

thnx

It is unique to each chip...
It is a simple 'RETLW x' instruction. You can put a RETLW 0x80, and the system will again work, but the clock will be off frequency. You can write a little 'test' program, to change the value fed to the clock configuration register, and toggle an output pin, till the sysem gives the 'right' frequency, then save the number used.
If the frequency is not important, then just go with 80. This is the 'power on default' value, used till the trimmed value is transferred into the OSCCAL register. The register uses the high six bits, with 0x80, giving the 'centre' frequency, 0, giving the lowest frequency, an 0xFC giving the highest frequency.

Best Wishes
ritchie



Joined: 13 Sep 2003
Posts: 87

View user's profile Send private message

Re: just search for topic
PostPosted: Fri Apr 16, 2004 6:16 pm     Reply with quote

Ttelmah wrote:
Anonymous wrote:
Prezydent wrote:
http://www.ccsinfo.com/forum/viewtopic.php?t=16164&highlight=9234


Do u have any idea what is the calibration value of the 12F629 (factory set)?

thnx

It is unique to each chip...
It is a simple 'RETLW x' instruction. You can put a RETLW 0x80, and the system will again work, but the clock will be off frequency. You can write a little 'test' program, to change the value fed to the clock configuration register, and toggle an output pin, till the sysem gives the 'right' frequency, then save the number used.
If the frequency is not important, then just go with 80. This is the 'power on default' value, used till the trimmed value is transferred into the OSCCAL register. The register uses the high six bits, with 0x80, giving the 'centre' frequency, 0, giving the lowest frequency, an 0xFC giving the highest frequency.

Best Wishes


Would it be possible if u can give a sample code snippet on your suggestions?

Thank u.
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