|
|
View previous topic :: View next topic |
Author |
Message |
jc71229
Joined: 20 Jun 2006 Posts: 2
|
PLL and 18f252 |
Posted: Tue Jun 20, 2006 4:23 am |
|
|
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
|
|
Posted: Tue Jun 20, 2006 5:24 am |
|
|
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: 1634 Location: Perth, Australia
|
|
Posted: Tue Jun 20, 2006 5:42 am |
|
|
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
|
|
Posted: Tue Jun 20, 2006 6:39 am |
|
|
Yep, that was it! Didn't know that I have to do a power cycle. Thanks so much asmallri + Ttelmah
Have fun
Jens |
|
|
|
|
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
|