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

PLL and 18f252

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



Joined: 20 Jun 2006
Posts: 2

View user's profile Send private message

PLL and 18f252
PostPosted: Tue Jun 20, 2006 4:23 am     Reply with quote

Hi folks,

I want to use the H4 fuse to enable PLL. My 18f252 gets an external clock of 6MHz on OSC1/CLKIN (same as http://www.ccsinfo.com/forum/viewtopic.php?t=27349&highlight=pll). However I can't get it into PLL mode (delays are 4 times slower as expected). Is this even possible with an external clock? I use

#fuses H4, NOWDT, NOPROTECT, PUT, NOBROWNOUT, NOLVP

for my fuse setting. I didn't notice that I have to do additional adjustments. My compiler is: CCS PCH C Compiler, Version 3.204, 24828 (Linux Version)

Anyone who can help?
Thanks
Jens
Ttelmah
Guest







PostPosted: Tue Jun 20, 2006 5:24 am     Reply with quote

It should work.
However there can be problems with the PLL, locking onto the fundamental, instead of running at *4, if the input signal is larger than expected (remember it expects to see the sinusoid from a crystal output, rather than a logic level 'square wave'). Double check that your programmer is setting the H4 fuse, and try with a series resistor 'in line' (perhaps 300R), or a series capacitor. I have used this with no trouble, at 4MHz, with a 220pF in series.

Best Wishes
asmallri



Joined: 12 Aug 2004
Posts: 1635
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Tue Jun 20, 2006 5:42 am     Reply with quote

Did you remember to power cycle the PIC after you programmed it the first time you set the H4 fuse?
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
jc71229



Joined: 20 Jun 2006
Posts: 2

View user's profile Send private message

PostPosted: Tue Jun 20, 2006 6:39 am     Reply with quote

Yep, that was it! Didn't know that I have to do a power cycle. Thanks so much asmallri + Ttelmah

Have fun
Jens
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