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

problem whit pll h4 in pic18f6620

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



Joined: 09 Feb 2004
Posts: 37
Location: TURIN -Italy-

View user's profile Send private message Send e-mail

problem whit pll h4 in pic18f6620
PostPosted: Fri Jul 29, 2005 1:00 am     Reply with quote

Sad Sad

I use pic18f6620 with xtal 10 MHz and fuses HS, H4 set. but micro it works only to 10MHz

in fact the seriale works correctly only with

# use delay(clock=10000000)
Ttelmah
Guest







PostPosted: Fri Jul 29, 2005 4:08 am     Reply with quote

You should only have H4 set, not 'HS'. However the patterns should 'OR' together without causing a problem.
Try with just H4.
If this fails, try adding a resistor _in series_ with your crystal of about 50R. There was a problem in the past on many PIC's, that the PLL, is sensitive to being overdriven, and will not run properly if the gain of the crystal is higher than expected. This is why the spec requires a parallel cut crystal. Adding the resistor can help if the crystal gain is just a little too high.

Best Wishes
sseidman



Joined: 14 Mar 2005
Posts: 159

View user's profile Send private message

PostPosted: Fri Jul 29, 2005 7:09 am     Reply with quote

Also, I seem to remember the need to actually power down the chip when changing between HS and H4

Scott
Guest








PostPosted: Fri Jul 29, 2005 1:36 pm     Reply with quote

sseidman is absolutely right. It caused me hours of troubleshooting in the past. You need to program the config, completely power down the PIC, and then it should be running with the PLL enabled.

I have used that exact circuit configuration in the past, PIC + 10MHz ceramic resonator without any problems.
Darren Rook



Joined: 06 Sep 2003
Posts: 287
Location: Milwaukee, WI

View user's profile Send private message Send e-mail

PostPosted: Mon Aug 01, 2005 7:03 am     Reply with quote

Also, there's a flaw in the 18F6620 in that it doesn't work properly over 25MHz.
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